forked from jasongrimes/zf2tutorial
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvhost.conf
100 lines (93 loc) · 3.94 KB
/
vhost.conf
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<VirtualHost *:80>
ServerName zf2tutorial.dev.local
ServerAlias zf2tutorial.dev.local
## Vhost docroot
DocumentRoot "/var/www/html/public"
## Directories, there should at least be a declaration for /var/www/html/public
<Directory "/var/www/html/public">
Options Indexes FollowSymlinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule mod_php5.c>
php_admin_value disable_functions "system,exec,passthru,shell_exec,proc_open,show_source,popen,pcntl_fork,pcntl_exec,escapeshellarg,escapeshellcmd,openlog,closelog,uname,php_uname"
#php_value open_basedir /var/www/html:/tmp
php_value include_path /var/www/html
php_admin_value expose_php Off
php_admin_value allow_url_fopen On
php_value magic_quotes_sybase Off
php_value magic_quotes_gpc Off
php_value memory_limit 256M
php_value post_max_size 32M
php_value file_uploads On
php_value upload_max_filesize 24M
php_admin_value upload_tmp_dir /var/www/html/var/tmp
php_admin_value mysqli.reconnect On
php_value register_globals Off
php_value default_charset UTF-8
php_value date.timezone "Europe/Rome"
# We must use the numeric values here - found for environment with php -r "echo E_ALL & ~E_DEPRECATED;"
# Default Value: E_ALL & ~E_NOTICE = 30711
# Development Value: E_ALL | E_STRICT = 32767
# Production Value: E_ALL & ~E_DEPRECATED = 22527
#
# http://www.bx.com.au/tools/ultimate-php-error-reporting-wizard
# E_ALL & ~E_NOTICE & ~E_STRICT = 30711
php_value error_reporting 30711
php_value display_errors Off
php_value log_errors On
php_value error_log /var/www/html/var/log/php_error_log
php_value html_errors Off
php_value session.save_path /var/www/html/var/session
php_value session.name app-session
php_value session.cookie_httponly 1
php_value session.hash_function sha512
php_value session.hash_bits_per_character 5
php_value xdebug.show_exception_trace Off
php_value xdebug.auto_trace Off
php_value xdebug.trace_enable_trigger Off
php_value xdebug.trace_output_dir /var/www/html/var/
php_value xdebug.trace_output_name trace.%R.%t
php_value xdebug.trace_format 0
php_value xdebug.collect_params 0
php_value xdebug.collect_return Off
php_value xdebug.show_mem_delta Off
php_value xdebug.idekey PHPSTORM
php_value xdebug.remote_enable Off
php_value xdebug.remote_host localhost
php_value xdebug.remote_port 9000
php_value xdebug.remote_mode req
php_value xdebug.remote_connect_back Off
php_value xdebug.profiler_enable Off
php_value xdebug.profiler_enable_trigger Off
php_value xdebug.profiler_output_dir /var/www/html/var/
php_value xdebug.profiler_output_name cachegrind.out.%R.%t
php_value date.timezone "Europe/Rome"
php_value intl.default_locale "it_IT"
# Development environment overrides
#php_value error_reporting 32767
php_value display_errors On
php_value html_errors On
php_value xdebug.show_exception_trace On
php_value xdebug.trace_enable_trigger On
php_value xdebug.trace_format 0
php_value xdebug.collect_params 4
php_value xdebug.collect_return On
php_value xdebug.show_mem_delta On
php_value xdebug.remote_enable true
php_value xdebug.remote_mode req
php_value xdebug.remote_connect_back On
php_value xdebug.profiler_enable_trigger On
#php_value xdebug.var_display_max_depth 5
#php_value xdebug.var_display_max_children 256
#php_value xdebug.var_display_max_data 1024
</IfModule>
## Load additional static includes
## Logging
ErrorLog "/var/www/html/var/log/error.log"
ServerSignature Off
CustomLog "/var/www/html/var/log/access.log" combined
## SetEnv/SetEnvIf for environment variables
## Custom fragment
</VirtualHost>