-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.conf
More file actions
26 lines (26 loc) · 1.15 KB
/
Copy pathapp.conf
File metadata and controls
26 lines (26 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<VirtualHost *:80>
SetEnv APPLICATION_ENV "app"
ServerAdmin myemail@gmail.com
VirtualDocumentRoot "/var/www/app/%-2/public/%-3"
ServerName vhosts.app
ServerAlias *.app
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
php_admin_value open_basedir /opt/lib/:/tmp:/var/www/app/%2/public
<Directory ~ "^/var/www/app/[a-z]{1,}/public/*">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.bmp$)|(\.ico$)|(\.css$)|(\.js$) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php
#RewriteRule ^(.*)$ /index.php?$1 [L] => passes only the get param from www.test.app/?test=1 but not www.test.loc/subpa$
</Directory>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
</VirtualHost>