Skip to content

Commit 372d1d9

Browse files
committed
modify apache conf
1 parent 98ec029 commit 372d1d9

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.circleci/apache_ci.conf

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
Listen 8080
22

33
<VirtualHost *:8080>
4-
LoadModule php7_module /opt/circleci/php/7.0.17/usr/lib/apache2/modules/libphp7.so
54

6-
DocumentRoot /home/circleci/wp-php-console/wordpress
5+
DocumentRoot "/home/circleci/wp-php-console/wordpress"
76
ServerName wp-php-console.test
87
DirectoryIndex index.html index.json index.php
8+
ServerAlias *.test
99
LogLevel notice
1010

1111
<FilesMatch \.php$>
1212
SetHandler application/x-httpd-php
1313
</FilesMatch>
1414

15-
<Directory /home/circleci/wp-php-console/wordpress>
15+
<Directory "/home/circleci/wp-php-console/wordpress">
16+
Options Indexes FollowSymLinks MultiViews
1617
AllowOverride All
1718
Allow from All
19+
<IfModule mod_authz_core.c>
20+
Require all granted
21+
</IfModule>
22+
<IfModule !mod_authz_core.c>
23+
Order allow,deny
24+
Allow from all
25+
</IfModule>
1826
</Directory>
1927

2028
</VirtualHost>

0 commit comments

Comments
 (0)