loeyae/loeye-sample

project of loeye2.

0.0.6 2019-11-05 02:09 UTC

This package is auto-updated.

Last update: 2024-04-19 22:46:38 UTC


README

loeye2 sample project

apache vhost config sample

<VirtualHost *:80>
    DocumentRoot "${PROJECT_DIR}/htdocs/"
    ServerName localhost
    ServerAlias localhost
    
    Alias /bootstrap/ "${PROJECT_DIR}//twbs/bootstrap/" 
    <Directory "${PROJECT_DIR}/vendor/twbs/bootstrap/">
        Options +Indexes +FollowSymLinks
        AllowOverride all
      <IfDefine APACHE24>
        Require local
      </IfDefine>
      <IfDefine !APACHE24>
        Order Deny,Allow
          Deny from all
          Allow from localhost ::1 127.0.0.1
      </IfDefine>
    </Directory>
    
    <Directory "${PROJECT_DIR}/htdocs/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        <IfDefine APACHE24>
            Require local
        </IfDefine>
        <IfDefine !APACHE24>
            Order Deny,Allow
            Deny from all
            Allow from localhost ::1 127.0.0.1
        </IfDefine>
        
        RewriteEngine on
        RewriteRule ^/bootstrap/.*$  /bootstrap$1
        # 如果请求的是真实存在的文件或目录,直接访问
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        # 如果请求的不是真实文件或目录,分发请求至 index.php
        RewriteRule . index.php

        php_admin_value upload_max_filesize 128M
        php_admin_value post_max_size 128M
        php_admin_value max_execution_time 360
        php_admin_value max_input_time 360
    </Directory>
</VirtualHost>