- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-20-2023 01:28 PM
After upgrading Expedition to 1.2.57 we are seeing behavior where upon page refresh while in the Expedition tool we are booted back out to the login screen. Full disclosure, patching Ubuntu seemed to have broken apache2 so we had to delete apache, then run the Expedition installer script again to get it running again. We can login and see our projects but when refreshing the page we are being logged out.
04-27-2023 11:09 AM
I’m wondering if it is something with Apache’s configuration.
####
Hey this is actually a pretty common thing.
What's happening is you need to get your apache server to ignore any nested paths and just send all requests /* to root instead. That way your front-end javascript can pick up the route on the client-side and display the correct view.
This is sometimes referred to as "HTML5 Mode" in different webservers.
In apache the way you do this is add a rule like the following:
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]
RewriteRule ^ /index.html [L]
What this does is to tell Apache to serve any files that exist, but if they dont exist, just serve /index.html rather than a 404 not found.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!