Skip to content

Instantly share code, notes, and snippets.

@conschneider
Created October 12, 2019 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save conschneider/b63643ce7e6d6bf7d2d39ec52d78fbf0 to your computer and use it in GitHub Desktop.
Save conschneider/b63643ce7e6d6bf7d2d39ec52d78fbf0 to your computer and use it in GitHub Desktop.
Nginx configuration for Sendy newsletter application. You can replace /sendy with / if you run it out of the root of a (sub)domain.
location /sendy {
access_log off;
error_log off;
rewrite ^/sendy/(l|t|w)/([a-zA-Z0-9\/]+)$ /sendy/$1.php?i=$2&$args;
rewrite ^/sendy/(u?n?subscribe)/(.*)$ /sendy/$1.php?i=$2&$args;
try_files $uri $uri/ $uri.php?$args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment