Hi @systemsph,
Thank you for your message.
Do you have a red error message in the plugin settings panel at the top?
Best,
Mateusz
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://ww.wp.xz.cn/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";
@systemsph Have you read step 4 in the Configuration for Nginx question in the plugin FAQ?
Please change this part:
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
on this:
location ~* \.(js|css|ico)$ {
expires max;
log_not_found off;
}
Did that.
Fixed it by, selecting “Pass Thru (without rewrites in .htaccess files or the Nginx configuration)”
@systemsph This is not an optimal solution. Please try again with the Nginx configuration – it must work.
I once prepared a video showing the configuration of the Nginx server (it is a pure Nginx server installed on Linux): https://www.youtube.com/watch?v=2er6He-Pl_U