VPS侦探论坛

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

centOS 7 lnmp 装 Laravel 框架

[复制链接]
发表于 2019-2-27 00:24:53 | 显示全部楼层 |阅读模式

已经修改了nginx.conf 文件 如下 为什么 网页输入localhost.index.php 没有跳转Laravel首页
server
    {
        listen 80 default_server;
        #listen [::]:80 default_server ipv6only=on;
        server_name localhost;
        index index.html index.htm index.php;
        root  /home/wwwroot/default/bloga/public;

        #error_page   404   /404.html;

        # Deny access to PHP files in specific directory
        #location ~ /(wp-content|uploads|wp-includes|images)/.*.php$ { deny all; }
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-2-27 09:59:52 | 显示全部楼层


localhost 只能在你安装lnmp的本机上才是可以的
lnmp模式下这种跨目录读取的都是需要去掉防跨目录设置的
没有具体错误信息的话也不好判断
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-23 03:31 , Processed in 0.025293 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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