Config:Apache:Laravel

出自 Chan
前往: 導覽搜尋

conf

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /var/www/laravel/public
    ServerName laravel.app

    ErrorLog ${APACHE_LOG_DIR}/laravel-error.log
    CustomLog ${APACHE_LOG_DIR}/laravel-access.log common

    <Directory /var/www/laravel/public>
        AllowOverride all
    </Directory>

    <FilesMatch "\.php$">
        SetHandler  "proxy:unix:/path/to/app.sock|fcgi://localhost/"
    </FilesMatch>
</VirtualHost>