ProxyPass/ProxyPassReverse problem

Topics: User Forum
Sep 25, 2010 at 7:18 PM
Edited Sep 25, 2010 at 8:02 PM

NEVERMIND. I think I found in the documentation that the web server needs to be modified to not use absolute paths...

 

I was able to successfully get the proxy to work for a particular host header so that server1.domain.com goes to an internally hosted server on another machine.  What I would now like to do is get server1.domain.com/books to go to the internal server.

Here is my IIRF.ini

RedirectRule 	^/books$	/books/	[I]
ProxyPass	^/books/(.*)$	http://dano-home/$1	[I]	
ProxyPassReverse   /      http://dano-home

It appears that the source file I am getting back is referencing an absolute path (fiddler info below).  Should IIRF be rewriting these to include /books in front?

 		
 <script type="text/javascript" src="/static/date.js" charset="utf-8"></script>
		<script type="text/javascript" src="/static/jquery.js" charset="utf-8"></script>
		<script type="text/javascript" src="/static/gui.js" charset="utf-8"></script>
		<link rel="icon" href="http://calibre-ebook.com/favicon.ico" type="image/x-icon" />

Thanks,
Dan