Reverse proxy blog

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 19 Mar 2013, 07:43

Reverse proxy blog

19 Mar 2013, 09:32

Hi, I'm having trouble getting a reverse proxy rule to work with a blog.

The main site is www.mysite.com and I want to send blog requests, www.mysite.com/blog to a lighttpd server that will host the content.

Here's the rule I'm using
RewriteBase /
RewriteRule ^(blog.*)$ http://blog.mysite.local/$1 [NC,P]

This appears to work OK and the content from the blog loads however the browser shows content still loading for a while then times out.

On checking the transactions in fiddler the original request blog is 301 redirected to /blog/ which doesn't return a result and hangs the browser.

The lighttpd server does return a response so for some reason the proxy is not sending that back to the browser.

lighttpd access logs
10.62.10.55 blog.mysite.local - [19/Mar/2013:10:23:37 +0000] "GET /blog HTTP/1.1" 301 0 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"

10.62.10.55 blog.mysite.local - [19/Mar/2013:10:23:47 +0000] "GET /blog/ HTTP/1.1" 200 49782 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22"

Fiddler summary
# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
1 301 HTTP www.mysite.com /blog 0 chrome:8208
2 - HTTP www.mysite.com /blog/ -1 chrome:8208

I have also tried using ips instead of local domain names and get the same result.

Server is Windows 2003 with Helicon ISAPI rewrite Version 3.1.0.34

Thanks

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Reverse proxy blog

19 Mar 2013, 10:38

Hello,

The thing that strikes my eye is that it' 34th build. You'd need updating(uninstall and install a new version)
Also, please, attach the full fiddler log that you create can export. If it's more convenient, please, sent it using helpdesk or email with a link to this thread.

Regards
Andrew

User avatar
Posts: 2
Joined: 19 Mar 2013, 07:43

Re: Reverse proxy blog

27 Mar 2013, 12:40

Thanks Andrew - upgrading to the latest version fixed the problem.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 14 guests