Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, I've a physical server (Centos 5.4) running several virtual servers (Xen) My quest is regarding 2 of the servers: Server1(Virtual):IP: 192.168.15.3 - Centos 5.4 with ISPConfig 3.0.1.6 (not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    4

    Http forwarding to another internal IP


    Hi all,

    I've a physical server (Centos 5.4) running several virtual servers (Xen)
    My quest is regarding 2 of the servers:
    Server1(Virtual):IP: 192.168.15.3 - Centos 5.4 with ISPConfig 3.0.1.6 (not yet installed, though)
    Server2Virtual):IP: 192.168.15.8- Ubuntu 9.04 with Apache, Drupal etc

    How do i most effiently serve 1 or more web pages on Server2 via Server1 which receives all the request for port 80 behind the router?
    I want to avoid installing ISPconfig on Server2 which my friend is gonna be administering.

    I've been Googling a lot about this topic today, and found the following:
    Use of "Redirect / domain.com" (with domain.com defined as 192.168.15.8 in /etc/hosts on Server1)
    Use of mod_rewrite and mod_proxy on Server1

    Please ignore the ISPconfig part if it's not familar to you.
    That's just an open source ISP control panel

    Every answer is much appreciated!
    Thank you very much in advance

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    lots of good stuff here
    apache reverse proxy - Google Search

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    6
    thanks for your answer, i am having similar problem and will look into apache reverse proxy

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2009
    Posts
    4
    Works like a charm!!! Thanks a lot!!!
    Here is the vhost set up to use reverse proxy:

    <VirtualHost *:80>
    ServerName yourdomain.com
    DocumentRoot /var/www/
    ProxyRequests Off

    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>

    ProxyPass / (server-IP)
    ProxyPassReverse / (server-IP)
    </VirtualHost>

Posting Permissions

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