Find the answer to your Linux question:
Results 1 to 3 of 3
I currently have a Ubuntu Server running Apache/2.2.3 and it serves web pages through the use of its virtual host capabilities. My room mate has setup his own Apache Server ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2002
    Posts
    40

    Question Apache 2 Question


    I currently have a Ubuntu Server running Apache/2.2.3 and it serves web pages through the use of its virtual host capabilities. My room mate has setup his own Apache Server to develop on. I was curious is there a way create a virtual host that would in turn submit the requests to his machine, more of a proxy than a redirect.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    this could be as easy as putting a redirect script in http://yourmachine/friends/index.html that redirects to your friends machine.

    If you are wanting both to be served using the same dns name, http://yourmachine/yourstuff and http://yourmachine/friends without redirecting to a different IP or name then you need mod_proxy
    mod_proxy - Apache HTTP Server

  3. #3
    Just Joined!
    Join Date
    Nov 2002
    Posts
    40
    Ok, I am using the proxypass directive to redirect to my friends server. It works very well with one exception. Here is the layout.

    <root>
    ..<images>
    ..<docs>
    ..<asp> (proxypass)

    When a user types in http://serveraddress/asp it does not redirect to http://serveraddress/asp/. This does work with any of the other directories. Below is my proxy configuration:

    Code:
            ProxyRequests Off
    
            <Proxy *>
                    Order deny,allow
                    Allow from all
            </Proxy>
    
            ProxyPass /asp/ http://192.168.1.21:82/
            ProxyPassReverse /asp/ http://192.168.1.21:82/
    I have tried changing the above to
    Code:
            ProxyPass /asp http://192.168.1.21:82/
            ProxyPassReverse /asp http://192.168.1.21:82/
    to no avail.

    Any ideas?

  4. $spacer_open
    $spacer_close

Posting Permissions

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