<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><p>do you restart apache2? <br></p><p>sudo /etc/init.d/apache2 restart<br></p><p><br></p><p><br></p><blockquote type="cite"><p>"lukas.bollack" <lukas.bollack@naturnetz.ch> hat am 1. März 2016 um 11:02 geschrieben:<br><br><br>Ok so now my proxy.conf looks like this:<br><br><IfModule mod_proxy.c><br><br># If you want to use apache2 as a forward proxy, uncomment the<br># 'ProxyRequests On' line and the <Proxy *> block below.<br># WARNING: Be careful to restrict access inside the <Proxy *> block.<br># Open proxy servers are dangerous both to your network and to the<br># Internet at large.<br>#<br># If you only want to use apache2 as a reverse proxy/gateway in<br># front of some web application server, you DON'T need<br># 'ProxyRequests On'.<br><br>ProxyRequests Off<br><Proxy *><br> AddDefaultCharset off<br> Order deny,allow<br> Deny from all<br> Allow from localhost<br></Proxy><br><br># Enable/disable the handling of HTTP/1.1 "Via:" headers.<br># ("Full" adds the server version; "Block" removes all outgoing Via:<br>headers)<br># Set to one of: Off | On | Full | Block<br>#ProxyVia Off<br><br></IfModule><br><br>my httpd.conf is empty<br><br>my /etc/apache2/sites-available/default looks like this:<br><br><VirtualHost *:80><br> ServerAdmin webmaster@localhost<br><br> DocumentRoot /var/www<br> <Directory /><br> Options FollowSymLinks<br> AllowOverride None<br> </Directory><br> <Directory /var/www/><br> Options Indexes FollowSymLinks MultiViews<br> AllowOverride None<br> Order allow,deny<br> allow from all<br> </Directory><br><br> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br> <Directory "/usr/lib/cgi-bin"><br> AllowOverride None<br> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br> Order allow,deny<br> Allow from all<br> </Directory><br><br> ErrorLog ${APACHE_LOG_DIR}/error.log<br><br> # Possible values include: debug, info, notice, warn, error, crit,<br> # alert, emerg.<br> LogLevel warn<br><br> CustomLog ${APACHE_LOG_DIR}/access.log combined<br><br> Alias /doc/ "/usr/share/doc/"<br> <Directory "/usr/share/doc/"><br> Options Indexes MultiViews FollowSymLinks<br> AllowOverride None<br> Order deny,allow<br> Deny from all<br> Allow from 127.0.0.0/255.0.0.0 ::1/128<br> </Directory><br><br> Alias /owsproxy /var/www/naturnetz.com/mapbender/owsproxy<br> <Directory /var/www/naturnetz.com/mapbender/owsproxy/><br> Options +FollowSymLinks<br> ReWriteEngine On<br> RewriteBase /owsproxy<br> RewriteRule ^([\w\d]+)\/([\w\d]+)\/?$<br>http://127.0.0.1/owsproxy/http/index.php?sid=$1\&wms=$2\& [P,L,QSA,NE]<br> Options +Indexes<br> Allow from all<br> </Directory><br><br> Alias /cors_proxy /var/www/naturnetz.com/mapbender/cors_proxy<br> <Directory /var/www/naturnetz.com/mapbender/cors_proxy/><br> Options +FollowSymLinks<br> ReWriteEngine On<br> RewriteBase /cors_proxy<br> RewriteRule ^([\d]+)?$<br>http://127.0.0.1/cors_proxy/http/index.php?wmsid=$1\& [P,L,QSA,NE]<br> Options +Indexes<br> Allow from all<br> </Directory><br><br> Alias /http_auth /var/www/naturnetz.com/mapbender/http_auth<br> <Directory /var/www/naturnetz.com/mapbender/http_auth/><br> Options +FollowSymLinks +Indexes<br> ReWriteEngine On<br> RewriteBase /http_auth<br> RewriteRule ^([\d]+)\/?$<br>http://127.0.0.1/http_auth/http/index.php?layer_id=$1 [P,L,QSA,NE]<br> Order allow,deny<br> Allow from all<br> </Directory> <br><br></VirtualHost><br><br>My Mapbender.conf looks like this (just the parts we discussed):<br><br># --------------------------------------------<br># URL to owsproxy<br># (no terminating slash)<br># OWSPROXY_USE_LOCALHOST - use 127.0.0.1 and http for the requests if<br>possible<br># --------------------------------------------<br>define("OWSPROXY", "http://".$_SERVER['HTTP_HOST']."/owsproxy");<br>define("OWSPROXY_USE_LOCALHOST", false);<br><br># --------------------------------------------<br># Definitions for HTTP Authentication<br># --------------------------------------------<br>define('REALM', 'mapbender_registry');<br>define('NONCEKEY', 'mapbender');<br>$nonceLife = 300; <br>define('HTTP_AUTH_PROXY',"http://".$_SERVER['HTTP_HOST']."/http_auth");<br>//Problem - behind a rewrite rule - define it hardcoded?<br><br># --------------------------------------------<br># type of server-connection<br># curl, socket, http<br># --------------------------------------------<br><br>define("CONNECTION", "curl");<br>#define("CONNECTION", "http");<br>#define("CONNECTION", "socket");<br><br>define("CONNECTION_PROXY", ""); // ip<br>define("CONNECTION_PORT", ""); // port<br>define("CONNECTION_USER", "<user>"); // user<br>define("CONNECTION_PASSWORD", "<password>"); // password<br>define("CONNECTION_USERAGENT", "Mapbender");<br><br>Now when I put naturnetz.com/owsproxy into my browsers address bar, it says<br>"The requested URL /owsproxy was not found on this server." Shouldn't it<br>lead to the /var/www/naturnetz.com/mapbender/owsproxy folder?<br><br>Also, I have a wms-layer which is password protected in my mapbender<br>installation. I registered it once in this form:<br>http://user:password@url/wms?GetCapabilities&SERVICE=WMS&VERSION=1.1.0 and<br>once in this form: http://url/wms?GetCapabilities&SERVICE=WMS&VERSION=1.1.0.<br>Both times I also saved username and password in the field below and chose<br>"basic" as authentification method. In my GUI i added both wms variants. I<br>also added the owsproxy module to the gui. Now when I display the gui, the<br>wms variant where I entered username and password directly in the request<br>URL is displayed, but Mapbender still creates a popup asking me for the<br>credentials. When I enter the correct credentials, the layer is displayed no<br>problems. The other layer is never displayed and I am not asked for<br>credentials.<br>Now when I click the getURL button in the GUI I get a URL like this:<br>http://naturnetz.com/owsproxy/ks3p3ae2a3svhf3n7ugqj9sf06/45bcd5bfc8bc7f7ba12cb40981304185?.<br>When I enter this URL in the browser it says: "The requested URL<br>/owsproxy/ks3p3ae2a3svhf3n7ugqj9sf06/45bcd5bfc8bc7f7ba12cb40981304185 was<br>not found on this server."<br><br>Where could the error be? Did I miss anything?<br><br><br><br><br>--<br>View this message in context: http://osgeo-org.1560.x6.nabble.com/MB-2-7-x-Can-t-save-wms-application-settings-tp5244512p5253561.html<br>Sent from the mapbender-users mailing list archive at Nabble.com.<br>_______________________________________________<br>Mapbender_users mailing list<br>Mapbender_users@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/mapbender_users</p></blockquote><p>> http://lists.osgeo.org/mailman/listinfo/mapbender_users</p>
<br><br clear="ALL">
        <img moz-do-not-send="true"
src="http://www.lvermgeo.rlp.de/fileadmin/templates/neu/images/Signatur_LVermGeo.jpg"><br>

<br></body></html>