Created
March 3, 2012 21:36
-
-
Save Twipped/1968422 to your computer and use it in GitHub Desktop.
Primal config for LAMP virtualhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerAdmin lamp@chipersoft.com | |
| ServerName primal.lamp | |
| ServerAlias www.primal.lamp | |
| DocumentRoot /srv/www/primal.lamp/www/ | |
| ErrorLog /srv/www/primal.lamp/log/error.log | |
| CustomLog /srv/www/primal.lamp/log/access.log combined | |
| <Directory "/srv/www/primal.lamp/www"> | |
| Options Indexes FollowSymLinks | |
| AllowOverride All | |
| Order allow,deny | |
| Allow from all | |
| php_admin_value error_reporting 6135 | |
| php_admin_flag display_errors on | |
| php_admin_flag html_errors on | |
| php_admin_flag magic_quotes_gpc off | |
| php_admin_flag register_globals off | |
| php_admin_flag short_open_tag on | |
| php_admin_value post_max_size 250M | |
| php_admin_value upload_max_filesize 250M | |
| php_admin_value memory_limit 250M | |
| # exclusion rule for /myadmin, enforces the index.php | |
| RewriteRule ^/?myadmin/?$ /myadmin/index.php [R,L] | |
| # forward all requests to / | |
| RewriteRule ^$ main.php [L] | |
| # forward all requests to protected Primal paths | |
| RewriteCond %{REQUEST_URI} ^(actions|classes) [NC] | |
| RewriteRule ^/?(.*)$ main.php [L] | |
| # otherwise, if file doesn't exist send full URL to main.php | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^/?(.*)$ main.php [L] | |
| </Directory> | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment