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

proxy pass m3u8 record

Hi to All I need help. I have some url in m3u8 format, trere is some record file in this url. I Tried proxy_pass with NGINX this url . I check on backend if user have access or not. My problem is: When...

View Article


auth_basic issue, won't protect full directory

Hello, I notice a big bug (or is it me) using nginx/1.16.1 (on Arch) and auth_basic which don't protect the whole directory using a simple location /admin { auth_basic "Restricted";...

View Article


Re: auth_basic issue, won't protect full directory

https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-nginx-on-ubuntu-14-04

View Article

Re: auth_basic issue, won't protect full directory

I try with same result location /admin { try_files $uri $uri/ =404; auth_basic "Restricted"; auth_basic_user_file /srv/http/admin/.htpasswd; } Mind that i got auth request on admin/ not if i request a...

View Article

Re: auth_basic issue, won't protect full directory

See the bottom (comments) of that article, your php block looks like it is not a part of the main location block.

View Article


Re: auth_basic issue, won't protect full directory

Thank you very much, i include a copy of the php block into the password protected one. all is ok thanks

View Article

Last modified header issue

We have a feed being generated on our WordPress site every day domain.com/?woocommerce_gpf=google but when doing a curl -I domain.com/?woocommerce_gpf=google the last modified date is a year old and...

View Article

[Windows 10] Using proxy_pass with OpenVPN?

Hey everybody, I've recently set-up an NGINX server on windows 10 with PHP up and running. I want to use proxy pass to go through OpenVPN to prevent my IP address from being leaked. What I was looking...

View Article


Re: nginx proxy_cache prevents docker (1.10.2 ) image push to artifactory .

Hi, We faced the same issue lately. After hanging around, we found that the root cause was the default behavior of the proxy_cache, which converts the HEAD method to GET. As docker push relies on some...

View Article


Specific redirection by user agent

Hello, I have an issue I can't solve :'( I would like to generate a redirection by user agent. I have a physical file : domain.com/stats.xml I would like to serve this file for ALL except for browser...

View Article

Nginx Load Balancer traffic redirection

Hi, we have following config : In the ../conf.d/ folder we have different config files for domains and subdomains. Let's say aaa.conf, bbb.conf, ccc.conf. Nothing unusual in there, they are just...

View Article

An amazing Nginx website for u people!

Hello there! I made an website for WordPress+Nginx related stuff which is really easy for beginners t understand! Do visit it! Link: https://serverforbeginners.in

View Article

tomcat -> nginx write error while streaming lots of data

I have an nginx proxy with this setting for a given location: proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Connection $proxy_connection; proxy_set_header...

View Article


How to setup routing via root

Sorry for dumb question but is it possible to get a part of URL right after domain name via `server_name` variable? server { listen 80; index index.php index.html; server_name...

View Article

I can't use TLS1.3 only in my site,please help

Hello all professional brothers & sisters I use Raspberry 3B+ as my web server,installed ubuntu server 19.10 eoan (32bit armh), my nginx use this ppa version (1.17.8) :...

View Article


beginner having trouble with A record

I have deployed a flask application in a ec2 instance here: http://52.49.186.217/ I have purchased a domain cats-vs-dogs.fun on name.com and created an A record as you can see in the picture. I also...

View Article

Re: beginner having trouble with A record

(I realized I left out the second A record)

View Article


Set Cookie on Nginx

Hi, How and where do I setup the Set-Cookie on Nginx, link in this link : https://geekflare.com/httponly-secure-cookie-nginx/ Please assist me or guide me in the right direction. Much appreciated.

View Article

nginx caching few upstreams on same server

I'm trying to test to build a nginx server to cache few servers. My nginx conf is like that : ===================================================== ... http { upstream srv1 { ip_hash; server...

View Article

Re: nginx caching few upstreams on same server

if that can help, I got solution proxy_cache_key $uri; To proxy_cache_key $scheme$proxy_host$request_uri;

View Article
Browsing all 4759 articles
Browse latest View live