• Resolved hradan91

    (@hradan91)


    Hi

    I have setup the site in a subdirectory https://example.com/blog. I have this settings in nginx:

    location /blog {
        alias /var/www/html/blog;
        try_files $uri $uri/ @blog;
        
        include /var/www/html/blog/nginx.conf;
        
        ...
    }
    location @blog {
        rewrite /blog/(.*)$ /blog/index.php?/$1 last;
    }
    
    

    When I enabled minification, whole site broke.

    I checked the nginx.conf file generated by the plugin and I see that it has prefixed the locations with /blog which doesn’t make sense because the file is included in a /blog nginx location.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @hradan91

    I am sorry about the issue you are having and I am happy to assist you with this.
    Can you please share your website URL and the nginx.conf?
    Also, when you enable minify, can you please go to Performance Minify and disable CSS minify, save all settings and purge the cache and see if the issue persists?
    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Problem when the site is in subdirectory + nginx’ is closed to new replies.