File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,20 @@ LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so
3030
3131<VirtualHost *:8080>
3232 DocumentRoot /var/www/html
33+ ServerName example.com
34+ ServerAlias www.example.com
35+ ServerAdmin admin@example.com
36+
37+ ErrorLog "/usr/local/apache2/logs/example.com.error_log"
38+ TransferLog "/usr/local/apache2/logs/access_log"
39+
40+ Protocols h2 http/1.1
41+
3342 <Directory />
3443 Options FollowSymLinks
3544 AllowOverride None
3645 </Directory>
46+
3747 <Directory /var/www/html>
3848 DirectoryIndex index.php
3949 Options Indexes FollowSymLinks
@@ -44,14 +54,11 @@ LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so
4454 Require all granted
4555 </IfModule>
4656 </Directory>
57+
4758 # Proxy .php requests to port 9000 of the php-fpm container
4859 <FilesMatch \.php$>
4960 SetHandler proxy:fcgi://drupal:9000
5061 # for Unix sockets, Apache 2.4.10 or higher
5162 # SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
5263 </FilesMatch>
53-
54- # Send apache logs to stdout and stderr
55- CustomLog /proc/self/fd/1 common
56- ErrorLog /proc/self/fd/2
5764</VirtualHost>
You can’t perform that action at this time.
0 commit comments