forked from tomas-mazak/wordpress-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordpress.conf
40 lines (32 loc) · 986 Bytes
/
wordpress.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ErrorLog /dev/stderr
CustomLog /dev/stdout combined
<VirtualHost *:80>
ServerAdmin webmaster@%APACHE_SERVER_NAME%
ServerName %APACHE_SERVER_NAME%
DocumentRoot /var/www/wordpress
<Directory /var/www/wordpress>
Require all granted
Options SymLinksIfOwnerMatch
AllowOverride none
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
</Directory>
<Directory /var/www/wordpress/wp-content/uploads>
<Files *.php>
Require all denied
</Files>
</Directory>
<Directory /var/www/wp-admin>
Require %APACHE_WP_ADMIN_ALLOW_FROM%
</Directory>
<Files xmlrpc.php>
Require %APACHE_XMLRPC_ALLOW_FROM%
</Files>
</VirtualHost>
# TODO: prefork settings