문제

I have a domain structure that setup so I can easily add new projects/experiments by using this url labs.domainname.com/[app-name]

with this apache configuration

ServerName labs.domainname.com

DocumentRoot /var/www/labs.domainname.com

<Directory /var/www/labs.domainname.com/>
    Options FollowSymLinks MultiViews Indexes
    DirectoryIndex index.php index.html
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

it works for simple projects but I have yet to be able to figure out how to make it work for a L4 project. Can this configuration work for what I'm trying to do without having to make a new virtual host file for every project? and yes mod_rewrite is enabled.

올바른 솔루션이 없습니다

다른 팁

By default Laravel will expose its public folder to server, which represents entry point into Laravel application. So you will have to change document root to:

 **var/www/your_project_path/public/**

You can modify that behaviour, but that is common settings.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top