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 will need a go based solution, not at the container level
the container is suppose to mount volume and there is no reason it will be on /usr/share/httpd
1- first fix the infinte loop in the correct function, if index.html request a redirection because file is missing then we need to show an internal server error 500
2- when the server starts verify that index.html exists before starting
AntonioArts
changed the title
Add default index.html and not found 404.html
Handle index.html missing, handle page not found 404
Mar 4, 2019
I will need a go based solution, not at the container level
the container is suppose to mount volume and there is no reason it will be on /usr/share/httpd
/usr/share/httpd it's a hardcoded root for serving files.
Added server startup check if index.html exists. Without mounted httpd folder server won't start because of lack of index.html file. So this only possible solution for now
Added 404 page not found error if file do not exists.
AntonioArts
changed the title
Handle index.html missing, handle page not found 404
Prevent infinite loop bug when index.html is missed
Mar 5, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.