ProxyPass generating 403
3 posts
• Page 1 of 1
- mikebridge
- Posts: 2
- Joined: 09 Jul 2013, 17:58
ProxyPass generating 403
I can't seem to figure out why this rule (in the top level httpd.conf file) is giving me a 403 error for this url:
example.com/Industry/Home/86/89/Google%20Chrome.jpg
However, the following works correctly for example.com/Industry/Xyz/86/89/Google%20Chrome.jpg
The only difference is the "/Home" directory. I don't see any conflicting rules in the child .htaccess file either.
They both have the same log entry in the debug log:
[7/9/2013 3:02:56 PM] [proxy] (8) [/Industry/Xyz/86/89/Google Chrome.jpg] request to http://cdn.mailoutinteractive.com/Home/ ... Chrome.jpg
[7/9/2013 3:03:09 PM] [proxy] (8) [/Industry/Home/86/89/Google Chrome.jpg] request to http://cdn.mailoutinteractive.com/Home/ ... Chrome.jpg
Any idea what I'm doing wrong? I'm using Helicon Ape 3.1.0.110 on IIS 7 on Windows Server 2008.
example.com/Industry/Home/86/89/Google%20Chrome.jpg
- Code: Select all
<Location /Industry/Home/>
ProxyPass http://cdn.mailoutinteractive.com/Home/
</Location>
However, the following works correctly for example.com/Industry/Xyz/86/89/Google%20Chrome.jpg
- Code: Select all
<Location /Industry/Xyz/>
ProxyPass http://cdn.mailoutinteractive.com/Home/
</Location>
The only difference is the "/Home" directory. I don't see any conflicting rules in the child .htaccess file either.
They both have the same log entry in the debug log:
[7/9/2013 3:02:56 PM] [proxy] (8) [/Industry/Xyz/86/89/Google Chrome.jpg] request to http://cdn.mailoutinteractive.com/Home/ ... Chrome.jpg
[7/9/2013 3:03:09 PM] [proxy] (8) [/Industry/Home/86/89/Google Chrome.jpg] request to http://cdn.mailoutinteractive.com/Home/ ... Chrome.jpg
Any idea what I'm doing wrong? I'm using Helicon Ape 3.1.0.110 on IIS 7 on Windows Server 2008.
Re: ProxyPass generating 403
Hello,
Can you show the .htaccess you have in /Home/ folder.
Also, please enable logging in httpd.conf by putting
RewriteLogLevel debug
And provide rewrite.log records for request to example.com/Industry/Home/86/89/Google%20Chrome.jpg
Can you show the .htaccess you have in /Home/ folder.
Also, please enable logging in httpd.conf by putting
RewriteLogLevel debug
And provide rewrite.log records for request to example.com/Industry/Home/86/89/Google%20Chrome.jpg
- mikebridge
- Posts: 2
- Joined: 09 Jul 2013, 17:58
Re: ProxyPass generating 403
Hi Anton,
I finally was able to get this working by using this instead:
In practical terms I'm not sure if this is any different, but it seems to function.
Thanks,
-Mike
I finally was able to get this working by using this instead:
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^Home/(.*) http://cdn.mailoutinteractive.com/Home/$1 [P,L]
In practical terms I'm not sure if this is any different, but it seems to function.
Thanks,
-Mike
Anton wrote:Hello,
Can you show the .htaccess you have in /Home/ folder.
Also, please enable logging in httpd.conf by putting
RewriteLogLevel debug
And provide rewrite.log records for request to example.com/Industry/Home/86/89/Google%20Chrome.jpg
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests