Browse Source

Include Memcache Pages & Common Locations

old-stable
Mitesh Shah 12 years ago
parent
commit
32f6e03e44
  1. 16
      etc/nginx/common/locations.conf
  2. 9
      usr/local/sbin/easyengine

16
etc/nginx/common/locations.conf

@ -47,6 +47,22 @@ location /phpmyadmin {
rewrite ^/* /pma last;
}
# Opcahe Pages
location /opcahe {
root /var/www/shared;
include common/allowed_ip.conf;
index index.php index.html index.htm;
location ~ ^/opcache/(.+\.php)$ {
try_files $uri =404;
root /var/www/shared;
fastcgi_pass php;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
# Status Pages
location /nginx_status {
stub_status on;

9
usr/local/sbin/easyengine

@ -631,6 +631,15 @@ TOTALCACHENGINX()
# Activate W3 Total Cache
wp plugin activate w3-total-cache $NETWORKACTIVATE || OwnError "Unable To Activate W3 Total Cache Plugin"
# Memcached Settings
mkdir -p /var/www/shared/opcache || OwnError "Unable To Create Memcached Directory"
cd /var/www/shared/opcache || OwnError "Unable To Change Memcached Directory"
# Download Memcache Status Files
wget -c https://raw.github.com/rlerdorf/opcache-status/master/opcache.php
wget -c https://raw.github.com/amnuts/opcache-gui/master/index.php -O opgui.php
wget -c https://gist.github.com/ck-on/4959032/raw/0b871b345fd6cfcd6d2be030c1f33d1ad6a475cb/ocp.php
}
SUPERCACHENGINX()

Loading…
Cancel
Save