mod_proxy
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
Re: mod_proxy
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 ?
Re: mod_proxy
On Aug 16, 11:44 pm, oLaFKeWL <olafk... [at] libertysurf.fr> wrote:
> tws a =E9crit :
>
>
>
> > 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 ?
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.
Re: mod_proxy
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 ?
Re: mod_proxy
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
Re: mod_proxy
On Aug 17, 9:37 am, oLaFKeWL <olafk... [at] 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 [at] [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.