Added apache config for WP
This commit is contained in:
36
CMS/wordpress/Apache-unconfigured
Normal file
36
CMS/wordpress/Apache-unconfigured
Normal 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
|
||||
Reference in New Issue
Block a user