Installing Sendy at https://mydomain.com/sendy
, this worked for me:
Add this into your existing site configuration found at /etc/nginx/sites-available/mydomain.com
:
location /sendy {
# covers /l, /t, and /w URLs.
rewrite ^/sendy/(l|t|w)/([a-zA-Z0-9\/]+)$ /sendy/$1.php?i=$2&$args;
# covers /subscribe and /unsubscribe URLs.
rewrite ^/sendy/(u?n?subscribe)/(.*)$ /sendy/$1.php?i=$2&$args;
# This is an Nginx equivalent for Apache's mod_rewrite.
try_files $uri $uri/ $uri.php?$args;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# If this IP doesn't work, try looking around the rest of your mydomain.com Nginx config and copy what you find set for other fastcgi_pass configurations.
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
If you're having issues, check https://mydomain.com/sendy/_compatibility.php?i=1
to see if anything isn't configured properly. mod_rewrite is not enabled
will probably always show up if you're using Nginx.
I think a more complete solution would be to add this inside the location block