mod_proxy
am 16.08.2007 23:07:43 von fsidler
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
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from
ProxyVia On
Re: mod_proxy
am 16.08.2007 23:44:22 von oLaFKeWL
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
>
> AddDefaultCharset off
> Order deny,allow
> Deny from all
> Allow from
>
> ProxyVia On
>
Can you post your mod_proxy.conf file ?
Re: mod_proxy
am 17.08.2007 01:02:28 von fsidler
On Aug 16, 11:44 pm, oLaFKeWL 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
> >
> > AddDefaultCharset off
> > Order deny,allow
> > Deny from all
> > Allow from
> >
> > 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:
#turning ProxyRequests on and allowing proxying from all may
allow
#spammers to use your proxy to send email.
ProxyRequests On
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from xxx.xxx.xxx.xxx
# 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
Thanks.
Re: mod_proxy
am 17.08.2007 09:37:05 von oLaFKeWL
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:
>
>
> #turning ProxyRequests on and allowing proxying from all may
> allow
> #spammers to use your proxy to send email.
>
> ProxyRequests On
>
>
> AddDefaultCharset off
> Order deny,allow
> Deny from all
> Allow from xxx.xxx.xxx.xxx
>
>
> # 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
>
>
>
> Thanks.
>
Just for test, how does it behave when "Allow from all" instead ?
Re: mod_proxy
am 17.08.2007 11:38:54 von pawelstawicki
How about site configuration file? In my system it is
/etc/apache2/sites-enabled/
can be alse default site.
There you should add something like
ProxyPass http://forumaddress/
Allow from xxx.xxx.xxx.xxx
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
am 17.08.2007 12:34:48 von fsidler
On Aug 17, 9:37 am, oLaFKeWL 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
wrote:
> How about site configuration file? In my system it is
> /etc/apache2/sites-enabled/
>
> can be alse default site.
>
> There you should add something like
>
> ProxyPasshttp://forumaddress/
> Allow from xxx.xxx.xxx.xxx
>
>
> 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.