Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live
↧

Block anonym.to referes

I'm using the following configuration to block all referers:valid_referers none blocked domain.org;if ($invalid_referer) {return 403;}It works well.But I'm receiving spam referring from anonym.to,...

View Article


Rewrite query string nginx

I am using this rewrite rule to redirect http://example.com/a-b-c?id=learn-more to ---> http://example.com/abc?id=learnmorerewrite ^/a-b-c http://example.com/abcrewrite ^/a-b-c?id=learn-More...

View Article


Re: Can I use upstreaming based on a URI regex?

Help anybody?Thanks

View Article

Re: Can I use upstreaming based on a URI regex?

This should work, but without a complete config and the errors you get it's a guessing game why it ain't working.

View Article

Re: Can I use upstreaming based on a URI regex?

Thanks,The upstream works when out of the "if", but even with an "if" that looks like thisif ($uri ~ ^/.*) { upstream //booboo} it doesnt work. this regex should catch everything, just like putting...

View Article


try_files brain crack

I want convert url like http://mysite.com/private/user1/file1.datto destination file as /host/userfiles/user1/private/file1.datI try this:location ~/private/(.*)[/]?(.*)$ {root...

View Article

Re: try_files brain crack

I've just found solutionwrong: try_files $2right : try_files /$2So, can you explain me, is this a hack or documented case?

View Article

Re: Can I use upstreaming based on a URI regex?

Anybody?Thanks

View Article


Nginx 504 Bad Gateway Problem (Website freezing)

I'm using nginx with WT-NMP , i'm publishing important videos from my website and i have a lots of user. Sometime my website is freezing and anyonce can enter the website. I can't even enter my...

View Article


Re: Nginx 504 Bad Gateway Problem (Website freezing)

show us 'nginx -V ' and your nginx.conf

View Article

Re: Nginx 504 Bad Gateway Problem (Website freezing)

Hi Thank you for your care. what is "Nginx-V" I couldn't understand. I attached my complete conf file and also nginx.conf. I'm waiting for your answer thanks in advance

View Article

Re: Nginx 504 Bad Gateway Problem (Website freezing)

These options:worker_processes auto;worker_connections 8096;worker_rlimit_nofile 100000;Don't do anything with the original nginx version, so which nginx version are you using ?When the website freezes...

View Article

Re: Nginx 504 Bad Gateway Problem (Website freezing)

I'm using nginx version 1.7.1 with WT-NMP. I was using these configuration with nginx 1.5.11 but i did not change them when i upgrade the nginx to 1.7.1 . About process_explorer (If you mean windows...

View Article


Re: Nginx 504 Bad Gateway Problem (Website freezing)

13 nginx processes, well read this first http://nginx.org/en/docs/windows.htmlThen go to http://nginx-win.ecsds.eu/ and replace nginx with this version.

View Article

Re: Nginx 504 Bad Gateway Problem (Website freezing)

I checked nginx_error.log than i realized that one ip continuously is sending requests to my website (880k Post request), i denied this ip, now my website is working good. I really wonder how to...

View Article


Invalid Config

Hello, I have been trying to get help with my nginx config here: http://serverfault.com/questions/612871/nginx-config-not-displaying-right-site-for-subdomainNginx happily serves up the wrong site and...

View Article

Re: Nginx 504 Bad Gateway Problem (Website freezing)

You can replace nginx.exe with nginx_basic.exe, if you require more like Lua you need nginx.exe

View Article


Nginx as reverse proxy with passwd auth.

Hi, i'm using nginx as i wrote... is there any options limiting just one user per password in the moment ? Best regards.

View Article

Distributed config storage

Hi guys,We have several proxy servers in US, EU and AU and now we use comit/fetch/reload strategy and git as config storage.This method ok for little changes, but for now we are reloading nginx every 5...

View Article

Re: Distributed config storage

What does distributed storage solve in matters of reloading nginx'config ?Here's a topic that deals with frequent loading of a config...

View Article
Browsing all 4759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>