Hard reload causing 404 #1145
Replies: 2 comments 2 replies
-
This is the nginx configuration used by shlink-web-client's docker image, to ensure any path falls back to the index.html file if it doesn't match an actual static file: https://github.com/shlinkio/shlink-web-client/blob/develop/config/docker/nginx.conf#L34 It's not Apache, but maybe it gives you some clue. |
Beta Was this translation helpful? Give feedback.
-
Well that did give me the idea to just cheat and use nginx to host it. When hosting with nginx, the fallback to |
Beta Was this translation helpful? Give feedback.
-
shlink-web-client version
4.1.1
How do you use shlink-web-client
Self-hosted
Summary
OK so I recently deployed shlink to a linode running Debian 12. Very basic install, I am hosting the main app using RoadRunner with apache setup for reverse proxy and SSL termination. All is working great there. I have shlink-web-client setup as a subdomain in apache serving the static files protected with basic HTTP auth. All is working there too.. the only issue is that if I am on a server page (for example:
/server/53ef4862-27bc-4b8e-aeaf-b715ef0a4695/overview
) and I reload the page, I am presented with a 404.Now, I see that there is a
.htaccess
file in the root of the static file directory, I verified that the rewrite module is enabled in apache usinga2enmod
, I made sure to addAllowOverride all
to the vhost config.. everything seems to be in place but apache doesn't seem to be honoring the fallback of serving upindex.html
if a nonexistent page is requested. I also verified that apache is at least reading the htaccess file because if I intentionally modify the rewrite conditions, I can cause the app to break altogether (again, just for confirmation that mod rewrite is actually loaded).I feel like its something simple and I am just overlooking it but I have no idea what at this point. Can anyone provide me with any suggestions of additional things to check?
Beta Was this translation helpful? Give feedback.
All reactions