treebird/docs/sample/treebird.apache.conf
me@ow.nekobit.net 2fb579ee96 Use spawn-fcgi for script
FossilOrigin-Name: 4f5da6be904e61ff198e93d2075a5e090ae9016b7429a64a38fe3e9f5e894b77
2022-05-02 17:33:59 +00:00

21 lines
622 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 ^/(treebird\_logo|favicon).png$ /$1.png [L]
# Set PATH_INFO variable
SetEnvIf Request_URI . proxy-fcgi-pathinfo=1
ProxyPass / "fcgi://localhost:4008/"
</VirtualHost>