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

cbrydon carl.brydon at geonet-tech.com
Mon Jun 8 06:12:45 PDT 2009


AJ,
    Did you ever get an answer to you question?  I have a similar problem I
think.
Below is a description of what I am trying to deal with.

I'm just getting into Apache and have used IIS for a few small sites. My
current situation is 
that I have Apache and IIS running on the same server with one IP address.
IIS is running on port 8080 and Apache is running on port 80. Access to both
my apache sites and iis sites work so long as I type in the :8080 for the
iis sites. 
I now have a need for users to no longer type in the port 8080 so I have
attempted to add some virtual hosts in my 
apache vhosts.conf file. Below are the contents of that file... 

NameVirtualHost 111.111.111.111:80 
NameVirtualHost 111.111.111.111:8080 

# 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:8080> 
ServerName 111.111.111.111:8080 
DocumentRoot F:/Applications/2009/Custom/SomeTown 
ProxyRequests OFF 
ProxyPass / http://111.111.111.111:8080/ 
ProxyPassReverse / http://111.111.111.111:8080/ 
</VirtualHost> 

Access to the apache sites work fine, however access to the IIS sites do not
work unless I still type in the :8080. 

If I replace the IP:port number with * in the VirtualHost tags AND make the
IIS Site the first in the list then I can access 
my IIS sites without typing port 8080 in the URL, however the Apache sites
are not accessible. 

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. 

Hope you can help. 

Thanks, 
Carl 


[Thu Jun 04 08:43:07 2009] [notice] Apache/2.2.10 (Win32) configured --
resuming normal operations 
[Thu Jun 04 08:43:07 2009] [notice] Server built: Oct 10 2008 12:39:04 
[Thu Jun 04 08:43:07 2009] [notice] Parent: Created child process 844 
[Thu Jun 04 08:43:07 2009] [notice] Child 844: Child process is running 
[Thu Jun 04 08:43:07 2009] [notice] Child 844: Acquired the start mutex. 
[Thu Jun 04 08:43:07 2009] [notice] Child 844: Starting 64 worker threads. 
[Thu Jun 04 08:43:07 2009] [notice] Child 844: Starting thread to listen on
port 80. 
[Thu Jun 04 08:43:23 2009] [error] [client 111.111.111.111] File does not
exist: C:/ms4w/Apache/htdocs/SomeTown 
[Thu Jun 04 08:43:28 2009] [error] [client 111.111.111.111] File does not
exist: C:/ms4w/Apache/htdocs/SomeTown 
-- 
View this message in context: http://n2.nabble.com/Need-help-with-ProxyPass-configuration%2C-please-tp1972267p3042849.html
Sent from the Mapserver - User mailing list archive at Nabble.com.




More information about the MapServer-users mailing list