diff --git a/images/web/config/production.conf b/images/web/config/production.conf index 77c5d04d..730ffe30 100644 --- a/images/web/config/production.conf +++ b/images/web/config/production.conf @@ -19,7 +19,7 @@ RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - CGIPassAuth On + CGIPassAuth Off # ======Proxying traffic to CGImap==== @@ -32,15 +32,7 @@ RewriteRule ^/api/0\.6/node/[0-9]+/ways(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P] RewriteRule ^/api/0\.6/(way|relation)/[0-9]+/full(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P] RewriteRule ^/api/0\.6/(nodes|ways|relations)(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P] - RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P] - - # - # Redirect non-api requests made to api.openhistoricalmap.org to www.openhistoricalmap.org - # Testing - # - # RewriteCond %{HTTP_HOST} ^api\. - # RewriteCond %{REQUEST_URI} !^/api/ - # RewriteRule ^(.*)$ https://staging.openhistoricalmap.org$1 [L,NE,R=permanent] + # RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P] # Relax Apache security settings