forked from tastytea/libravatarserv
Fixed enginx example
This commit is contained in:
parent
d2d35d8ac5
commit
ca0650a4cd
|
@ -32,9 +32,16 @@ server {
|
||||||
# access_log /var/log/nginx/avatar main;
|
# access_log /var/log/nginx/avatar main;
|
||||||
error_log /var/log/nginx/avatar warn;
|
error_log /var/log/nginx/avatar warn;
|
||||||
|
|
||||||
|
expires 86400;
|
||||||
|
add_header Cache-Control "public, max-age=86400" always;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
include /etc/nginx/fastcgi_params;
|
include /etc/nginx/fastcgi_params;
|
||||||
fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1;
|
fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1;
|
||||||
fastcgi_param SCRIPT_FILENAME /usr/bin/libravatarserv;
|
fastcgi_param SCRIPT_FILENAME /usr/bin/libravatarserv;
|
||||||
|
|
||||||
|
# fastcgi_param LIBRAVATARSERV_DEFAULT_FALLBACK 404;
|
||||||
|
# fastcgi_param LIBRAVATARSERV_REDIRECT_NOFALLBACK 0;
|
||||||
|
# fastcgi_param LIBRAVATARSERV_REDIRECT_NOUSER 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue