2016-08-21 10:37:15 3560次浏览 1条回答 0 悬赏 10 金钱

浏览器不显示web目录
557B36FD-5773-4E51-97B9-AAB462A6AD87.jpeg

ECA3F8C9-212A-4B8F-A2BE-468BBFFE8DA8.jpeg

权限我这里也是777

补充于 2016-08-22 20:48

apache 配置

Listen 7001
<VirtualHost *:7001>
	DocumentRoot "/Users/jifee/WebServer/server/default/mobile/web"
	# ServerName dov.mobile.com
	ErrorLog "/Users/jifee/WebServer/log/mobile-error_log"
	CustomLog "/Users/jifee/WebServer/log/mobile-access_log" common
	<Directory "/Users/jifee/WebServer/server/default/mobile/web">
	    Options Indexes FollowSymLinks
	    AllowOverride All
	    Order allow,deny
	    Allow from all
	    Require all granted
	    DirectoryIndex index.php index.html default.php default.html bootstrap.php bootstrap.html
	</Directory>
</VirtualHost>

补充于 2016-08-22 20:49

本地访问
http://localhost:7001
错误提示:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at you@example.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

最佳答案

  • 胖纸囧 发布于 2016-08-22 10:00 举报

    你是不是配置了伪静态或者url美化。

    4 条回复
    回复于 2016-08-22 20:44 回复

    应该是没有,我项目是从服务器上下载下来的,Mac是apache 服务器上的是nginx。但是我在win amp环境就有web这个目录。

    回复于 2016-08-22 22:11 回复

    Mac不显示是吧?我的Ok啊。

    回复于 2016-08-23 09:18 回复

    如果服务器上下载的,那试试看入口文件是不是放在了根目录下。也就是根目录下有个/index.php

    回复于 2016-08-23 13:23 回复

    解决了,确实是伪静态的问题 apache 没有开mod_rewrite扩展

    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
計斐同學
助理

計斐同學

注册时间:2015-12-21
最后登录:2019-06-21
在线时长:4小时46分
  • 粉丝2
  • 金钱155
  • 威望0
  • 积分195

热门问题