This is a discussion on 2.0.48 - configuration of multiple domains - behind a firewall on one server with primary dns within the Apache Web Server forums, part of the Web Server and Related Forums category; Can someone give me guidance for hosting multiple homepages on Apache 2.0.48? I configured name based virtual hosts, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Can someone give me guidance for hosting multiple homepages on Apache
2.0.48? I configured name based virtual hosts, but I just have access to the _default_ web page. (I read the manuals, I read the newsgroups, but I did not get it). I have the following environment: 1 Cisco Firewall ( redirects 62.153.134.* enquiries to DMZ) 1 W2K Server in DMZ (local IP address 192.168.1.29) - with a primary DNS for our domain (IP address 62.153.134.27) - with an Apache Web server 2.0.48 1 static IP address for all homepages (62.153.134.29) DNS is configured to resolve all domain names (www.page.??) to 62.153.134.29 address. I tried to setup Apache with following httpd.conf settings: Listen 192.168.1.29:8000 (first step for access over Intranet - I tried it with 80 too) ServerName 192.168.1.29:8000 (or DNS name, which is widasws.widas.de) UseCanonicalNames off .... (some Directory settings) Virtual Host settings: NameVirtualHost 62.153.134.29 (all others did not work - not accepted) <VirtualHost * _default> ServerAdmin ... ServerName widasws.widas.de DocumentRoot D:/sites/nowebsite ErrorLog ... CustomLog ... </VirtualHost> <VirtualHost www.palaver48.de> ServerAdmin ... ServerName www.palaver48.de DocumentRoot D:/sites/dir1 ErrorLog ... CustomLog ... </VirtualHost> <VirtualHost www.widas.de> ServerAdmin ... ServerName www.widas.de DocumentRoot D:/sites/dir2 ErrorLog ... CustomLog ... </VirtualHost> Thank you. //Thomas |
|
|||
|
Thomas Widmann <tw@widas.de> wrote:
> NameVirtualHost 62.153.134.29 (all others did not work - not accepted) Change this to NameVirtualHost * > <VirtualHost www.palaver48.de> Change any VirtualHost entry in <VirtualHost *> Be sure that ping yourdomainnamehere resolv in the IP of the server. Davide |
|
|||
|
Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<bqvjp7$24dcsg$1@ID-18487.news.uni-berlin.de>...
> Thomas Widmann <tw@widas.de> wrote: > > NameVirtualHost 62.153.134.29 (all others did not work - not accepted) > > Change this to > NameVirtualHost * > > > <VirtualHost www.palaver48.de> > > Change any VirtualHost entry in <VirtualHost *> > > Be sure that ping yourdomainnamehere resolv in the IP of the > server. > > Davide Davide, thank you very much. I applied the changes you suggested, and now it works fine. When I applied the outside IP address for NameVirtualHost (public IP address) and I guess there was no way for Apache to resolve to correct virtual host entry, because this address is not applicable in DMZ. This might be the only workaround to access web-sites behind a firewall, right? Thomas |