treebird/docs/sample/treebird.apache.conf
nekobit c5d8b9df68 L10N Language support
FossilOrigin-Name: 14aa65bba9ad19568fcec029c2edd8e8e7ea2c0a78a019265c2ff0c8d639ff80
2022-06-05 22:25:18 +00:00

22 lines
666 B
Plaintext

# 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 /svg/$1.js [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>