Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How point 127.0.0.1 to main website (NOT first virtual host) |
|
Author |
|
flatcircle
Joined: 27 Jun 2006 Posts: 79
|
Posted: Tue 12 Sep '06 9:48 Post subject: How point 127.0.0.1 to main website (NOT first virtual host) |
|
|
Hello,
I configured some sites by using Virtual Hosts on Apache.
However, when I go to 127.0.0.1, the first virtual site is shown, not the ('first') default website.
Can I change this?
Regards. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 12 Sep '06 12:08 Post subject: |
|
|
If you are adding virtual hosts to an existing web server, you must also create a <VirtualHost> block for the existing host. The ServerName and DocumentRoot included in this virtual host should be the same as the global ServerName and DocumentRoot. List this virtual host first in the configuration file so that it will act as the default host. |
|
Back to top |
|
|
|
|
|
|