Browse Source

Change Nginx Conf Files

old-stable
Mitesh Shah 12 years ago
parent
commit
e82134d6cd
  1. 1
      etc/nginx/common/locations.conf
  2. 2
      usr/share/easyengine/nginx/wpsingle/w3tc.conf

1
etc/nginx/common/locations.conf

@ -64,6 +64,7 @@ location ~ /readme\.(txt|html)$ {
# Disallow PHP In Upload Folder
location /wp-content/uploads/ {
location ~ \.php$ {
#Prevent Direct Access Of PHP Files From Web Browsers
deny all;

2
usr/share/easyengine/nginx/wpsingle/w3tc.conf

@ -31,7 +31,7 @@ server {
# Use Cached Or Actual File If They Exists, Otherwise Pass Request To WordPress
location / {
try_files /wp-content/cache/page_enhanced/$http_host/_index.html $uri $uri/ /index.php?$args;
try_files /wp-content/cache/page_enhanced/${host}${cache_uri}_index.html $uri $uri/ /index.php?$args;
}
location ~ .php$ {

Loading…
Cancel
Save