Hi
I've had no problems running the first host in my vhosts.conf file however as soon as ive added the second im getting the following message:
Quote:
[Mon May 07 02:07:24 2007] [error] (EAI 2)Name or service not known: Could not resolve host name www.website.qa -- ignoring!
|
my vhosts.conf looks like below
Quote:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin admin@zzz.com
DocumentRoot /var/www/html/website_com
ServerName www.website.com
ServerAlias website.com *.website.com
ErrorLog logs/web_com-error_log
CustomLog logs/web_com-access_log common
<Directory /var/www/html/web_com>
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
</Directory>
DefaultType text/html
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/xml text/html text/css
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
JkMount /*.jsp router
</VirtualHost>
<VirtualHost *:80>
ServerAdmin admin@zzz.com
DocumentRoot /var/www/html/web_qa
ServerName www.website.qa
ServerAlias website.qa *.website.qa
ErrorLog logs/web_qa-error_log
CustomLog logs/web_qa-access_log common
<Directory /var/www/html/web_qa>
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
</Directory>
DefaultType text/html
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/xml text/html text/css
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
JkMount /*.jsp router
</VirtualHost>
|
router is the name of the load balance worker
both vhosts have an index.jsp file in them
at the moment if i try to view website.qa it simply redirects me to the index.jsp belonging to website.com.
would appreciate any help on this. thanks!