Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name site1.xxx.ca test.xxx.com;
- access_log /var/www/site1.xxx.ca/logs/access.log;
- error_log /var/www/site1.xxx.ca/logs/error.log;
- root /var/www/site1.xxx.ca/public_html;
- location / {
- index index.html index.htm index.php;
- }
- location ~ \.php$ {
- set $memcached_key $uri;
- memcached_pass xxx.xxx.xxx.xxx:11211;
- default_type text/html;
- #error_page 404 @cache_miss;
- }
- #location ~ \.php$ {
- location @cache_miss {
- include /etc/nginx/fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /var/www/site1.xxx.ca/public_html$fastcgi_script_name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement