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

Submit Query to a particular server behind NGINX

I am querying an NGINX server for static file, I believe there are more than one upstream servers behind the NGINX at :80. I say this by the two different 'Server' headers I receive in the response....

View Article


Re: redirect http to https, but exclude API

Thanks, but I can't follow :( I can't see any specific info about /api/* Some explanations would be very helpful :)

View Article


Re: redirect http to https, but exclude API

Change the '/well-known 0; ' line to an url (portion) which should not be redirected.

View Article

nginx domain not work, redirect all sub domain to main domain

I have a problem with my nginx, more specifically I have added several sub domains and the problem is that as it enters the sub domain it redirects to the main domain. My configuration below....

View Article

How to prevent unauthorized domain forwarding with Nginx?

Hi, An unauthorized domain koyblanafuc.cf is forwarding to our domain quackquack.in. We tried to stop this unauthorized domain from rendering our content/pages via nginx, The solution to the problem...

View Article


How to load balance dns with nginx and lua

Hello, I've two dns that have differents purpose. Two of them listen locally and it's nginx which expose the udp port 53. Basically one just filter some domain names and the other allow all the...

View Article

What different "$is_args$args" and "$query_string" ?

Hi guys. $is_args$args and $query_string is same? #patter 1 location ~ ^/test/enter1.html { rewrite (.*) http://another.com/test/list1.html$is_args$args; } #patten 2 location ~ ^/test/enter2.html {...

View Article

Re: Preserving Source IP using SSL Preread + OpenVPN

I have attempted this as well but so far no luck. I feel it is close but something may be missing. Currently I have it listening on multiple ports in the stream block, and passing it back to the same...

View Article


response page based on mod security rule in error logs?

Hi, I would like to accomplish the following. Modsecurity is enabled in NginX and I want when some false postitive hit is opened, some rule blocked some page the response page to be shown with the...

View Article


Simplesaml configuration

Hi, I'm having a little trouble configuring simplesaml with nginx. My server config is: location /simplesaml { alias /var/simplesamlphp/www; index index.php; location ~ \.php(/|$) {...

View Article

can login to site with reason=0

Hello, we are using nginx version: nginx/1.10.2 centos 7 and we have the weirdies issue with nginx, we connected upstream to 2 servers when both work - we see at access log GET...

View Article

Help with redirects

Good mates, I tell you the case, I have made the ironing of the content of my website, I have generated some rules to display those files at the same time that I show my website in wordpress. The rules...

View Article

DreamHost and craft cms

Hey folks, I need some help dealing with DreamHost and installing Craft CMS (on DreamHost). I have a VPS (virtual private server) on DreamHost. I was told that I could have nginx, craft working on the...

View Article


Help with redirect

Hi, I want to redirect an url like http://my-site.fr/?param1=xx&param2=xx&param3==xx to the homepage but that doesn't work. Could you help me ? I test many syntax but nothing work correctly...

View Article

Conditional secure_link

Hi everyone, I need to set a new secured location in my nginx. For that I'm using http_secure_link_module. If the URL contains the correct token I proceed to return the page to the user, and also add a...

View Article


Re: response page based on mod security rule in error logs?

I think that as workaround it can be used x-requested-id header. I have enabled request_id headers in nginx (which works as reverse proxy) by the following way: In nginx.conf my log format hs included...

View Article

Re: Conditional secure_link

I've managed to do that with another variable inside my configuration file. # if token is invalid nginx set $secure_link as empty string if ($secure_link = "") { set $is_allowed 'forbidden'; } # if...

View Article


Is it ok to set up gzip compression with https?

Hello, I'm new to Nginx and taking a course on it. The course recommends turning on gzip compression and using caching. I see that in the Nginx configuration file it makes a note of a bug from 2014....

View Article

Specifying multiple OpenSSL options when building NGINX

Hello, I want to compile NGINX and want to use non-system version of OpenSSL with some OpenSSL options. So, I wonder what is the syntax for specifying multiple OpenSSL options....

View Article

update nginx on windows

Hi guys, wanna update my nginx instance on a windows machine. Do i just have to replace the .exe file with the new one and restart the service or do i have to update any more files? No major change...

View Article
Browsing all 4759 articles
Browse latest View live


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