-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 error while submitting request #191
Comments
it happens while using |
It's not clear ! |
it could be typed or used randomly by anyone. It actually opens the frontend. But the request to dispatcher is not correct. edit: I meant, if this link is used to access frontend, no requests to dispatcher from the apparently normal frontend session can work |
Typing https://www.astro.unige.ch/mmoda in a browser returns the right content. |
that's why it's deceptive. In this "right" content, it is not possible to submit an request. Try "submit" |
Ah Ok, I see ! |
I'm on it ... |
In fact, I've never seen it because my apache config is adding the trailing slash once the user press enter :-) |
The issue is more complex than expected as discussed in the last meeting (30/01/2023).
In mod_dir documentation it's not recommended to set this parameter to Off. They pointout to security warning. Even it's recommended to have a trailing slash for URLs pointing to directories, it does not matter to have it or not. Search engines do handle properly both URLs. However it's highly recommended to not return the content for both but choose one as canonical and redirect the second to the first one. In the light of the above, I recommend to use the URL with a trailing slash (https://cdcidev.mtmco.net/mmoda/) as the canonical one and redirect the one without (https://cdcidev.mtmco.net/mmoda) to it. This can be easily achieved by enabling the Apache module mod_dir (in the case of Apache web server). |
My (somewhat old) installation of frontend in k8s in France https://sbgvm-151-156.in2p3.fr/mmoda redirects properly |
Perfect ! Your instance behaves exactly as described above. |
could you @dsavchenko please make the necessary adaptation to https://github.com/oda-hub/frontend-chart ? |
But I don't see any difference in the apache config that could affect this behavior between my installation and the current version. Current chart therefore should work properly. Are you sure the problem in prod originates there? I will check it directly, of course. |
I can try to adapt it on apache level, but still it appears unfortunate that while the frontend page loads, the request fails. I think it might be possible to add redundancy at the drupal module level to send the request to the right place? |
We have just got the "demonstrator effect" with this issue on unige instance I verified, that my French staging instance is always redirecting to the address with the trailing slash |
experienced by @rokroskar , was not seen/report recently by anyone else, hard to track, bad experiene
edit: we'll wait for extra details
The text was updated successfully, but these errors were encountered: