Mandrake Linux Archives: advx-users@advx.org
Mandrake Linux: advx-users@advx.org
[Date Prev] [Date Next] [Thread Prev] [Thread Next]
[Date Index]
[Thread Index]
- From: Rodrigo Amboy
- Subject: [Advx-Users] Virtual hosting behind firewall- HELP!!
- Date: 16 Jun 2003 09:34:05 -0000
Hi all!
Need help on this one...
I have a web server with private ip address behind our firewall. I was
wondering if the virtual hosting will work the same as having a valid IP
address. I tried to set up a translated IP address on my web server, but
when I tried to access the virtual host site(mydomain2.com) from the
Internet, it pointed to the main website (mydomain.com). Ofcourse, my
DNS entry has the same IP resolving to mydomain.com and mydomain2.com,
which is 203.131.66.6.
Take note that upon accessing the virtual host site within the intranet
(using an internal DNS) the main site (mydomain.com) and virual host
site(mydomain2.com) are both accessible.
(Note: IPs assigned here are just for presentation purposes, not the
real one.)
here is my setup:
_on the firewall side:_
ipnat.conf
rdr hme0 0.0.0.0/0 port 80 -> 172.16.100.155 port 80
map hme0 172.16.100.155/32 ->203.131.66.6/32
Firewall external IP: 203.131.66.6
Firewall internal IP: 172.16.100.100
Web server internal IP: 172.16.100.155
_on the web server side :
_NameVirtualHost 172.16.100.155
<VirtualHost 172.16.100.155>
ServerName mydomain.com
DocumentRoot /var/www/html
</VirtualHost>
NameVirtualHost 172.16.100.155
<VirtualHost 172.16.100.155>
ServerName mydomain2.com
DocumentRoot /home/amboy57/virtual
<Directory /home/amboy57/virtual>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
</VirtualHost>
_
_
Regards,
Rod
Date Index |
Thread Index