nginx i wordpress
: 24 lipca 2017, 14:08
Witam,
jak umieszczę wordpressa w katalogu /var/www/html/wp to wordpress odpala się z białym ekranem jak dam do /var/www/html to działa.
Mój config strony default
Nie bardzo wiem dlaczego?
jak umieszczę wordpressa w katalogu /var/www/html/wp to wordpress odpala się z białym ekranem jak dam do /var/www/html to działa.
Mój config strony default
Kod: Zaznacz cały
server
{
listen 80;
server_name strona.pl;
root /var/www/html;
index index.php index.html index.htm;
# Redirect server error pages to the static page #
location /
{
try_files $uri $uri/ /index.php;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html
{
root /usr/share/nginx/www;
}
# Pass the PHP scripts to FastCGI server #
location ~ \.php$
{
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
}