VPS侦探论坛

 找回密码
 注册
查看: 3112|回复: 2

LNMP1.3安装typecho出现“Welcome to nginx!”(问题已解决)

[复制链接]
发表于 2016-12-9 22:49:31 | 显示全部楼层 |阅读模式

军哥,我在LNMP1.3下,安装了typecho。由于需要配置ssl证书,于是我修改了网站配置文件,结果网站出现了“Welcome to nginx”提示。我删除网站,重装也是一样。
我用的是LNMP1.3环境,腾讯云Centos 7.2x64。每次配置环境前,我都会重装系统,所以没有其他的环境,只有LNMP1.3环境。
下面是我的网站配置文件:
server
    {
        listen 443;
        ssl on;
        ssl_certificate /usr/local/nginx/conf/vhost/ssl/im.jianrry.com.crt;
        ssl_certificate_key /usr/local/nginx/conf/vhost/ssl/im.jianrry.com.key;
        server_name im.jianrry.com;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/im.jianrry.com;

        include typecho.conf;
        #error_page   404   /404.html;
        include enable-php.conf;

        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
            expires      30d;
        }

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/im.jianrry.com.log;
    }

server
{
        listen 80;
        server_name im.jianrry.com;
        rewrite ^(.*) https://im.jianrry.com$1 permanent;
}

[ 本帖最后由 Jianrry 于 2016-12-10 14:41 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-12-10 09:54:25 | 显示全部楼层


配置文件不完善,但是默认界面不会显示这个,可能其他配置文件有问题或者有通过其他方式安装的nginx
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-12-10 14:43:07 | 显示全部楼层

回复 2# 的帖子


不知道为什么它自动恢复,可以访问了。但还是要谢谢军哥。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-3-19 10:31 , Processed in 0.026501 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表