我的Wordpress网站上没有任何变化,我在Digitalocean上通过一键式Wordpress安装进行托管。出于某种原因,它现在显示“欢迎使用Nginx”文本。从我的研究到目前为止,我尝试过:
- 停止/重新启动nginx:停止时,站点关闭,重启并不显示欢迎文本
- 检查/ etc / nginx / sites-available / default是否有root / var / www / html;在服务器下
- 检查nginx是否运行(确实如此)
- 检查apache是否正在运行(似乎没有)
- 检查我的设备是否有问题:不,我检查了我的笔记本电脑,手机和平板电脑 - 问题是一样的
有关如何恢复我的网站的任何想法?
这是nginx -T(配置文件)的输出:
# 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.html index.htm index.nginx-debian.html;
server_name _;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
#
# # With php7.0-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php7.0-fpm:
# fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
并且树/ etc / nginx /的输出是:
/etc/nginx/
├── conf.d
├── fastcgi.conf
├── fastcgi_params
├── koi-utf
├── koi-win
├── mime.types
├── nginx.conf
├── proxy_params
├── scgi_params
├── sites-available
│ └── default
├── sites-enabled
│ └── default -> /etc/nginx/sites-available/default
├── snippets
│ ├── fastcgi-php.conf
│ └── snakeoil.conf
├── uwsgi_params
└── win-utf
4 directories, 14 files