I'm trying to add basic authentication to a nginx reverse proxy which is in front of a nuxtjs app. I've configured nginx as such server { server_name <url>; auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/.htpasswd; gzip on; gzip_types text/plain application/xml text/css application/javascript; gzip_min_length 100by strtwtsn - Nginx Mailing List - English
Thanks so if I do location / limit_req_zone and then location /limited/ limit_req_zone then the first limit won't apply to the second location Thanksby strtwtsn - Nginx Mailing List - English
Hi I'm trying to set multiple limit_req_zones for the same site. Is this possible? We have a few areas where clicking on a link seems to generate a lot of 503s so we'd like to up the limit without jeopardizing the stability of the rest of the site. Thanksby strtwtsn - Nginx Mailing List - English
Hi When browsing one of our websites the content-length field header is not shown, even with gzip turned off. This causes issues with chunked_transfer_encoding and kaspersky av. How can we get the content-length to show? This is a ruby on rails app using passenger. Thanks Stuartby strtwtsn - Nginx Mailing List - English
We've got a website that is available at example.com. A subsection of the page is available at example.com/folder_name/page1 example.com/folder_name/page2 etc We need the pages below folder_name to be accessible at example1.com/folder_name/page1 example1.com/folder_name/page2 etc This is working apart from i've been asked to make the pages below folder_name accessible without the foldby strtwtsn - Nginx Mailing List - English
Will do...in case this helps...here's my config server { listen 80; client_max_body_size 4G; server_name example1.com; passenger_enabled on; root /home/<user>/current/public; rails_env production; keepalive_timeout 5; location = / { proxy_pass http://example1.com/<folder>; // This is to silently redirect the root of http://example1.com to http://example1.com/<foldeby strtwtsn - Nginx Mailing List - English
Thanks, trying that gives me www.example1.com/<folder name>/history but the pages doesnt display....by strtwtsn - Nginx Mailing List - English
Hi We're using proxy_pass to silently forward a website to a different URL. Here is the code location ^~/<folder name> { proxy_pass http://www.example.org/<folder name>; } So let's say the site is example1.org. Going to www.example1.com/<folder name>/history correctly shows that page that would be visibile at www.example.org/<folder name>/history but Iby strtwtsn - Nginx Mailing List - English
Im trying to do a nginx redirect so that areas.test.com goes to index.test1.com/home So far i've got location / { rewrite areas.test.com index.test1.com/home redirect; } But for some reason this isnt working. What do I need to change? Thanksby strtwtsn - How to...
![]() |
![]() |
![]() |
![]() |
![]() |