VPS侦探论坛

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

请教:LNMP1.3 环境安装moodle3.2页面不能正常访问?

[复制链接]
发表于 2017-2-3 19:32:07 | 显示全部楼层 |阅读模式

LNMP1.3 安装moodle3.2页面不能正常访问?修改了/usr/local/nginx/conf/nginx.conf文件:
server
{
listen 80 default;
#listen [::]:80 default ipv6only=on;
server_name www.lnmp.org;
index index.html index.htm index.php;
root  /home/wwwroot/default;
rewrite "^/pluginfile.php/(.*)$"/pluginfile.php?file=/$1 last;   #添加这两行代码
rewrite "^/draftfile.php/(.*)$"/draftfile.php?file=/$1 last;


moodle网页不能正常显示,图片不能显示,请问如何解决??谢谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-2-4 09:55:11 | 显示全部楼层


moodle应该是需要启用pathinfo的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-2-6 16:57:46 | 显示全部楼层

LNMP1.3 环境安装moodle3.2页面可以正常访问了


原帖由 licess 于 2017-2-4 09:55 发表
moodle应该是需要启用pathinfo的

谢谢,十分感谢军哥。
解决办法:
1.修改/usr/local/nginx/conf/nginx.conf文件
把include enable-php.conf;替换为include enable-php-pathinfo.conf;
2.systemctl restart nginx.service  重启nginx
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-27 23:32 , Processed in 0.026976 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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