httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <>
Subject Re: [users@httpd] Another mod_proxy Question/Issue
Date Fri, 01 Nov 2013 02:15:05 GMT
When you say "And this gives me a 403 access denied.", you need to also
include the exact URL that you entered in the browser (minus the hostname
if you want).

If you have the rewrite rule:
*RewriteRule ^/(.*)$1 [P]*
and you navigate to, you should get exactly the
same content as if you went to, in this case,
the Tomcat homepage.
1) When going to BOTH URLs, is that what you see?

2) If the answer is yes, then without making any changes to the HTTPD
configuration, when you go to in your
browser, do you get the expected result from tomcat?

If you want to remove the /share/ part from the public URL, after you have
confirmed that the above works, this is the rewrite rule you would need:
*RewriteRule ^/(.*)$1 [P]*

- Y

On Thu, Oct 31, 2013 at 3:35 PM, Chris Arnold

> >Are you accessing this URL from a web browser or a dedicated program?
> >The implication is that your client might be requesting (or the web
> application redirecting to) which you
> are rewriting to already include the >/share/, therefore, the doubled share.
> Accessing directly from browser. So i tried this:
> RewriteRule ^/(.*)$1 [P]
> And this takes me right to the tomcat home page, /
> Tried this:
> RewriteRule ^/share/(.*)$1 [P]
> And this gives me a 403 access denied.
> On Thu, Oct 31, 2013 at 2:09 PM, Chris Arnold <
> > wrote:
>> >What about when you go to
>> If i remember right, this gave the same error.
>> As i try different things and think about this, i am going to need
>> multiple clients to access this web app securely like so https://share.anydomain.tld
>> <https://share.anydomain.tld%20>and will need apache to send those
>> requests to tomcat. Yehuda, if i remember right, you set this up for me
>> with the mail server. So, i copied that entry and changed to fit the share
>> url:
>> #This rewrites https://share.anydomain.tld to our mail server
>>     RewriteEngine On
>>     RewriteCond %{HTTP_HOST} ^share\.
>>     RewriteCond %{HTTPS} on
>>     RewriteRule ^/(.*)$1 [P]
>> But this gives the exact error as before 404 from tomcat:
>> HTTP Status 404 - /share/share/page/
>> I think i am starting to see what Tom was talking about with tomcat
>> adding the extra /share!

View raw message