confusedstingray
October 22nd, 2009, 02:48 PM
I have Ubuntu 8.10 and apache2, PHP, Bind9, postfix, squirrelmail.
trying to run 3 - 4 web sites using ip virtualhosts.
everything works behind router if you type the website address it shows the proper page on all 4 sites but if I try it from the internet (outside) i get 1 site and errorpage on the others.
here is my apache files
the httpd.conf
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 192.168.1.130
</Location>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 192.168.1.130
</Location>
the ports.conf
Listen 192.168.1.104:80
listen 192.168.1.205:80
listen 192.168.1.208:80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
here is www2.conf
<VirtualHost 192.168.1.208>
DocumentRoot /var/www/legodude
ServerName legodude.xxx.ca
ServerAlias www.legodude.xxx.ca
<Directory "/var/www/legodude">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
the other sites are pretty well the same just different ips and root directories
also have my router fowarding port 80 to my server and have i a static ip from my isp and i have my isp set my dns record pointing my websites to the static ip from trial and error it seems to be a problem with bind and apache recieving info from the internet
any help would be great
trying to run 3 - 4 web sites using ip virtualhosts.
everything works behind router if you type the website address it shows the proper page on all 4 sites but if I try it from the internet (outside) i get 1 site and errorpage on the others.
here is my apache files
the httpd.conf
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 192.168.1.130
</Location>
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 192.168.1.130
</Location>
the ports.conf
Listen 192.168.1.104:80
listen 192.168.1.205:80
listen 192.168.1.208:80
<IfModule mod_ssl.c>
Listen 443
</IfModule>
here is www2.conf
<VirtualHost 192.168.1.208>
DocumentRoot /var/www/legodude
ServerName legodude.xxx.ca
ServerAlias www.legodude.xxx.ca
<Directory "/var/www/legodude">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
the other sites are pretty well the same just different ips and root directories
also have my router fowarding port 80 to my server and have i a static ip from my isp and i have my isp set my dns record pointing my websites to the static ip from trial and error it seems to be a problem with bind and apache recieving info from the internet
any help would be great