0

I am trying to use a package to optimize my main site and when I follow the instructions it works great but it messes up all subdomains as well. Can I somehow exclude any subdomain from this location lookup ?

The change I need to make is this

location / {
    try_files $uri $uri/ /page-cache/$uri.html /page-cache/$uri.json /page-cache/$uri.xml /index.php?$query_string;
}

But I need this to be applied only to the main domain, any other subdomain should use this one

 location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

Is this possible?

0 Answers0