Nginx Rewrite Rules
I noticed a few users were requesting the re-write rules for Nginx. This is something I was looking for as I use Nginx.
I have not fully tested this, but it seems to be working fine. There is only a small issue when previewing an email campaign, this part does not render and it downloads a PHP file (I'm going to figure this out soon and get it sorted).
Anyways, if you need this to get Sendy up and running, use the following configuration - https://gist.github.com/3928634 (I'm using PHP-FPM)
Hope this helps.
I have not fully tested this, but it seems to be working fine. There is only a small issue when previewing an email campaign, this part does not render and it downloads a PHP file (I'm going to figure this out soon and get it sorted).
Anyways, if you need this to get Sendy up and running, use the following configuration - https://gist.github.com/3928634 (I'm using PHP-FPM)
Hope this helps.
Comments
Is a combination of yours and mine.
"last" directive is ok. It doesn't make a infinite loop, because every location is unique.
cooks you a cake.
I have also updated my original post with your suggestions.
I have reviewed your nginx config, I have the same situation, Nginx 1.2.4 with php-fpm installed at port 9000, so the configuration must be almost identical.
Any idea about my error?
I have installed again Sendy and now I see login page. But when I put my credential details and press login button, the login page reloads again, I can't pass from login page...
I'm also using nginx + php-fpm with this configuration but I can't access Sendy at all - I get a 500 error every time. There are no errors reported in either the nginx or php-fpm so I'm not even sure what might be causing the error. Did you guys experience anything like this? Any tips on how I should go about debugging this?
Been trying all night, but it keeps throwing a 500 error.
Anyone willing to help?
Here's the rules I use: http://pastebin.com/viuEJ4N1
Hi guys,
I have setup Sendy on Nginx with your help, everything works apart from Newsletter Preview, it shows 404 in that area, what could be wrong?
Here is my Nginx config:
Solved it, just added few more lines from the above configs.
@esuslo Do you mind telling me the exact code you used to fix it, I have the same issue.
mod_rewrite is not enabled
Hello, I'm getting a 502 Bad Gateway. Please somebody help me to fix it, these are my rules:
Hey, I have added:
to the nginx.conf, and the 502 message no longer appears, but now I'm having a blank screen in the
_install.php
page, Any idea?update
The
error.log
is show me:And the
access.log
:Hey everyone,
I just made the switch to Nginx and PHP-FPM and I've written this Nginx server configuration for Sendy. It's been working well for me and I'm using the latest version of Sendy (v1.1.7.7).
https://gist.github.com/refringe/6545132
Just be sure those log files exist, and Nginx's "www-data" group has read/write permissions.
Let me know if you run into any issues.
All the best!
Can anyone paste their latest working nginx config? I am trying to get it to work on Heroku, I cant seem to get past the invalid domain problem.
agree with danielmahon. any new ones? mine seem to cause loops on installation
Have you tried my config above? It's working for me as of version 1.1.9.4.
Same with danielmahon and ericzoo.. mine seem to cause loops on installation when trying the brownell nginx config.
Hi, I've managed to set up a mySQL database, modify the config.php file, upload the sendy files to the server, and set up a AWS account. The part where I am stuck is.... where do I put the re-write rules for Nginx? I know I'm suppose to use the code on github but I don't know what to do with it. I've tried to find a simple tutorial but have had no luck. Any help for this noob would be appreciated.
Also... the site is hosted by Digital Ocean and I'm using Server Pilot as the control panel. Thanks!!
I know this thread is old, but I have nowhere else to ask for relevant answers.
I installed Sendy in my website's /sendy subdirectory. I've tried multiple Nginx configurations posted here previously, however none of them worked.
I have Nginx & PHP-FPM.
Although this thread seems to have died I did find it very useful to get Sendy running on Nginx. However, I can't get translation working with my set up - Debian / Nginx / Sendy. Well, I can do it by forcing the translation through editing /includes/helper/locale.php but changing core files is, of course, a no no.
I've just purchased and installed Sendy on a subdomain on my DigitalOcean machine running NGINX (1.4.6 ubuntu) and this seem to be working pretty well.
Its based on suggestions from
https://gist.github.com/refringe/6545132
and modified to handle PHP 7
I hope it helps somebody.
Bruce
Hi guys idk but just telling, try to disable Varnish Cache if you got some logout problems
Hello all,
Just wanted to share the rules I am using for sendy on nginx, because I found several online that were blatantly incorrect (not just out of date):
You can replace
/sendy
with/
if you run it out of the root of a (sub)domain.Hi. I managed to set an nginx redirect doing the following: I changes nginx.conf (root/etc/nginx/nginx.conf) and added the following change:
http {
server {
server_name .green.net;
return 301 https://www.green.com$request_uri;
}
Which works fine but redirects not only the root domain (green.net > green.com), but also would redirect a link like green.net/one/two/three/four > green.com/one/two/three/four
but here comes the difficult part i want to keep all redirects described above and at the same time i want to be able to redirect a subdomain - one.green.net/monday/tue/wen-4 > one.green.info/monday/tue/wen-4
Here is the last i tried, which does NOT work. If s.o. knows what is wrong with that one below, that would definitely be the high line of the month.
http {
server {
server_name .green.net;
}
Just wanted to say thanks for sharing your configuration, @mqudsi. It is working for me, and that is clearly the simplest way compared to the rest of the advice out there.
I am surprised there is no official documentation with Sendy on this, considering how popular Nginx is.
@mqudsi has the correct config - thanks.