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