How can I use a ProxyPass
and DirectoryIndex
at the same time?
I have the following rule:
# Index
DirectoryIndex index.html
# Service Endpoint
ProxyPass /endpointA http://127.0.0.1:wxyz/
ProxyPassReverse /endpointA http://127.0.0.1:wxyz/
# Root Endpoint
ProxyPass / http://127.0.0.1:8080/static/
ProxyPassReverse / http://127.0.0.1:8080/static/
The expected behavior is that when a user hits the machine at /
, they should be served 127.0.0.1:8080/static/index.html
I however, am getting a 404 from the /static/
endpoint as it appears there is no default page trying to be loaded; this all works correctly if I hit
/index.html
Which routes me to 127.0.0.1:8080/static/index.html
How can I have a ProxyPass and a DirectoryIndex working at the same time, or some other combination of configuration, so that when a user simply hits
/
, they are routed to127.0.0.1:8080/static/index.html
and not just127.0.0.1:8080/static
?