mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-18 14:55:09 +01:00
Merge branch 'proper-favicon-support' into 'master'
Proper favicon support See merge request allianceauth/allianceauth!1520
This commit is contained in:
@@ -75,6 +75,7 @@ Place your virtual host configuration in the appropriate section within `/etc/ht
|
||||
|
||||
ProxyPassMatch ^/static !
|
||||
ProxyPassMatch ^/robots.txt !
|
||||
ProxyPassMatch ^/favicon.ico !
|
||||
|
||||
ProxyPass / http://127.0.0.1:8000/
|
||||
ProxyPassReverse / http://127.0.0.1:8000/
|
||||
@@ -82,6 +83,7 @@ Place your virtual host configuration in the appropriate section within `/etc/ht
|
||||
|
||||
Alias "/static" "/var/www/myauth/static"
|
||||
Alias "/robots.txt" "/var/www/myauth/static/robots.txt"
|
||||
Alias "/favicon.ico" "/var/www/myauth/static/allianceauth/icons/favicon.ico"
|
||||
|
||||
<Directory "/var/www/myauth/static">
|
||||
Require all granted
|
||||
@@ -91,6 +93,11 @@ Place your virtual host configuration in the appropriate section within `/etc/ht
|
||||
SetHandler None
|
||||
Require all granted
|
||||
</Location>
|
||||
|
||||
<Location "/favicon.ico">
|
||||
SetHandler None
|
||||
Require all granted
|
||||
</Location>
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
|
||||
@@ -83,8 +83,6 @@ server {
|
||||
|
||||
server_name example.com;
|
||||
|
||||
location = /favicon.ico { access_log off; log_not_found off; }
|
||||
|
||||
location /static {
|
||||
alias /var/www/myauth/static;
|
||||
autoindex off;
|
||||
@@ -94,6 +92,10 @@ server {
|
||||
alias /var/www/myauth/static/robots.txt;
|
||||
}
|
||||
|
||||
location /favicon.ico {
|
||||
alias /var/www/myauth/static/allianceauth/icons/favicon.ico;
|
||||
}
|
||||
|
||||
# Gunicorn config goes below
|
||||
location / {
|
||||
include proxy_params;
|
||||
|
||||
Reference in New Issue
Block a user