-
December 8th, 2013, 21:23
#1
بعد نصب 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.
ویرایش توسط djboy : December 8th, 2013 در ساعت 21:25
دلیل: اشتباه تایپی
-
-
December 8th, 2013 21:23
# ADS
-
December 8th, 2013, 21:35
#2
عضو دائم
پاسخ : بعد نصب nginx وردپرس خطا میده
درود بر شما
مسلما error میبده چون شما rewrite کد های مربوط به wordpress را در nginx rules تعریف نکرده اید
باید کدهای htaccess را به nginx تبدیل نمایید
:: کارشناس فنی هاستینگ و مدیریت سرور
:: کانفیگ حرفه ای سرور مجازی و اختصاصی و رفع اشکال سرور از سال 1388
:: وب سایت :
www.nginxweb.ir | تلفن شرکت:
02191300834
-
تعداد تشکر ها از nginxweb به دلیل پست مفید
-
December 8th, 2013, 21:41
#3
پاسخ : بعد نصب nginx وردپرس خطا میده
سلام ممنونم من این کارو بلد نیستم میشه کمکم کنین؟
راستی تو قسمت Switch Program کلوکسو nginx نیومده چرا؟ فقط همون اپاچی و لایت هستش
-
-
December 8th, 2013, 22:37
#4
عضو انجمن
پاسخ : بعد نصب 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;
}
-
تعداد تشکر ها از ali_fattahi به دلیل پست مفید
-
December 9th, 2013, 10:11
#5
پاسخ : بعد نصب 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;
}
ممنونم ، کجا باید قرار بگیره
-
-
December 9th, 2013, 19:54
#6
پاسخ : بعد نصب nginx وردپرس خطا میده
-