//
you're reading...
Linux, linux security, linux server

How To Create XAMPP Virtual Host For Domain !!


www

Virtual Host For Domain

In this post, I will explain how to create apache virtual host.

Virtual host is apache feature to allow us to make our website with it own domain in our computer . So we can access our website through “real” url. yes !!

so , we will make a virtual host for www.yourname.com domain. you can use .org – .com – .net …etc

mmmmm…… next steps

1 // open your terminal .. and return 🙂

If you installing lampp in /opt you need, you must be root  to edit /opt/lampp/etc/httpd.conf file. ok

2 // Use

sudo gedit /opt/lampp/etc/httpd.conf

3 // And add this line in the last file:

include /home/username/website/extra-httpd.conf

save and close ok……

4 // now..

Open your text editor

And add these lines

<VirtualHost 127.0.2.1>
ServerName http://www.yourname.com
DocumentRoot /home/username/website/www.yourname.com

<Directory /home/username/website/www.yourname.com>
AllowOverride All
Options All
</Directory>
</VirtualHost>


Save this file as extra-httpd.conf in /home/username/website, as we define in httpd.conf file. ok

5 // add host :

Then, we must add the IP address we use above to /etc/hosts file.

add : ip > 127.0.2.1 and domain http://www.yourname.com

6 // if you have ubuntu

Go to System >> Administration >> Network.
Change to the tab to Hosts, and  click Add,  enter the IP address and the server name.

Advertisements

About abdessemed mohamed amine

DZ-SECURITY

Discussion

15 thoughts on “How To Create XAMPP Virtual Host For Domain !!

  1. the author of this post is aminesoft 😉
    if you want copy to any place
    you can 😉
    GPL
    good luke for all 🙂

    Posted by aminesoft | March 25, 2009, 22:21
  2. well well i notice that u r so perfect so inane Xd i like all this i’ll try it buti wish that is secure

    Posted by soulshady | April 3, 2009, 22:27
  3. thnakx soulshady

    Posted by aminesoft | April 16, 2009, 10:27
  4. Salamo Alikom
    why you did not make BSD license ,are you Algerian .

    Posted by سيف عبدالرزاق | August 24, 2009, 01:26
  5. Hello! I know this is kinda off topic but I was wondering if you knew where I could find a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having problems finding one?
    Thanks a lot!

    Posted by Burkhardt & Larson | April 26, 2013, 20:58
  6. I read this post fully about the resemblance of most recent and preceding technologies, it’s awesome article.

    Posted by Yepi 2 | April 27, 2013, 03:17
  7. Admiring the dedication you put into your website and in depth information you present.
    It’s nice to come across a blog every once in a while that isn’t the same outdated rehashed material.
    Wonderful read! I’ve bookmarked your site and I’m adding your RSS
    feeds to my Google account.

    Posted by Phen375 Reality | April 30, 2013, 19:32
  8. It’s going to be ending of mine day, however before finish I am reading this great post to improve my know-how.

    Posted by hide my ass | May 3, 2013, 06:58
  9. Wow, superb blog layout! How long have you been blogging
    for? you made blogging look easy. The overall look of your web site is wonderful, let alone the content!

    Posted by Do You Feel Like To play Minecraft For Free Now? ! Know All About It all Now. | May 10, 2013, 07:20
  10. Hi to every one, the contents present at this site are in fact
    remarkable for people knowledge, well, keep up the good work
    fellows.

    Posted by プラダバッグ | May 17, 2013, 14:28
  11. you are truly a just right webmaster. The web
    site loading speed is amazing. It seems that you’re doing any unique trick. Also, The contents are masterpiece. you have done a great process in this topic!

    Posted by エアジョーダン | May 19, 2013, 00:41
  12. Thank you for every other informative site. Where else may I get that type of
    information written in such a perfect approach?
    I have a undertaking that I’m simply now working on, and I’ve been at the look out for such info.

    Posted by human growth hormone | May 19, 2013, 09:55
  13. I’ve been exploring for a little bit for any high-quality articles or weblog posts in this kind of house . Exploring in Yahoo I finally stumbled upon this website. Studying this info So i’m happy to
    convey that I’ve an incredibly just right uncanny feeling I came upon just what I needed. I so much indisputably will make certain to don?t omit this site and give it a look regularly.

    Posted by haga clic aquí | June 30, 2013, 07:47
  14. What i do not realize is if truth be told how you are no longer really much more neatly-preferred than you may be right
    now. You are so intelligent. You know therefore significantly in relation
    to this matter, made me personally consider it from so many numerous angles.
    Its like men and women arent interested except it is one thing to accomplish
    with Woman gaga! Your own stuffs outstanding. Always handle it up!

    Posted by wawodwa | July 23, 2013, 01:01

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Facebook

March 2009
S M T W T F S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

  • 365,173 Visit !
%d bloggers like this: