Sorry to jump in your discussion:
do you use mod_proxy, mod_jk,.. under linux or windows?

Thanks.

Sarah



________________________________
Von: Charles Galpin <[email protected]>
An: Robert Buckley <[email protected]>
CC: [email protected]
Gesendet: Mittwoch, den 9. März 2011, 14:44:55 Uhr
Betreff: Re: [Geoserver-users] enable php for geoserver document root

Robert, you usually put apache httpd in front of geoserver/tomcat and use 
mod_proxy (and mod_proxy_http) or mod_jk to pass the geoserver URLs through to 
geoserver.

If for example you are running a standalone geoserver on port 8080 and apache 
on 
port 80, you could setup your apache virtual host to serve your php document 
root, but have this rule to proxy the geoserver requests using mod_proxy

ProxyPass                 /geoserver http://localhost:8080/geoserver
ProxyPassReverse /geoserver http://localhost:8080/geoserver


You then access your geoserver with http://apachewithphproot/geoserver/foo/bar 
and your php with http://apachewithphproot/geoserver/your.php

I am using this and the only negative side effect I can see is that the layer 
preview doesn't work unless I access geoserver locally.

hth
charles


On Mar 9, 2011, at 5:56 AM, Robert Buckley wrote:

Hi,
>
>Does anyone know how to enable php for the geoserver document root? As I will 
>be 
>developing from the geoserver root directory it is necessary to have php 
>enabled 
>/directed to this root directory as well. However php only works in the root 
>directory defined by apache2. How could I assign a second root for php?
>
>anyone done this before?
>Thanks for any help,
>


------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to