2016-06-02 14:13
采纳率: 0%
浏览 91

CentOS 7 + Laravel中的虚拟主机

I have problems with my VirtualHosts

The Directory of the website is /var/www/html/laravel The httpd.conf file is

enter image description here

When open the website show me this error: enter image description here

Somebody can help me? Thanks

图片转代码服务由CSDN问答提供 功能建议


网站目录为/ var / www / html / laravel httpd.conf文件是

打开时 该网站向我显示此错误:

有人可以帮助我吗? 谢谢

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongzhi4470 2016-06-02 17:03

    I found a Solution!

    I have many sites in /var/www/html folder. ...

    The solution is create one alias for each site in httpd.conf. example:

    Alias /site1 /var/www/html/site1
    <VirtualHost *:80>
        DocumentRoot "/var/www/html/site1"
    Alias /laravel /var/www/html/laravel/public
    <VirtualHost *:80>
           DocumentRoot /var/www/html/laravel/public
           <Directory /var/www/html/laravel>
                  AllowOverride All
    打赏 评论

相关推荐 更多相似问题