treebird/docs/sample/treebird.apache.conf
me@ow.nekobit.net 341aa3fa1a Update README, config template, restructure documentation
FossilOrigin-Name: f11602e6271c422280fd8474abf2ef63ec6021e144e8359f0ff145e423ad1333
2022-03-21 19:35:29 +00:00

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