Skip to content

Commit b3400b4

Browse files
committed
Update httpd-ssl.conf
1 parent 8997afc commit b3400b4

File tree

1 file changed

+3
-32
lines changed

1 file changed

+3
-32
lines changed

apache2/extra/httpd-ssl.conf

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
#
3636
Listen 443
3737
Listen [::]:443
38-
Listen 81
39-
Listen [::]:81
4038

4139
##
4240
## SSL Global Context
@@ -129,9 +127,7 @@ ServerName example.com
129127
ServerAlias www.example.com
130128
ServerAdmin admin@example.com
131129

132-
RequestHeader set X-Forwarded-Proto "https"
133-
134-
ErrorLog "/usr/local/apache2/logs/example.com-443.error_log"
130+
ErrorLog "/usr/local/apache2/logs/error_log"
135131
TransferLog "/usr/local/apache2/logs/access_log"
136132

137133
Protocols h2 http/1.1
@@ -143,10 +139,8 @@ Protocols h2 http/1.1
143139
Require all granted
144140
</Directory>
145141

146-
# Use incoming Host HTTP request header for proxy request
147-
ProxyPreserveHost On
148-
ProxyPass / http://varnish:8080/
149-
ProxyPassReverse / http://varnish:8080/
142+
# Proxy .php requests to port 9000 of the php-fpm container
143+
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://cakephp:9000/var/www/html/$1
150144

151145
# SSL Engine Switch:
152146
# Enable/Disable SSL for this virtual host.
@@ -314,26 +308,3 @@ CustomLog "/usr/local/apache2/logs/ssl_request_log" \
314308
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
315309

316310
</VirtualHost>
317-
318-
<VirtualHost _default_:81>
319-
320-
# General setup for the virtual host
321-
DocumentRoot "/var/www/html"
322-
ServerName example.com
323-
ServerAlias www.example.com
324-
ServerAdmin admin@example.com
325-
326-
ErrorLog "/usr/local/apache2/logs/example.com-81.error_log"
327-
TransferLog "/usr/local/apache2/logs/access_log"
328-
329-
<Directory "/var/www/html">
330-
DirectoryIndex index.php
331-
Options Indexes FollowSymLinks
332-
AllowOverride All
333-
Require all granted
334-
</Directory>
335-
336-
# Proxy .php requests to port 9000 of the php-fpm container
337-
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://cakephp:9000/var/www/html/$1
338-
339-
</VirtualHost>

0 commit comments

Comments
 (0)