Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Help! Path issues with proxy Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
seanwill2
Newbie
Newbie


Joined: 18 June 2008
Online Status: Offline
Posts: 3
Posted: 18 June 2008 at 9:47am | IP Logged Quote seanwill2

I have a problem trying to get the reverse proxy to work. This is what I'm tring to do.

My external domain is: www.johndoe.com

I have two internal web servers.

owa.intenaldomain.com, homeseer.intenaldomain.com

I installed ISPI_Rewrite 3 on the owa.intenaldomain.com.  I am tring to get homeseer.intenaldomain.com to proxy through owa.intenaldomain.com. I used:

RewriteProxy /homeseer(.*) http://homeseer.internaldomain.com/$1 [NC, U].

When accessing things fron the internet this is what happens:

https://www.johndoe.com/owa  (works)

http://www.johndoe.com/gallerypro (works)

http://www.johndoe.com/homeseer (kinda), I get a basic page layout with no graphics and when I click on a link I get page not found.  In fact the url goes from http://www.johndoe.com/homeseer to http://www.johndoe.com/link1. What I'm tring to accomplice is keep everything under homeseer. EX:http://www.johndoe.com/homeseer/ and preserve the directory structure.

Thanks for your help  



Edited by seanwill2 - 18 June 2008 at 1:11pm
Back to Top View seanwill2's Profile Search for other posts by seanwill2
 
seanwill2
Newbie
Newbie


Joined: 18 June 2008
Online Status: Offline
Posts: 3
Posted: 18 June 2008 at 1:14pm | IP Logged Quote seanwill2

Can anyone help with suggestions...    I need for all my root files to be proxyed to www.domain.com/homeseer/*. I can get the site to show but none of my images/css/etc are showing and according to the log they are dropping the homeseer directory during proxy.
Back to Top View seanwill2's Profile Search for other posts by seanwill2
 
Sergey
Moderator Group
Moderator Group


Joined: 11 March 2005
Online Status: Offline
Posts: 712
Posted: 19 June 2008 at 7:13am | IP Logged Quote Sergey

I guees this problem with absolute url format in <img src=...>
Please try use relative format or specify correct <BASE> in pages on homeseer.intenaldomain.com server
Back to Top View Sergey's Profile Search for other posts by Sergey
 
seanwill2
Newbie
Newbie


Joined: 18 June 2008
Online Status: Offline
Posts: 3
Posted: 24 June 2008 at 6:56pm | IP Logged Quote seanwill2

I'm not sure what my problem is... I'm so confused.  The web server that I am trying to proxy to is an IIS that was modified to work with the home automation stuff I have installed.  It creates alot of its web pages on the fly.

 

So if i say homeseer.mynet.com it will create the homepage and populate the statitics on the fly.

Right now I'm using:

RewriteRule ^(homeseer.*) http://homeseer.mynet.com [NC,P]

It will show me the links and general page but I loose the CSS and all images. I do get this in the error log.

 

[6/24/2008 14:55:49] Begin watch directory changes failed (c:\inetpub\wwwroot\images\homeseer\): No such directory..
[6/24/2008 14:55:49] Begin watch directory changes failed (c:\inetpub\wwwroot\images\perfmon\): No such directory..
[6/24/2008 14:55:49] Begin watch directory changes failed (c:\inetpub\wwwroot\images\homeseericons\): No such directory..
[6/24/2008 14:55:49] Begin watch directory changes failed (c:\inetpub\wwwroot\images\hspi_skype\): No such directory..
[6/24/2008 14:55:49] Begin watch directory changes failed (c:\inetpub\wwwroot\images\doomotion\): No such directory..
[6/24/2008 14:55:49] Begin watch directory changes failed (c:\inetpub\wwwroot\images\noaaweather\): No such directory..

I'm trying to have it proxy everything the www.mydomain.com/homeseer/.......

 

is this even possible?

 



Edited by seanwill2 - 24 June 2008 at 6:57pm
Back to Top View seanwill2's Profile Search for other posts by seanwill2
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 3934
Posted: 25 June 2008 at 7:00am | IP Logged Quote Anton

Please try to add the following conditions:

RewriteBase /
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteRule ^(homeseer.*) http://homeseer.mynet.com [NC,P]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum