mirror of
https://github.com/YunoHost-Apps/friendica_ynh.git
synced 2024-09-03 18:36:14 +02:00
Fixes in nginx
This commit is contained in:
parent
34cd8e1408
commit
a6532a40f5
1 changed files with 3 additions and 15 deletions
|
@ -48,7 +48,6 @@ location __PATH__ {
|
|||
|
||||
#Default indexes and catch-all
|
||||
index index.php;
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
|
||||
|
||||
# make sure webfinger and other well known services aren't blocked
|
||||
|
@ -68,25 +67,14 @@ location __PATH__ {
|
|||
}
|
||||
|
||||
|
||||
#statically serve these file types when possible
|
||||
#otherwise fall back to front controller
|
||||
#allow browser to cache them
|
||||
#added .htm for advanced source code editor library
|
||||
location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|woff|svg)$ {
|
||||
expires 30d;
|
||||
try_files $uri /index.php?pagename=$request_uri&$args;
|
||||
}
|
||||
|
||||
|
||||
#Execute and serve PHP files
|
||||
location ~ [^/]\.php(/|$) {
|
||||
location ~* \.php$ {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
try_files $uri =404;
|
||||
fastcgi_pass unix:/var/run/php5-fpm-__NAME__.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue