在vhosts中有以下配置.当我通过MAMP运行时,它总是返回500错误.不确定有什么问题.停止使用mamp并使用代客运行它.laravel网站成功运行.引导/缓存和存储的权限看起来很好.错误日志为空,cant调试和调试设置在.env文件中设置为true.仅存在500错误的访问日志.下面是我为MAMP提供的vhosts配置.vhosts文件中的其他网站工作.
<VirtualHost *:80>
ServerName elearn.localhost
ServerAlias elearn.localhost
DocumentRoot "/Users/user1/code/elearn/public"
ErrorLog "/Users/user1/logs/elearn.localhost-error_log"
CustomLog "/Users/user1/logs/elearn.localhost-access_log" common
<Directory "/Users/user1/code/elearn/public">
DirectoryIndex index.php
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted
Satisfy Any
</Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
171 次 |
| 最近记录: |