1 <VirtualHost 127.0.0.1:80>
2 ServerName www.example.com
3 ServerAlias example.com
4 DocumentRoot "/var/www/example.com/www/public"
6 php_admin_value open_basedir /var/www/example.com/www/:/usr/share/php/
7 php_admin_value upload_tmp_dir /tmp
8 php_admin_value session.save_path /var/www/example.com/www/tmp
11 ErrorLog /var/log/apache2/example.com/www/error.log
12 CustomLog /var/log/apache2/example.com/www/access.log combined
14 <Directory "/var/www/example.com/www/public">
15 Options IncludesNoExec
21 DirectoryIndex default.shtml
23 Include /etc/apache2/vhosts.d/include/php.conf
25 DirectoryIndex default.php index.php
30 <VirtualHost 127.0.0.1:443>
31 ServerName secure.example.com
32 DocumentRoot "/var/www/example.com/www/secure"
34 php_admin_value open_basedir /var/www/example.com/www/:/usr/share/php/
35 php_admin_value upload_tmp_dir /tmp
36 php_admin_value session.save_path /var/www/example.com/www/tmp
39 ErrorLog /var/log/apache2/example.com/www/error.log
40 CustomLog /var/log/apache2/example.com/www/access.log combined
42 <Directory "/var/www/example.com/www/secure">
43 Options IncludesNoExec
49 DirectoryIndex default.shtml
51 Include /etc/apache2/vhosts.d/include/php.conf
53 DirectoryIndex default.php index.php