VPS侦探论坛

 找回密码
 注册
查看: 2768|回复: 1

请教大神们根目录跳转问题

[复制链接]
发表于 2018-8-7 11:37:10 | 显示全部楼层 |阅读模式

我用lnmp建立了一个网站  是ip/website 为主页现在我想直接ip访问网站  我修改了nginx.conf但是没有效果。。。。
修改完的nginx.conf:
server_name _;
        index index.html index.htm index.php;
        root  /home/wwwroot/default/website/;


修改之前的:
server_name _;
        index index.html index.htm index.php;
        root  /home/wwwroot/default/;



是我改的不对吗??
请教各位大神   到底是什么原因?谢谢!!!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2018-8-7 18:33:43 | 显示全部楼层


root改成你目录,重启nginx
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-23 19:14 , Processed in 0.027389 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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