Hi,
The comment says
<!-- OPTIONAL A HTTP username to use for requests. Due to the design of the HTTP client included with
Java this setting is global-->
If same username/password are not OK for all the layers I guess you will need to use some proxy in front of GWC. I have not tried but I believe you can do that with Geoserver
http://docs.geoserver.org/latest/en/user/data/cascaded/wms.html
Create cascaded WMS layers with Geoserver from all the layers you need and make GWC to cache those layers which are now Geoserver WMS layers.
Another solution could be to use something like InteProxy http://inteproxy.wald.intevation.org/
Configure IntoProxy to do authentication with the remote services and make GWC to discuss with InteProxy service that runs in localhost as if there were not authentication at all.
-Jukka Rahkonen-
mano3688 wrote:
Hi thanks.This is very helpful for me.
Based on this,I have added username and password in geowebcache.xml.*But I have confusion .
I have used 5 wms layers.
But I don't know, how do give authentication for each layer in
geowebcache.xml?
I want to create username and password for each external service layer.*For Example:
<httpUsername>tokr</httpUsername>
<httpPassword>RgTT226</httpPassword>
<layers>
<wmsLayer>
<name>kd:sverigekartan</name><wmsUrl><string>http://maps.lantmateriet.se/allmannakartor/wms/v1</str
ing></wmsUrl>
</wmsLayer>
<wmsLayer>
<name>kd:topowebbkartan</name><wmsUrl><string>http://maps-
eval.lantmateriet.se/topowebbfast/wms/v1</string></wmsUrl>
</wmsLayer>
<wmsLayer>
<name>kd:orto</name><wmsUrl><string>http://maps.lantmateriet.se/ortophoto/wms/v1</string>
</wmsUrl>
</wmsLayer>
<wmsLayer>
<name>gde:Gazetter</name><wmsUrl><string>http://localhost:8081/geoserver/wms?layers=gde:Gazett
er</string>
</wmsUrl>
</wmsLayer>
<wmsLayer>
<name>0</name><wmsUrl><string>http://nvkarta.vic-
metria.nu/ArcGIS/services/NVKarta/MapServer/WMSServer?</string></w
msUrl>
</wmsLayer>
</layers>--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-
can-I-configure-user-name-password-in-geowebcache-xml-for-wmslayers-
tp5023835p5023897.html
Sent from the GeoServer - User mailing list archive at Nabble.com.------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users