You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@debian-s-1vcpu-1gb-nyc3-01:/etc/nginx/sites-enabled# vim default
server {
listen 80 138.197.15.188;
listen [::]:80 2604:a880:800:a1::c3f:4001;
return 301 $scheme://xzwk.gq$request_uri;
# 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;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules;
}
The text was updated successfully, but these errors were encountered:
大佬,想问个问题。我安装完sspanel,安装大佬的一键脚本,成功拿到证书,结果网站打开是index页面
![image](https://user-images.githubusercontent.com/12608461/49808254-f18ba400-fd7d-11e8-9cfb-45f0d1a94e1e.png)
如上图,ip地址打开发现是nginx的欢迎页面。我想显示自己的网站地址,在网路上搜索很久,没有什么好办法,大佬能回复一下吗啊?感谢!
我是在Digital Ocean上安装的Debian8系统。
/etc/nginx/sites-enabled/default,我编辑的是这个文件
root@debian-s-1vcpu-1gb-nyc3-01:/etc/nginx/sites-enabled# vim default
server {
listen 80 138.197.15.188;
listen [::]:80 2604:a880:800:a1::c3f:4001;
return 301 $scheme://xzwk.gq$request_uri;
The text was updated successfully, but these errors were encountered: