Sorry, I have made a mistake before.

The best way for do this is put this code on apache 

ProxyPreserveHost On
ProxyRequests Off

<Proxy *>
        Order allow,deny
        Allow from all
</Proxy>

RewriteEngine on
RewriteCond %{QUERY_STRING} request=GetMap [NC]
RewriteCond %{QUERY_STRING} !format=(.*)(png|jpeg) [NC]
RewriteRule .* - [F]

RewriteCond %{REQUEST_URI} wms/kml
RewriteCond %{QUERY_STRING} layers
RewriteRule .* - [F]

RewriteRule geoserver/(.*) http://localhost:8080/geoserver/$1 [P]


First we have to enable proxy modules of apache

$ sudo a2enmod proxy
$ sudo a2enmod proxy_http

and then restart apache

$ sudo /etc/init.d/apache2 restart




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-output-format-restrictions-tp5098123p5098372.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to