tester les config wordpress
This commit is contained in:
@@ -71,8 +71,9 @@ http {
|
|||||||
#root and index and server_name
|
#root and index and server_name
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
server_name yantoine.42.fr;
|
server_name yantoine.42.fr;
|
||||||
#index index.nginx-debian.html;
|
#index;
|
||||||
index index.php
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
@@ -82,5 +83,13 @@ http {
|
|||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
# fastcgi_pass php:9000;
|
# fastcgi_pass php:9000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
try_files $uri =404;
|
||||||
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user