Results 1 to 9 of 9

Thread: Multiple www servers

  1. #1
    Join Date
    Nov 2005
    Location
    Eindhoven @ The Netherlands
    Posts
    17

    Multiple www servers

    Is it possible to have multiple http servers exposed to the Internet with port 80?

    I have the following set up:

    ADSL internet router (Wanadoo Livebox) connected to:

    ASUS WL500g (Oleg's firmware 1.9.2.7-6b) connected to:

    Webserver 1 Webserver 2 PC 1

    Webserver 1 is working and accessible with a domain name www.domainname.nl There is a port forwarding at the Livebox for port 80 to the Asus WL500g. There is also a port forwarding for port 80 (Virtual server) added at the ASUS WL500g Webserver 1 and Webserver 2.

    I would like to have Webserver 2 also working with somename.domainname.nl

    I already edited the ASUS WL500g hosts file and i can access as wel Webserver 1 and Webserver 2 by domainname from PC1, but not from the Internet. From the Internet only Webserver 1 is available.

    How can i get this working? If it is possible.

    Tnx,
    Roland

  2. #2
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    I think there's no way until you use a http server which implements named virtual host (with different docroot) like apache does.

    What is strange is your actual configuration. Could you tell me the configuration (and the web server name) which give you the ability to access two different docroot from a single web server running on port 80 ?

    Last question : where is hosted your web server ? on the Asus or on your PC ? This is not very clear to me.

    JF

  3. #3
    Join Date
    Nov 2005
    Location
    Eindhoven @ The Netherlands
    Posts
    17
    Yes, i know this is working when i only have 1 webserver with multiple doc roots, this is working now for me. But this is done with some forwarding.

    Also on a Windows Server you can have multiple websites at one ip address (with hostheaders).

    But i want to host another site on a seperate webserver.

    I don't think that it matters what the apache config is, but my config (on a Netware server) that i use for website and also webmail is:

    <Directory "sys:/apache/nwdocs">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>

    #WWW Virtual Host
    <VirtualHost 192.168.1.10>
    ServerName www.domainname.nl
    </VirtualHost>
    #END WWW

    #Webmail Virtual Host
    <VirtualHost 192.168.1.10>
    DocumentRoot /
    ServerName webmail.domainname.nl
    Redirect permanent / http://www.domainname.nl/servlet/webacc
    </VirtualHost>
    #END Webmail

    I'm hosting 2 websites on a Novell Netware server (apache) and i want to host another site at a Windows Server (IIS) or maybe a linux server (Apache). All servers are behind the ASUS WL500g.

    So i have 2 seperate webservers and also a pc. All behind the wl500g.

  4. #4
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    Without doing L7 nat on your firewall, there is no possibility to nat a single couple of IP/port exposed on the Internet to two different internal IP.

    I'm not aware of a L7 module for iptables (but I'm definitively not an iptables expert)

    JF

  5. #5
    Join Date
    Jun 2005
    Location
    Slovenia
    Posts
    736
    Virtual hosts in HTTP 1.1 does not need to have multiple IP!
    The name of host in HTTP 1.1 is in the header of HTTP request. Thats how apache, thttpd knows which documentroot to select. So the only way would be L7. As far I understand L7 this is only packet classification. Without indeep packet interpretation.

    For running virtual hosts use thttpd WWW server from ipkg collection!

    Maybe Oleg will include my patch in 6c, to move config http server to some other port and make space for other http servers!

    For now just kill watchdog and httpd. Then run thttpd.
    See http://www.acme.com/software/thttpd/

    Solution with two servers HTTP would be the first with virtual host and instant redirect to other server with different port.
    Last edited by oleo; 16-11-2005 at 19:08.

  6. #6
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    afair, Roland does not runs it's web server on the asus itself but on a Novell Server (lan IP n°1) and he wants to run a second web server on a Windows (or linux) server (lan IP n°2). Both should be accessible from the Internet, using a different name (but behind the same IP/port couple, exposed by it's livebox or asus)

    JF

  7. #7
    Join Date
    Nov 2005
    Location
    Eindhoven @ The Netherlands
    Posts
    17
    JF has the correct information. I just want to expose 2 internal webservers with only 1 external ip address. It doesn't matter what kind of webserver i'm using. But it is not a webserver on the Asus router.

    Sounds like that the thing i want is easyer to say than to realize. So maybe this is only possible to realize with 2 external ip addresses, 1 for each web server.

    Anyway, thanks for all the information. If there are more idea's please post them.

    Roland

  8. #8
    Join Date
    Jul 2004
    Location
    near Lyon @ France
    Posts
    195
    you may also install a reverse proxy (like pound, see http://wl500g.info/showthread.php?t=2242) on your Asus which would make the routing decision based on the Host http header.

    JF

  9. #9
    Join Date
    Nov 2005
    Location
    Eindhoven @ The Netherlands
    Posts
    17
    That sounds interesting, and i'm still learning with linux, so this is a nice way to learn a bit more. I have to look into that, because it isn't something you do in some minutes.

    Thanks,
    Roland

Similar Threads

  1. Virtual Servers
    By daninor in forum WL-500g Q&A
    Replies: 15
    Last Post: 20-08-2005, 10:34
  2. Replies: 2
    Last Post: 14-03-2005, 11:11
  3. It has 2 DHCP servers ?
    By andru123 in forum WL-500g Q&A
    Replies: 2
    Last Post: 27-02-2005, 13:25
  4. Using multiple WEP keys
    By GrimaceODespair in forum WL-500g Q&A
    Replies: 1
    Last Post: 26-11-2003, 10:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •