[mapserver-users] Need help with ProxyPass configuration, please

cbrydon carl.brydon at geonet-tech.com
Mon Jun 15 10:49:21 PDT 2009


Daniel,

What you suggest does work after all.  The problem I was having is that the
IIS site
I was hitting was redirecting me to another IIS site that I did not have
setup in the
VirtualHost block.  The settings you have below work great if AnotherTown is
a redirection
(if I can use that term) from SomeTown.

Appreciate your help!

Cheers,
Carl


Daniel Morissette wrote:
> 
> cbrydon wrote:
>> I have also tried the following (among other configurations), but just
>> can't
>> seem to get thiings to work.... 
>> 
>> NameVirtualHost 111.111.111.111:80 
>> 
>> # Apache Site 
>> <VirtualHost 111.111.111.111:80> 
>> DocumentRoot "/ms4w/Apache/htdocs" 
>> ServerName 111.111.111.111 
>> </VirtualHost> 
>> 
>> # IIS Site 
>> <VirtualHost 111.111.111.111:80> 
>> ServerName 111.111.111.111:80 
>> DocumentRoot F:/Applications/2009/Custom/SomeTown 
>> ProxyRequests OFF 
>> ProxyPass / http://111.111.111.111:8080/ 
>> ProxyPassReverse / http://111.111.111.111:8080/ 
>> </VirtualHost> 
>> 
>> 
>> The above code doesn't work either; it seems as though the 2nd virtual
>> host
>> isn't being recognized. SomeTown is actually in
>> F:/Applications/2009/Custom.
>> Below is the output of an error log file. 
>> 
> 
> Carl,
> 
> You need a single VirtualHost for what you're trying to do. You have to 
> decide which directories go to the proxy'd (IIS) server and list them 
> there, and then let the local (MS4W) server handle the rest.
> 
> For instance, if what you want is:
> 
>    http://111.111.111.111/SomeTown    -> IIS
>    http://111.111.111.111/AnotherTown -> IIS
>    http://111.111.111.111/ (anything else)  -> MS4W
> 
> Then a config as follows should do the trick:
> 
> 
> NameVirtualHost 111.111.111.111:80
> 
> # Apache Site
> <VirtualHost 111.111.111.111:80>
> DocumentRoot "/ms4w/Apache/htdocs"
> ServerName 111.111.111.111
> 
> # Forward some directories to the IIS server on port 8080
> # Anything not explicitly proxy'd here is expected to be local by default.
> ProxyPass        /SomeTown  http://111.111.111.111:8080/SomeTown
> ProxyPassReverse /SomeTown  http://111.111.111.111:8080/SomeTown
> 
> ProxyPass        /AnotherTown  http://111.111.111.111:8080/AnotherTown
> ProxyPassReverse /AnotherTown  http://111.111.111.111:8080/AnotherTown
> 
> </VirtualHost>
> 
> 
> I hope that helps
> 
> Daniel
> -- 
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Need-help-with-ProxyPass-configuration%2C-please-tp1972267p3081660.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list