Skip to content

Commit

Permalink
Update config for fcgi - CGIPassAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Oct 13, 2023
1 parent 39bcf6b commit ed24c28
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions images/web/config/production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

<Location />
CGIPassAuth On
CGIPassAuth Off
</Location>

# ======Proxying traffic to CGImap====
Expand All @@ -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
<Directory /var/www/public>
Expand Down

0 comments on commit ed24c28

Please sign in to comment.