You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am putting miniserve behind an Apache reverse proxy, on localhost and using subfolders (not subdomains).
http://localhost/miniserve/ display the miniserve root web page but links in the page are missing the subfolder path used in the host URL.
ls /home/pi/webroot
folder1
folder2
Links in miniserve page are in the form of http://localhost/folder1/ but I expect it to be in the form of http://localhost/miniserve/folder1/. Accessing directly http://localhost/miniserve/folder1/ behaves as expected.
Modifications to the default apache2.conf are as follow:
ProxyPreserveHost On
ProxyPass /miniserve/ http://127.0.0.1:8080/
ProxyPassReverse /miniserve/ http://127.0.0.1:8080/
The text was updated successfully, but these errors were encountered:
johnchristopher
changed the title
Apache subfolder reverse proxy not working, subfolder path in links removed
Apache subfolder reverse proxy not working, missing subfolder path in generated links
Oct 3, 2020
johnchristopher
changed the title
Apache subfolder reverse proxy not working, missing subfolder path in generated links
Missing subfolder path in generated links when using Apache reverse proxy
Oct 3, 2020
Hello,
I am putting miniserve behind an Apache reverse proxy, on localhost and using subfolders (not subdomains).
http://localhost/miniserve/
display the miniserve root web page but links in the page are missing the subfolder path used in the host URL.Links in miniserve page are in the form of
http://localhost/folder1/
but I expect it to be in the form ofhttp://localhost/miniserve/folder1/
. Accessing directlyhttp://localhost/miniserve/folder1/
behaves as expected.Modifications to the default apache2.conf are as follow:
I am running miniserve like this:
Is miniserve removing/ignoring path from the host when generating links or am I missing some additional apache2 settings ?
Thanks ^^
edit: I tested the apache2.config against a different webserver and it behaves according to my expectations:
pi@localhost: ~/webroot $ python -m SimpleHTTPServer 8080
edit2: Just saw this PR #208 about the issue.
The text was updated successfully, but these errors were encountered: