-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rewrite internally in Apache * Try to fix infinite redirects * Use more generic file name * More documentation * Cleanup, less strict env variables * Depend on database * Make README match configuration options
- Loading branch information
Showing
6 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Allows all resources to be accessed on its given subpath | ||
# Resolves 404 errors when files are served at the root | ||
LoadModule env_module modules/mod_env.so | ||
LoadModule alias_module modules/mod_alias.so | ||
|
||
<VirtualHost *:80> | ||
<If "env('WIKI_PATH') != ''"> | ||
Define WIKI_ALIAS_PATH "${WIKI_PATH}" | ||
</If> | ||
<If "env('WIKI_PATH') == ''"> | ||
Define WIKI_ALIAS_PATH "" | ||
</If> | ||
|
||
Alias ${WIKI_ALIAS_PATH} /var/www/html | ||
|
||
ErrorLog ${APACHE_LOG_DIR}/error.log | ||
CustomLog ${APACHE_LOG_DIR}/access.log combined | ||
|
||
AllowEncodedSlashes NoDecode | ||
</VirtualHost> |
This file contains 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