Afficher un message
Vieux 12/07/2005, 06h38   #1
bronto
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Virtual domains with apache on SuSE

I am getting a new server setup using SuSE 9.2 and mostly standard
components from the suse distro, including apache2.

I am trying to get virtual hosts set up, using the standard method, not
automatic virtual hosts. Sites need to be identified by host, not IP.
In other words, I need to be able to designate a site path anywhere on
the system, not necessarily only subdirectories within one directory.
I've read through the docs here:
http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Originally, mod_vhost_alias was enabled; my understanding is that's for
the automatic virtual hosts, and I've disabled it. UseCanonicalName is
off. NameVirtualHost is set to my only IP address.

The default server's path is:
DocumentRoot /srv/www/htdocs

virtual host 1 is:
<VirtualHost *>
DocumentRoot /home/vhost1/public_html
ServerName "vhost1.subdom.csd-bes.net"
<Directory "/home/vhost1/public_html">
allow from all
Options +Indexes
UseCanonicalName off
</Directory>
</VirtualHost>

virtual host 2 is:
<VirtualHost *>
DocumentRoot /home/vhost2/public_html
ServerName "vhost2.subdom.csd-bes.net"
<Directory "/home/vhost2/public_html">
allow from all
Options +Indexes
UseCanonicalName off
</Directory>
</VirtualHost>

In this configuration, all sites resolve to the vhost1 path. If I
supply the specific IP address for vhost1 in the config above, all
sites resolve to the vhost2 path. If I supply the IP address to both
vhosts, all sites resolve to the default path.

What's going on here?

  Réponse avec citation
 
Page generated in 0,05521 seconds with 9 queries