بعد نصب nginx وردپرس خطا میده
سلام دوستان
من تو کنترل پنل kloxo
nginx رو نصب کردم و اجرا میشه و مشکلی نداره ولی سایت وردپرسی که روش دارم خطا زیر رو میده
میشه راهنمایی بکنین
nginx error!
The page you are looking for is not found.
Website Administrator
Something has triggered missing webpage on your website. This is the default 404 error page for nginx that is distributed with EPEL. It is located /usr/share/nginx/html/404.html
You should customize this error page for your own site or edit the error_page directive in the nginx configuration file /etc/nginx/nginx.conf.
پاسخ : بعد نصب nginx وردپرس خطا میده
درود بر شما
مسلما error میبده چون شما rewrite کد های مربوط به wordpress را در nginx rules تعریف نکرده اید
باید کدهای htaccess را به nginx تبدیل نمایید
پاسخ : بعد نصب nginx وردپرس خطا میده
سلام ممنونم من این کارو بلد نیستم میشه کمکم کنین؟
راستی تو قسمت Switch Program کلوکسو nginx نیومده چرا؟ فقط همون اپاچی و لایت هستش
پاسخ : بعد نصب nginx وردپرس خطا میده
نقل قول:
نوشته اصلی توسط
djboy
سلام دوستان
من تو کنترل پنل kloxo
nginx رو نصب کردم و اجرا میشه و مشکلی نداره ولی سایت وردپرسی که روش دارم خطا زیر رو میده
میشه راهنمایی بکنین
nginx error!
The page you are looking for is not found.
Website Administrator
Something has triggered missing webpage on your website. This is the default 404 error page for nginx that is distributed with EPEL. It is located /usr/share/nginx/html/404.html
You should customize this error page for your own site or edit the error_page directive in the nginx configuration file /etc/nginx/nginx.conf.
باید ریرایست های اون رو بنویسید
یه نمونش اینه
کد:
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
# Directives to send expires headers and turn off 404 error logging.
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; log_not_found off; expires max;
}
# Uncomment one of the lines below for the appropriate caching plugin (if used).
#include global/wordpress-wp-super-cache.conf;
#include global/wordpress-w3-total-cache.conf;
# Pass all .php files onto a php-fpm/php-fcgi server.
location ~ \.php$ {
# Zero-day exploit defense.
# http://forum.nginx.org/read.php?2,88845,page=3
# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_intercept_errors on;
fastcgi_pass php;
}
پاسخ : بعد نصب nginx وردپرس خطا میده
نقل قول:
نوشته اصلی توسط
ali_fattahi
باید ریرایست های اون رو بنویسید
یه نمونش اینه
کد:
location / {
try_files $uri $uri/ /index.php?$args;
}
# Add trailing slash to */wp-admin requests.
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
# Directives to send expires headers and turn off 404 error logging.
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; log_not_found off; expires max;
}
# Uncomment one of the lines below for the appropriate caching plugin (if used).
#include global/wordpress-wp-super-cache.conf;
#include global/wordpress-w3-total-cache.conf;
# Pass all .php files onto a php-fpm/php-fcgi server.
location ~ \.php$ {
# Zero-day exploit defense.
# http://forum.nginx.org/read.php?2,88845,page=3
# Won't work properly (404 error) if the file is not stored on this server, which is entirely possible with php-fpm/php-fcgi.
# Comment the 'try_files' line out if you set up php-fpm/php-fcgi on another machine. And then cross your fingers that you won't get hacked.
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_intercept_errors on;
fastcgi_pass php;
}
ممنونم ، کجا باید قرار بگیره
پاسخ : بعد نصب nginx وردپرس خطا میده