This commit is contained in:
Bachir Soussi Chiadmi
2018-04-05 23:28:32 +02:00
parent 5a54256c5a
commit a927903f81
2 changed files with 7 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
server {
listen 80 default_server;
listen 80;
root /var/www/yourdomain.ltd/public_html;
index index.html index.php;
@@ -15,7 +15,6 @@ server {
location = /robots.txt { access_log off; log_not_found off; }
access_log on;
# error_log /var/log/nginx/error.log error;
error_log /var/www/yourdomain.ltd/log/error.log;
sendfile off;
@@ -24,7 +23,7 @@ server {
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php7.0-fpm.sock
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;