2121# match a ServerName or ServerAlias in any <VirtualHost> block.
2222#
2323
24- Listen 90
25-
2624ServerName localhost
2725
2826LoadModule rewrite_module /usr/local/apache2/modules/mod_rewrite.so
@@ -35,7 +33,7 @@ LoadModule proxy_http_module /usr/local/apache2/modules/mod_proxy_http.so
3533LoadModule proxy_http2_module /usr/local/apache2/modules/mod_proxy_http2.so
3634LoadModule socache_shmcb_module /usr/local/apache2/modules/mod_socache_shmcb.so
3735
38- <VirtualHost _default_:80 >
36+ <VirtualHost _default_:8070 >
3937
4038# General setup for the virtual host
4139ServerName example.com
@@ -44,7 +42,7 @@ ServerAdmin admin@example.com
4442
4543RequestHeader set X-Forwarded-Proto "https"
4644
47- ErrorLog "/usr/local/apache2/logs/example.com-8080 .error_log"
45+ ErrorLog "/usr/local/apache2/logs/example.com-8070 .error_log"
4846TransferLog "/usr/local/apache2/logs/access_log"
4947
5048# Use incoming Host HTTP request header for proxy request
@@ -54,7 +52,7 @@ ProxyPassReverse / http://varnish:8080/
5452
5553</VirtualHost>
5654
57- <VirtualHost * :90>
55+ <VirtualHost _default_ :90>
5856
5957# General setup for the virtual host
6058DocumentRoot "/var/www/html"
@@ -66,28 +64,28 @@ ErrorLog "/usr/local/apache2/logs/example.com-90.error_log"
6664TransferLog "/usr/local/apache2/logs/access_log"
6765
6866# Protocols h2 http/1.1
69-
67+
7068<Directory />
71- Options FollowSymLinks
72- AllowOverride None
69+ Options FollowSymLinks
70+ AllowOverride None
7371</Directory>
7472
75- <Directory /var/www/html>
76- DirectoryIndex index.php
77- Options Indexes FollowSymLinks
78- AllowOverride All
79- Order allow,deny
80- Allow from all
81- <IfModule mod_authz_core.c>
82- Require all granted
83- </IfModule>
73+ <Directory " /var/www/html" >
74+ DirectoryIndex index.php
75+ Options Indexes FollowSymLinks
76+ AllowOverride All
77+ Order allow,deny
78+ Allow from all
79+ <IfModule mod_authz_core.c>
80+ Require all granted
81+ </IfModule>
8482</Directory>
8583
8684# Proxy .php requests to port 9000 of the php-fpm container
8785<FilesMatch \.php$>
88- SetHandler proxy:fcgi://drupal:9000
89- # for Unix sockets, Apache 2.4.10 or higher
90- # SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
86+ SetHandler proxy:fcgi://drupal:9000
87+ # for Unix sockets, Apache 2.4.10 or higher
88+ # SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
9189</FilesMatch>
9290
9391</VirtualHost>
0 commit comments