Last active
October 11, 2018 08:08
-
-
Save Eduard-gan/4f0f4bcfe5f8af3bf855c21baedee550 to your computer and use it in GitHub Desktop.
Apache: add static file under root of mounted WSGI appilication
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
| It's possible with Alias directive which is used like this | |
| Alias /google_485135.html /usr/egan/google_485135.html | |
| You can get 403 when serving of the file is working | |
| to solve it you need to configure access to file on Apache level. | |
| Alias /google_485135.html /usr/egan/google_485135.html | |
| <Directory /usr/egan> | |
| Require all granted | |
| </Directory> | |
| OR just use filesystem location with already configured permissions | |
| for example ../static which is almost always is configured properly. | |
| Also check that Apache has access to file in filesystem permissions, | |
| if it's no - there will be the same 403 but the reason will be exactly filesystem permissions | |
| Good mod_wsgi article(source of solution): | |
| https://code.google.com/archive/p/modwsgi/wikis/ConfigurationGuidelines.wiki |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment