Docker: set favicon location in nginx configuration
Relates to https://github.com/shaarli/Shaarli/issues/681 Fixed: - nginx: set the favicon location See http://serverfault.com/a/352861 Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
849d1650c1
commit
b7f8b874bb
3 changed files with 15 additions and 0 deletions
|
@ -49,6 +49,11 @@ http {
|
||||||
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location = /favicon.ico {
|
||||||
|
# serve the Shaarli favicon from its custom location
|
||||||
|
alias /var/www/shaarli/images/favicon.ico;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ (index)\.php$ {
|
location ~ (index)\.php$ {
|
||||||
# filter and proxy PHP requests to PHP-FPM
|
# filter and proxy PHP requests to PHP-FPM
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
|
|
@ -41,6 +41,11 @@ http {
|
||||||
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location = /favicon.ico {
|
||||||
|
# serve the Shaarli favicon from its custom location
|
||||||
|
alias /var/www/shaarli/images/favicon.ico;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ (index)\.php$ {
|
location ~ (index)\.php$ {
|
||||||
# filter and proxy PHP requests to PHP-FPM
|
# filter and proxy PHP requests to PHP-FPM
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
|
|
@ -41,6 +41,11 @@ http {
|
||||||
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location = /favicon.ico {
|
||||||
|
# serve the Shaarli favicon from its custom location
|
||||||
|
alias /var/www/shaarli/images/favicon.ico;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ (index)\.php$ {
|
location ~ (index)\.php$ {
|
||||||
# filter and proxy PHP requests to PHP-FPM
|
# filter and proxy PHP requests to PHP-FPM
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
|
Loading…
Reference in a new issue