Skip to content

Commit a70d256

Browse files
committed
Update httpd-vhosts.conf
1 parent f4789c3 commit a70d256

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

webserver/extra/httpd-vhosts.conf

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)