Skip to content

Commit 0ffce4b

Browse files
committed
Update httpd-vhosts.conf
1 parent 43cf806 commit 0ffce4b

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

webserver/extra/httpd-vhosts.conf

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,28 @@ 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-
# Proxy .php requests to port 9000 of the php-fpm container
33-
<FilesMatch \.php$>
34-
SetHandler proxy:fcgi://laravel:9000
35-
# for Unix sockets, Apache 2.4.10 or higher
36-
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
37-
</FilesMatch>
38-
3932
DocumentRoot /var/www/html
4033
<Directory />
4134
Options FollowSymLinks
4235
AllowOverride None
4336
</Directory>
4437
<Directory /var/www/html>
4538
DirectoryIndex index.php
46-
AllowOverride All
47-
Order allow,deny
48-
Allow from all
49-
<IfModule mod_authz_core.c>
50-
Require all granted
51-
</IfModule>
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>
5246
</Directory>
47+
48+
# Proxy .php requests to port 9000 of the php-fpm container
49+
<FilesMatch \.php$>
50+
SetHandler proxy:fcgi://laravel:9000
51+
# for Unix sockets, Apache 2.4.10 or higher
52+
# SetHandler proxy:unix:/path/to/fpm.sock|fcgi://dummy
53+
</FilesMatch>
5354

5455
# Send apache logs to stdout and stderr
5556
CustomLog /proc/self/fd/1 common

0 commit comments

Comments
 (0)