logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How point 127.0.0.1 to main website (NOT first virtual host)
Author
flatcircle



Joined: 27 Jun 2006
Posts: 79

PostPosted: Tue 12 Sep '06 9:48    Post subject: How point 127.0.0.1 to main website (NOT first virtual host) Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 12 Sep '06 12:08    Post subject: Reply with quote

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


Reply to topic   Topic: How point 127.0.0.1 to main website (NOT first virtual host) View previous topic :: View next topic
Post new topic   Forum Index -> Apache