+ grav, s3, wordpress & yii nginx example configs
This commit is contained in:
@ -34,32 +34,3 @@ server {
|
||||
fastcgi_param SERVER_NAME $host;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
server_name
|
||||
wordpress.ru.local.wpstudio.ru
|
||||
;
|
||||
listen 80;
|
||||
root $root;
|
||||
index index.html index.htm index.php;
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
|
||||
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
|
||||
access_log off;
|
||||
}
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
||||
fastcgi_param SERVER_NAME $host;
|
||||
fastcgi_pass php74;
|
||||
fastcgi_index index.php;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user