Skip to content

Instantly share code, notes, and snippets.

@mjau-mjau
Created June 28, 2017 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjau-mjau/72fc8e8f004f280ba9cad9d79b0d1596 to your computer and use it in GitHub Desktop.
Save mjau-mjau/72fc8e8f004f280ba9cad9d79b0d1596 to your computer and use it in GitHub Desktop.
Hiawatha Server configuration for X3
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/
}
@mjau-mjau
Copy link
Author

mjau-mjau commented Jun 28, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment