|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2007
/
2007-05
/
Apache Trailing Slash Problem
[
Reload configuration / Francisco Ruiz ... ]
[
pound error messages / aT <pakistan(at)gmail.co... ]
Apache Trailing Slash Problem
Stefan Lambrev <stefan.lambrev(at)sun-fish.com> |
2007-05-23 12:33:44 |
[ FULL ]
|
Hi list.
I'm experience a problem with pound and apache httpd server.
May be you know that apache will try to fix automatically
all trailing slash problems e.g:
if I have docroot/test/ folder and someone request http://url/test
apache will respond with 301 Moved Permanently and redirect to
http://url/test/
but if we use non standard port (not 80 for http or 443 for https)
the request will be: http://url:port/test
and apache will redirect to:
http://url:port/test/.
Everything is ok, but let's add and pound to the schema.
I have pound that listen on port 80 and 443 and I have backend
that use non-standard port - 8080 on my test servers
So when a client request http:/url/test - pound connects to port 8080 of
the backend
and apache web servers respond with something like :
http://url:8080/test --> 301 Moved
Permanently
where the new URL is http://url:8080/test/
pound itself reply to the client with this redirect, but of course port
8080 is not open on the
server that host pound.
So in brief when someone request http://mysite.com/test - he receive
redirect to http://mysite.com:8080/test/
but if he try http://mysite.com/test/ it
will work.
Is this normal behavior for the balancer and is there any way to fix
this issue in pound.cfg ?
I found temporary solution using mod_rewrite on the apache but it
doesn't respect HTTPS request (as it sees only HTTP)
[...]
|
|
|
Re: [Pound Mailing List] Apache Trailing Slash Problem
RedShift <redshift(at)pandora.be> |
2007-05-23 12:57:03 |
[ FULL ]
|
Re: [Pound Mailing List] Apache Trailing Slash Problem
Stefan Lambrev <stefan.lambrev(at)sun-fish.com> |
2007-05-23 14:56:17 |
[ FULL ]
|
Hi,
RedShift wrote:[...][...][...]
I'm using apache 1.3 and I have
UseCanonicalName off
Also if I have UseCanonicalName on it will broke a lot of things not
just folders without trailing slash at the end.
Also do you have apache that listen on port different then 80 ?[...]
[...]
|
|
|
Re: [Pound Mailing List] Apache Trailing Slash Problem
Robert Segall <roseg(at)apsis.ch> |
2007-05-23 18:03:31 |
[ FULL ]
|
On Wed, 2007-05-23 at 13:33 +0300, Stefan Lambrev wrote:[...]
Normally this is handled by the RewriteLocation directive - make sure it
is not set to 0. Also check that the redirect is indeed to the back-end
(or to a host that resolves to the same address).[...]
|
|
|
Re: [Pound Mailing List] Apache Trailing Slash Problem
notbuu <notbuu(at)gmail.com> |
2007-05-25 16:03:31 |
[ FULL ]
|
Hello!
i had the same problem. can you try if it works with the ip-address from the
pound in the url?
like http://ip-address/test without
trailing slash? i think this will work.
in my situation i had to put the dns name into the /etc/hosts configuration
so that pound dont need an trailing slash.
i found this information somewhere in the mailing list archive.
e.g. /etc/hosts:
127.0.0.1 foobar(hostname) foobar.my.company.com(fqhn) myinternetsite.com(fqdn)
-> last one ist also used in the virtual hosts configuration from the
apache.
cu
2007/5/23, Stefan Lambrev <stefan.lambrev(at)sun-fish.com>:[...]
|
|
|
|
|
Re: [Pound Mailing List] Apache Trailing Slash Problem
Stefan Lambrev <stefan.lambrev(at)sun-fish.com> |
2007-05-31 10:38:22 |
[ FULL ]
|
Robert Segall wrote:[...][...][...]
I think I found what's the problem as I have situation where the problem
does not exist.
Once I'm 100% sure at which situation pound can't handle the request and
at which can, I'll send
another mail.
|
|
|
|