-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello Dne 27.7.2011 22:05, James D. Parra napsal(a):
Hello,
I have set up Apache virtualhosts for server1.ourdomain.com and server2.ourdomain.com, but only server1 loads. There is only one local IP address.
Each virtualhost has its own entry under, /etc/apache2/vhosts.d/. Examples below;
Server1.ourdomain.com.conf
DocumentRoot /srv/www/htdocs/server1 ServerName server1.ourdomain.com ErrorLog /var/log/apache2/server1_error_log LogFormat "%v %h %l %u %t \"%r\" %>s %b" common CustomLog /var/log/apache2/server1_access_log HostnameLookups Off UseCanonicalName Off ServerSignature On allow from all Options Indexes SymLinksIfOwnerMatch AllowOverride All </Directory> </VirtualHost> Server2.ourdomain.com.conf
DocumentRoot /srv/www/htdocs/server2 ServerName server2.ourdomain.com ErrorLog /var/log/apache2/server2_error_log LogFormat "%v %h %l %u %t \"%r\" %>s %b" common CustomLog /var/log/apache2/server2_access_log HostnameLookups Off UseCanonicalName Off ServerSignature On allow from all Options Indexes SymLinksIfOwnerMatch AllowOverride All </Directory> </VirtualHost> <snip> What must be done to get both sites to load?
I have vhosts as separate files for each (sub)domain in
/etc/apache2/conf.d/ and it works fine. Files look like
root@botany:/etc/apache2#cat conf.d/default.conf
Many thanks in advance,
James
Have a nice day! Vojtěch - -- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux http://www.opensuse.org/ http://trapa.cz/cs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOMHL3AAoJEPuT69b4zaO5l+kH/08PwZGFSvnZWGaYEoT0ErMi V8r8EBCze8+2tWLKSyhdvp3WDmFt6eF2jrgunGKllgqRpsHMhlxLriY8eBHcpERE 5EvuW0Jb6wxsgHrqcDzGsKcPDNmxc47utKG1fBd4FkAHA++xmJmy4sB0M0us4XYT 4FaosKs1jvRIowKxgBB2JNxvi+Pz0/7YO4JIINgIhgH9Ql4r11BGnKytI3KhOTGB 0XfcuoyRRVGEThX0hGok/IXAJKHnytle1qUKKIftzVi/SlVTbrnLv9JYxinOWUQO yNLftDyER4lnD+vv98Hz453h2vIKzUta4X0FpRF2yhoI+EhTc318KodHm0ukNsc= =pPuh -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org