Find the answer to your Linux question:
Results 1 to 2 of 2
I need some help. I've got three domains. Two of which point to my personal webserver. But the other one points to my personal zimbra mail website. I have two ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie Mad Professor's Avatar
    Join Date
    May 2006
    Posts
    142

    Post One machine/ip, multiple domains, multiple webservers.


    I need some help.

    I've got three domains. Two of which point to my personal webserver. But the other one points to my personal zimbra mail website.

    I have two web servers running on the same machine.
    Abyss Webserver X2 personal free edition running port 8080
    and
    Apache which came with the zimbra collaboration suite running on port 80.

    We'll call this The Server.

    The router is setup to forward all request to 192.168.0.124 *The Server.*

    Any request for public port 80 goes to 192.168.0.124:8080 *Personal webserver*

    Any request for public port 8080 goes to 192.168.0.124:80 *Zimbra mail apache*

    The domains:
    Domain 1&2 point to the personal webserver, which one of the domains will be dropped since I won't be needing it anymore in the next couple of months.

    domain3 points to my zimbra mail website.

    problem: I only have one ip.

    I need to take domain3 and add 8080 at the end just to get to the mail site.
    If I don't, it'll just take me to my personal webserver.

    What I want to do is just type domain3 without having to specify the port and be taken to the apache mail server and not my personal webserver.


    I also want to straighten out the port scheme.

    Its a weird setup I know.

    Is there anyway to route the domains so they go to the ports they need go at the localhost?


    domain1 \
    domain2 >router >192.168.0.124:80 > server:80 > D1=8080 D2=8080 D3=80
    domain3 /


    Something like that.

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Why don't you setup all the web pages that you server out on one server and then let Apache router them to the pages they need to goto according to the URL? Then the only port needed is 80.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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