Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] nginx.conf settings for a non-root install

Viewing 3 replies - 1 through 3 (of 3 total)
  • Chris Olbekson

    (@c3mdigital)

    Level 12 Bug Squasher & Forum Moderator

    you have to include the W3TC nginx.conf in your blogs server file

    It doesn’t matter where the file is or where your blog is installed as long as the file is included.

    server {
    	 listen 80;
    
    	server_name yourdomain.com;
    	root /var/www/yourblogname;
    	index index.php index.html index.htm;
    	include /var/www/yourblogname/nginx.conf;
    }

    I realize that, but my problem is that the nginx.conf created by w3tc has locations that would take over locations outside of the blog’s location. I’m running a full site on the domain run and only want w3tc to handle the blog only. So I need to know how to change the locations so w3tc only handles files in or below /ourblogname

    [ Please do not bump. That’s not permitted here. ]

    Plugin Author Frederick Townes

    (@fredericktownes)

    You will need to change the locations to location ~ ^/subdir/.*[the existing regex goes here] where appropriate

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: W3 Total Cache] nginx.conf settings for a non-root install’ is closed to new replies.