|
Home > Archive > Apache Server configuration support > August 2007 > mod_proxy
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hello.
I wanted to "sneak in" a friend of mine into a members-only forum in
which i am member of. For that reason, i want to install a HTTP proxy,
so my friend can access the forum with my IP.
Now, since Squid seemed a little overkill for me (and honestly way too
complicated) i wanted to try out Apache's mod_proxy.
With the default configuration, the proxyserver works. However, it
will return a 403, no matter what URI i am trying to access.
What do i have to do to get it working?
This is the default configuration:
ProxyRequests On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from <friend's IP here>
</Proxy>
ProxyVia On
| |
| oLaFKeWL 2007-08-16, 7:27 pm |
| tws a écrit :
> Hello.
>
> I wanted to "sneak in" a friend of mine into a members-only forum in
> which i am member of. For that reason, i want to install a HTTP proxy,
> so my friend can access the forum with my IP.
> Now, since Squid seemed a little overkill for me (and honestly way too
> complicated) i wanted to try out Apache's mod_proxy.
>
> With the default configuration, the proxyserver works. However, it
> will return a 403, no matter what URI i am trying to access.
>
> What do i have to do to get it working?
>
> This is the default configuration:
> ProxyRequests On
> <Proxy *>
> AddDefaultCharset off
> Order deny,allow
> Deny from all
> Allow from <friend's IP here>
> </Proxy>
> ProxyVia On
>
Can you post your mod_proxy.conf file ?
| |
|
| On Aug 16, 11:44 pm, oLaFKeWL <olafk...@libertysurf.fr> wrote:
> tws a =E9crit :
>
>
>
>
>
>
>
>
> Can you post your mod_proxy.conf file ?
That what i posted in the first post is pretty much it. I only removed
irrelevant information.
Here is the complete file:
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may
allow
#spammers to use your proxy to send email.
ProxyRequests On
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from xxx.xxx.xxx.xxx
</Proxy>
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all
outgoing Via: headers)
# Set to one of: Off | On | Full | Block
ProxyVia On
</IfModule>
Thanks.
| |
| oLaFKeWL 2007-08-17, 7:27 am |
| tws a écrit :
> That what i posted in the first post is pretty much it. I only removed
> irrelevant information.
> Here is the complete file:
>
> <IfModule mod_proxy.c>
> #turning ProxyRequests on and allowing proxying from all may
> allow
> #spammers to use your proxy to send email.
>
> ProxyRequests On
>
> <Proxy *>
> AddDefaultCharset off
> Order deny,allow
> Deny from all
> Allow from xxx.xxx.xxx.xxx
> </Proxy>
>
> # Enable/disable the handling of HTTP/1.1 "Via:" headers.
> # ("Full" adds the server version; "Block" removes all
> outgoing Via: headers)
> # Set to one of: Off | On | Full | Block
>
> ProxyVia On
> </IfModule>
>
>
> Thanks.
>
Just for test, how does it behave when "Allow from all" instead ?
| |
| Pawel Stawicki 2007-08-17, 7:27 am |
| How about site configuration file? In my system it is
/etc/apache2/sites-enabled/<your_site>
<your_site> can be alse default site.
There you should add something like
<Location /comeheremyfriend>
ProxyPass http://forumaddress/
Allow from xxx.xxx.xxx.xxx
</Location>
And with this, you can leave
Deny from all
in proxy.conf.
At lease in my configuration on debian it works like that.
Regards
Pawel Stawicki
| |
|
| On Aug 17, 9:37 am, oLaFKeWL <olafk...@libertysurf.fr> wrote:
> Just for test, how does it behave when "Allow from all" instead ?
Doesn't seem to change anything.
On Aug 17, 11:38 am, Pawel Stawicki
<pawelstawicki@[cut_this_out]poczta.onet.pl> wrote:
> How about site configuration file? In my system it is
> /etc/apache2/sites-enabled/<your_site>
>
> <your_site> can be alse default site.
>
> There you should add something like
> <Location /comeheremyfriend>
> ProxyPasshttp://forumaddress/
> Allow from xxx.xxx.xxx.xxx
> </Location>
>
> And with this, you can leave
>
> Deny from all
>
> in proxy.conf.
>
> At lease in my configuration on debian it works like that.
>
> Regards
> Pawel Stawicki
Thanks, but i'd really need the allowed IP to browse everywhere it
wants.
|
|
|
|
|