Closed GrimWinter closed 2 years ago
In order to proxy to a subfolder you have to set the following header:
X-Script-Name : subfolder
for apache I don't know if you'll need a leading slash or not.
@GrimWinter Since you are using apache can you confirm the config in #1312 so that it can be added to a FAQ?
@smilerz I agree #1312 corrected my issue and works. I am online!
Thank for the help.
Issue
I am attempting to setup Tandoor behind a Apache2 Proxy under a subfolder.
In Apache2 I looked how to use a Unix Socket this was the preferred method:
ProxyPass /recipes unix:/var/www/recipes/recipes.sock|http://localhost/
Alias /recipes/static/ /var/www/recipes/static/ Alias /recipes/media/ /var/www/recipes/media/ <Directory "/var/www/recipes/"> Require all granted
In the .env I put:
SCRIPT_NAME=/recipes STATIC_URL=/recipes/static/ MEDIA_URL=/recipes/media/
With these settings it fails. If I rem out SCRIPT_NAME and manually append /recipes/ to the url the page halfway loads.
I've tried mixing it around, at this point I think I just break both directions, does anyone have any info I can try?
Tandoor Version
latest version as of 01/13/22
OS Version
Debian bullseye
Setup
Manual Setup
Reverse Proxy
Others (please state below)
Other
Apache2
Environment file
Docker-Compose file
No response
Relevant logs
No response