0
現在我有以下問題: 總是當我嘗試添加用戶或重置密碼我只重定向到一個空白頁。 首先,我認爲這是sendmail或nginx重定向的問題(這是我第一次使用nginx設置)。但是這兩種方法都是在我自己編寫的test.php文件內工作的。WordPress的顯示空白頁上useradd的 - Nginx的,HHVM,MariaDB的
而且WordPress的調試標誌沒有什麼幫助,因爲在空白頁上沒有輸出。我嘗試了不同的瀏覽器,但始終是相同的結果。
我的設置非常類似於這個Tutorial。我添加了sendmail軟件包。我的nginx網站可用/默認看起來是這樣的:
server {
server_name www.***.de;
rewrite^http://***.de$request_uri? permanent;
}
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
include hhvm.conf;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location/{
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
location ~ \.php$ {
# error_page 418 = @rewrite;
# recursive_error_pages on;
try_files $uri =404;
fastcgi_split_path_info ^[^=](.+\.php)(/.+)$;
include fastcgi_params;
if ($uri = /index.php) {
break;
}
# if (!-e $document_root$fastcgi_script_name) {
# return 418;
# }
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_read_timeout 240;
fastcgi_pass 127.0.0.1:9000;
}
}
非常感謝你的幫助。
- l1am0
你檢查服務器日誌是否存在錯誤。聽起來像一個致命的錯誤,並可能會在Apache錯誤日誌。 – AceWebDesign
可悲的是Nginx的錯誤日誌不幫我。他們沒有涉及這個文件的任何問題。 – l1am0