Added apache config for WP

This commit is contained in:
2020-08-26 11:16:46 +00:00
parent 0914c86f28
commit 90de9435eb

View File

@@ -0,0 +1,36 @@
#beginConf
ErrorLog ${APACHE_LOG_DIR}/SITEname_error.log
#CustomLog ${APACHE_LOG_DIR}/SITEname_custom.log combined
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/DOMAINname/html
<Directory /var/www/DOMAINname/html>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Order allow,deny
Allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
</Directory>
<Directory /var/www/DOMAINname/wp-content>
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/phpPHPver-fpm-SITEname.sock|fcgi://localhost"
</FilesMatch>
#endConf