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?
Many thanks in advance,
James
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org