mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-21 05:43:08 +00:00
44 lines
991 B
Plaintext
44 lines
991 B
Plaintext
##
|
|
## Default Mass Virtual Host
|
|
##
|
|
|
|
<VirtualHost *:80>
|
|
|
|
# Get the server name from the Host: header
|
|
UseCanonicalName Off
|
|
|
|
ServerName localhost
|
|
ServerAlias *.loc
|
|
ServerAdmin root@localhost
|
|
|
|
# splitlogs.php is a custom script, which will filter the domain
|
|
# and create separate logfiles per domain.
|
|
LogFormat "%V;%h;%l;%u;%t;\"%r\";%>s;%b;\"%{Referer}i\";\"%{User-agent}i\"" vcommon
|
|
CustomLog "|/opt/bin/splitlogs.php" vcommon
|
|
|
|
ErrorLog /var/log/apache-2.2/other-error.log
|
|
|
|
DirectoryIndex index.php index.html
|
|
|
|
# When using VirtualDocumentRoot the PHP Env var DOCUMENT_ROOT
|
|
# is not filled, so we need to do that manually with a custom script.
|
|
VirtualDocumentRoot /shared/httpd/%-2+/htdocs/
|
|
php_admin_value auto_prepend_file /opt/bin/fix-virtual-docroot.php
|
|
|
|
<Directory "/shared/httpd/*/htdocs/">
|
|
DirectoryIndex index.php index.html
|
|
|
|
AllowOverride All
|
|
Options All
|
|
|
|
RewriteEngine on
|
|
RewriteBase /
|
|
|
|
Order allow,deny
|
|
Allow from all
|
|
</Directory>
|
|
</VirtualHost>
|
|
|
|
|
|
|