2.0.48 - configuration of multiple domains - behind a firewall on one server with primary dns

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, ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-07-2003
Thomas Widmann
 
Posts: n/a
Default 2.0.48 - configuration of multiple domains - behind a firewall on one server with primary dns

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
  #2 (permalink)  
Old 12-07-2003
Davide Bianchi
 
Posts: n/a
Default Re: 2.0.48 - configuration of multiple domains - behind a firewall on one server with primary dns

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
  #3 (permalink)  
Old 12-08-2003
Thomas Widmann
 
Posts: n/a
Default Re: 2.0.48 - configuration of multiple domains - behind a firewall on one server with primary dns

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0