Thanks for the reply,
I have linux ubuntu server 10.04 running with tomcat6 on port 8080. Apache is
on
80 as default.
I would like to keep the Apache webserver on 80 as other people will be using
to
to serve other content.
I set up php to deal with apache at first and this works ok on the domain:80.
But I would also like to use php in some of my geoweb applications which are
located in geoservers´ www document root.
So...as far as I can understand your suggestion should work...
ProxyPass /geoserver
http://localhost:8080/geoserverProxyPassReverse
/geoserver http://localhost:8080/geoserver
thanks,
Robert
________________________________
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