I want apache2 serve the same pages to my lan and to internet
My config:
Code:
NameVirtualHost 10.19.146.161:80
................................
<VirtualHost 10.19.146.161:80>
ServerAdmin root@localhost
DocumentRoot /var/www/mysite
ServerName mysite.com
ErrorLog /var/log/apache2/mysite.log
</VirtualHost>
.................................
<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/mysite
ServerName mysite.homeip.net
ErrorLog /var/log/apache2/mysite_inet.log
</VirtualHost>
Mysite on lan works fine
When i try to access the site from internet i see apache2's default page.
However, i can access the site using mysite.homeip.net/mysite and i am facing some problems (page not found problems - work perfecy on lan)
Do i have to define a new NameVirtualHost ? (my ip is dynamic)
I dont have any firewall (closed until i get it working), and NAT/PAT seems to work (i get the default).