Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    North Carolina
    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
    Ok, I am using the proxypass directive to redirect to my friends server. It works very well with one exception. Here is the layout.

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

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

    Any ideas?

  4. $spacer_open

Posting Permissions

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