1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

Fix nginx alias_transveral

This commit is contained in:
Jean-Baptiste Holcroft 2018-01-19 08:08:46 +01:00
parent 3664dc8cd2
commit 12b209a5a4

View file

@ -12,25 +12,25 @@ location __PATH__ {
include conf.d/yunohost_panel.conf.inc;
}
location __PATH__/favicon.ico {
location ^__PATH__/favicon.ico$ {
# DATA_DIR/static/favicon.ico
alias __FINALPATH__/data/static/favicon.ico;
expires 30d;
}
location __PATH__/robots.txt {
location ^__PATH__/robots.txt$ {
# DATA_DIR/static/robots.txt
alias __FINALPATH__/data/static/robots.txt;
expires 30d;
}
location __PATH__/static {
location __PATH__/static/ {
# DATA_DIR/static/
alias __FINALPATH__/data/static/;
expires 30d;
}
location __PATH__/media {
location __PATH__/media/ {
# DATA_DIR/media/
alias __FINALPATH__/data/media/;
expires 30d;