diff --git a/salt/apache/files/sites/pelican.conf.include b/salt/apache/files/sites/pelican.conf.include index 6bb8d4eb..c3ea5b39 100644 --- a/salt/apache/files/sites/pelican.conf.include +++ b/salt/apache/files/sites/pelican.conf.include @@ -4,11 +4,8 @@ RequestHeader unset X-Forwarded-Proto RequestHeader set X-Forwarded-Proto https env=HTTPS - {#- Match the URL patterns in pelican-frontend's urls.py files. #} - {%- for endpoint in ['api', 'datasets', 'data_items'] %} - ProxyPass /{{ endpoint }}/ http://127.0.0.1:{{ django_port }}/{{ endpoint }}/ timeout={{ timeout }} - ProxyPassReverse /{{ endpoint }}/ http://127.0.0.1:{{ django_port }}/{{ endpoint }}/ - {% endfor %} + ProxyPass /api/ http://127.0.0.1:{{ django_port }}/api/ timeout={{ timeout }} + ProxyPassReverse /api/ http://127.0.0.1:{{ django_port }}/api/ ProxyPass / http://127.0.0.1:{{ port }}/ ProxyPassReverse / http://127.0.0.1:{{ port }}/