Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter systemsph

    (@systemsph)

    Did that.

    Fixed it by, selecting “Pass Thru (without rewrites in .htaccess files or the Nginx configuration)”

    Thread Starter systemsph

    (@systemsph)

    Yes, Error codes:?rewrites_not_executed

    CONF:

    server {
        # Port to listen on, can also be set in IP:PORT format
        listen 443 ssl default_server;
        root /opt/bitnami/wordpress;
        # Catch-all server block
        # See: https://nginx.org/en/docs/http/server_names.html#miscellaneous_names
        server_name _;
        ssl_certificate      /opt/bitnami/nginx/conf/SITE.com.crt;
        ssl_certificate_key  /opt/bitnami/nginx/conf/SITE.com.key;
        # BEGIN Fix for WordPress plugins and themes
        # Certain WordPress plugins and themes do not properly link to PHP files because of symbolic links
        # https://github.com/bitnami/bitnami-docker-wordpress-nginx/issues/43
        rewrite ^/bitnami/wordpress(/.*) $1 last;
        # END Fix for WordPress plugins and themes
        # BEGIN WordPress
        # https://www.ads-software.com/support/article/nginx/#general-wordpress-rules
        location = /favicon.ico {
            log_not_found off;
            access_log off;
        }
        location = /robots.txt {
            allow all;
            log_not_found off;
            access_log off;
    }
    #### WEBP
    
    # BEGIN Converter for Media
    set $ext_avif ".avif";
    if ($http_accept !~* "image/avif") {
        set $ext_avif "";
    }
    
    set $ext_webp ".webp";
    if ($http_accept !~* "image/webp") {
        set $ext_webp "";
    }
    
    location ~ /wp-content/(?<path>.+)\.(?<ext>jpe?g|png|gif|webp)$ {
        add_header Vary Accept;
        expires 365d;
        try_files
            /wp-content/uploads-webpc/$path.$ext$ext_avif
            /wp-content/uploads-webpc/$path.$ext$ext_webp
            $uri =404;
    }
    # END Converter for Media
    
    #### END WEBP
    
      location / {
            try_files $uri $uri/ /index.php?$args;
        }
    
        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
            expires max;
            log_not_found off;
        }
        # END WordPress
        include  "/opt/bitnami/nginx/conf/bitnami/*.conf";
Viewing 2 replies - 1 through 2 (of 2 total)