@@ -29,29 +29,39 @@ LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so
2929LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so
3030
3131<VirtualHost *:8080>
32- DocumentRoot /var/www/html
33- <Directory />
34- Options FollowSymLinks
35- AllowOverride None
36- </Directory>
37- <Directory /var/www/html>
38- DirectoryIndex index.php
39- Options Indexes FollowSymLinks
40- AllowOverride All
41- Order allow,deny
42- Allow from all
43- <IfModule mod_authz_core.c>
44- Require all granted
45- </IfModule>
46- </Directory>
47- # Proxy .php requests to port 9000 of the php-fpm container
48- <FilesMatch \.php$>
49- SetHandler proxy:fcgi://cakephp:9000
50- # for Unix sockets, Apache 2.4.10 or higher
51- # SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
52- </FilesMatch>
53-
54- # Send apache logs to stdout and stderr
55- CustomLog /proc/self/fd/1 common
56- ErrorLog /proc/self/fd/2
32+
33+ # General setup for the virtual host
34+ DocumentRoot "/var/www/html"
35+ ServerName example.com
36+ ServerAlias www.example.com
37+ ServerAdmin admin@example.com
38+
39+ ErrorLog "/usr/local/apache2/logs/example.com.error_log"
40+ TransferLog "/usr/local/apache2/logs/access_log"
41+
42+ Protocols h2 http/1.1
43+
44+ <Directory />
45+ Options FollowSymLinks
46+ AllowOverride None
47+ </Directory>
48+
49+ <Directory /var/www/html>
50+ DirectoryIndex index.php
51+ Options Indexes FollowSymLinks
52+ AllowOverride All
53+ Order allow,deny
54+ Allow from all
55+ <IfModule mod_authz_core.c>
56+ Require all granted
57+ </IfModule>
58+ </Directory>
59+
60+ # Proxy .php requests to port 9000 of the php-fpm container
61+ <FilesMatch \.php$>
62+ SetHandler proxy:fcgi://cakephp:9000
63+ # for Unix sockets, Apache 2.4.10 or higher
64+ # SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
65+ </FilesMatch>
66+
5767</VirtualHost>
0 commit comments