funeralcrasher (
funeralcrasher) wrote2006-05-28 10:09 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Entry tags:
Question about vhosts
How does Apache determine which of your existing vhosts is the default?
Meaning:
When I type in the IP of the server, the "fu" site appears. How do I set a another site to appear as the default?
Thanks!
Meaning:
- I have two vhost.conf files in /etc/apache2/vhosts/ - fu.vhosts.conf and bar.vhosts.conf.
- Both of these were copied from vhosts.template
- I performed a find and replace on "dummy-host.example.com" to "fu", and "bar", respectively.
- I copied web content into /srv/www/vhosts/fu and /srv/www/vhosts/bar
- No content exists under /srv/www/htdocs
When I type in the IP of the server, the "fu" site appears. How do I set a another site to appear as the default?
Thanks!
no subject
NameVirtualHost *:80
<IfDefine DEFAULT_VHOST>
<VirtualHost *:80>
DocumentRoot "/var/www/localhost/htdocs"
...
Do you have a DEFAULT_VHOST directive in your apache config?
no subject