WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] nginx.conf settings for a non-root install (4 posts)

  1. hgrianevans
    Member
    Posted 2 years ago #

    Our WordPress blog is installed in /ourblogname instead of in the root of our site.

    Just want to make sure I don't trip anything up.

    How do we need to change to nginx.conf that W3TC created so that it only handles files in /ourblogname

    Thanks.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. 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;
    }
  3. hgrianevans
    Member
    Posted 2 years ago #

    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. ]

  4. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic