Created
June 28, 2017 12:46
-
-
Save mjau-mjau/72fc8e8f004f280ba9cad9d79b0d1596 to your computer and use it in GitHub Desktop.
Hiawatha Server configuration for X3
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
UrlToolkit { | |
ToolkitID = imagevuex3test | |
# Deny access to config and _cache folder | |
Match ^/test/(config|_cache) DenyAccess | |
# No rewrite for existing files | |
RequestURI isfile Return | |
# Rewrite any calls to html|json|xml|atom|rss if a folder matching * exists | |
Match ^/test/(.*)index\.json(.*)$ Rewrite /test/index.php | |
Match ^/test/(.*)\.(html|json|xml|atom|rss)(.*)$ Rewrite /test/index.php?/$1/ | |
# Rewrite routes to X3 render and panel | |
Match ^/test/render/.* Rewrite /test/app/parsers/slir/index.php | |
Match ^/test/panel/.* Rewrite /x3/panel/index.php | |
# Rewrite routes to X3 application index.php if they are non-existent files/dirs | |
Match ^/test/(.*)/$ Rewrite /test/index.php?/$1/ | |
Match ^/test/(.*)$ Rewrite /test/index.php?/$1/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hiawatha server configuration provided by @Gorescore
https://imagevuex.com/forum/viewtopic.php?p=42081#p42060
See it running here : https://mviess.de/test
Change /test directory name as necessary.