loeyae / loeye-sample
project of loeye2.
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:project
Requires
- loeyae/loeye2: >1.0.9
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>