httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krist van Besien" <>
Subject Re: [users@httpd] Strange Apache behavior while using website as proxy server (without installing mod_proxy)
Date Fri, 29 Feb 2008 14:12:02 GMT
On Fri, Feb 29, 2008 at 2:52 PM, Ravi <> wrote:
>  I have a strange problem and I cannot find any documentation around it.
>  I have two virtual host defined as follows:
>  NameVirtualHost *
>  <VirtualHost *>
>         ServerName
>         DocumentRoot C:/mydomain/www
>  </VirtualHost>
>  <VirtualHost *>
>         ServerName
>         DocumentRoot C:/mydomain/proxy
>  </VirtualHost>
>  Now I configured as http proxy server in my browser and
>  go to a random website website
>  1. Browser sends proxy request to and apache loads
> I found no explanation of this
>  behavior. I could not find any documentation on how it handles proxy
>  requests if mod_proxy is not installed.
>  2. Secondly if I configure as proxy server, apache is
>  still loading the website from
>  instead of Any idea how to fix this?

The webserver is doing exactly what you told it to do. You told it to
serve pages from C:/mydomain/www for any request coming in, and this
is what it does.
To know more about virtual hosts read the documentation.

In order to use apache as a proxy a lot more configuration is needed.
It is obvious from what you have shown us so far that you haven't even
started configuring your apache as a proxy, so why would it behave as

Start by reading the documentation here:

If you want to use apache as a proxy and as a webserver at the same
time you will probably need to dedicate a separate port to the proxy.


Bremgarten b. Bern, Switzerland
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message