treebird/docs/sample/treebird.apache.conf
nekobit 8ab015670b Update documentation
FossilOrigin-Name: 2d30985f1372881742aecd1a74547c608bb2b100d6667f534dcb4148e7b97e2d
2022-07-21 22:32:48 +00:00

20 lines
No EOL
638 B
Text

<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>