Laravel и VestaCP

Каждый файл из https://gist.github.com/m4tlch/5ddba908a5cde3f937fc7ddf6a9725f9 кидаем в /usr/local/vesta/data/templates/web/apache2

Тепреь для домена доступен новый шаблон 

 

laravel.stpl

<virtualhost>
 
    ServerName %domain_idn%
    %alias_string%
    ServerAdmin %email%
    DocumentRoot %sdocroot%/public
    ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
    Alias /vstats/ %home%/%user%/web/%domain%/stats/
    Alias /error/ %home%/%user%/web/%domain%/document_errors/
    #SuexecUserGroup %user% %group%
    CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
    CustomLog /var/log/%web_system%/domains/%domain%.log combined
    ErrorLog /var/log/%web_system%/domains/%domain%.error.log
    <directory>
        AllowOverride All
        SSLRequireSSL
        Options +Includes -Indexes +ExecCGI
        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
        php_admin_value upload_tmp_dir %home%/%user%/tmp
        php_admin_value session.save_path %home%/%user%/tmp
    </directory>
    <directory stats="" web="">
        AllowOverride All
    </directory>
    SSLEngine on
    SSLVerifyClient none
    SSLCertificateFile %ssl_crt%
    SSLCertificateKeyFile %ssl_key%
    %ssl_ca_str%SSLCertificateChainFile %ssl_ca%
 
    <ifmodule mod_ruid2.c="">
        RMode config
        RUidGid %user% %group%
        RGroups www-data
    </ifmodule>
    <ifmodule itk.c="">
        AssignUserID %user% %group%
    </ifmodule>
 
    IncludeOptional %home%/%user%/conf/web/s%web_system%.%domain%.conf*
 
</virtualhost>

laravel.tpl

 

<virtualhost>
 
    ServerName %domain_idn%
    %alias_string%
    ServerAdmin %email%
    DocumentRoot %docroot%/public
    ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
    Alias /vstats/ %home%/%user%/web/%domain%/stats/
    Alias /error/ %home%/%user%/web/%domain%/document_errors/
    #SuexecUserGroup %user% %group%
    CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
    CustomLog /var/log/%web_system%/domains/%domain%.log combined
    ErrorLog /var/log/%web_system%/domains/%domain%.error.log
    <directory>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
        php_admin_value open_basedir %docroot%:%home%/%user%/tmp
        php_admin_value upload_tmp_dir %home%/%user%/tmp
        php_admin_value session.save_path %home%/%user%/tmp
    </directory>
    <directory stats="" web="">
        AllowOverride All
    </directory>
 
    <ifmodule mod_ruid2.c="">
        RMode config
        RUidGid %user% %group%
        RGroups www-data
    </ifmodule>
    <ifmodule itk.c="">
        AssignUserID %user% %group%
    </ifmodule>
 
    IncludeOptional %home%/%user%/conf/web/%web_system%.%domain%.conf*
 
</virtualhost>

 

Теги: