treebird/docs/sample/treebird.apache.conf
nekobit 468d9cb8aa Fix
FossilOrigin-Name: 92a3fcb1e4b90107e03ab3485fce655176083965ff09bfa12aa189cee0234647
2022-06-28 05:09:54 +00:00

24 lines
No EOL
751 B
Text

# TODO a lot of things
# THIS IS UNTESTED AND INCOMPLETE, ITS JUST FOR REFERENCE
# Give access to our directory
<Directory "/usr/local/share/treebird/dist">
Require all granted
</Directory>
<VirtualHost *:80>
DocumentRoot "/usr/local/share/treebird/dist"
# Intercept meta files to be loaded before proxy
RewriteEngine on
RewriteRule ^/(.*).css$ /$1.css [L]
RewriteRule ^/svg/(.*).svg$ /svg/$1.svg [L]
RewriteRule ^/js/(.*).js /js/$1.js [L]
RewriteRule ^/img/(.*)$ /img/$1 [L]
RewriteRule ^/emoji.json$ /emoji.json [L]
RewriteRule ^/(treebird\_logo|favicon).png$ /$1.png [L]
# Set PATH_INFO variable
SetEnvIf Request_URI . proxy-fcgi-pathinfo=1
ProxyPass / "fcgi://localhost:4008/"
</VirtualHost>