Skip to content

Commit

Permalink
Merge pull request #248 from OpenHistoricalMap/apache/config_v2
Browse files Browse the repository at this point in the history
Enable CGIMAP Apache  redirects for uploads
  • Loading branch information
Ruben L. Mendoza authored Nov 22, 2023
2 parents 70447a2 + d91f5be commit 8b724db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions images/web/config/production.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
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]

# # For changeset requests originating from TM, do not use cgimap.
# RewriteCond %{REQUEST_METHOD} ^POST$
# RewriteCond %{HTTP_REFERER} !^https://tasks(-\w+)?\.openhistoricalmap\.org/ [NC]
# RewriteRule ^/api/0\.6/changeset/[0-9]+/(upload|download)(\.json|\.xml)?$ fcgi://127.0.0.1:8000$0 [P]
# For changeset requests originating from TM, do not use cgimap.
RewriteCond %{REQUEST_METHOD} ^POST$
RewriteCond %{HTTP_REFERER} !^https://tasks(-\w+)?\.openhistoricalmap\.org/ [NC]
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 8b724db

Please sign in to comment.