Skip to content

Commit c52108d

Browse files
committed
Update httpd-vhosts.conf
1 parent 3d8f405 commit c52108d

File tree

1 file changed

+34
-25
lines changed

1 file changed

+34
-25
lines changed

webserver/extra/httpd-vhosts.conf

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,39 @@ LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so
2929
LoadModule 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>
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>
4759

48-
# Proxy .php requests to port 9000 of the php-fpm container
49-
<FilesMatch \.php$>
50-
SetHandler proxy:fcgi://phalcon:9000
51-
# for Unix sockets, Apache 2.4.10 or higher
52-
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
53-
</FilesMatch>
54-
55-
# Send apache logs to stdout and stderr
56-
CustomLog /proc/self/fd/1 common
57-
ErrorLog /proc/self/fd/2
60+
# Proxy .php requests to port 9000 of the php-fpm container
61+
<FilesMatch \.php$>
62+
SetHandler proxy:fcgi://phalcon:9000
63+
# for Unix sockets, Apache 2.4.10 or higher
64+
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
65+
</FilesMatch>
66+
5867
</VirtualHost>

0 commit comments

Comments
 (0)