Questions tagged [nginx]

Nginx ("eNgine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Nginx - Is there a way to get response cookies?

The request cookie can be read via the $cookie_CookieNameHere variable. Is there a way to get response cookies before it gets sent to the client? I'm developing a web app and strange things are ...
0
votes
0answers
23 views

configure NGINX to redirect default IP to external site with out changing URL

I want to be able to visit https://my_ip_address and for it to keep my ip address as the URL in the browser but redirect to an external site. When visiting my_ip_address my server redirects to newurl....
0
votes
0answers
16 views

Failed to load resource: the server responded with a status of 502 (Bad Gateway) [duplicate]

I recently added a reverse proxy to my website to make websockets connections over SSL, however, I am experiencing a 502 Bad Gateway issue. Whenever I open the website, css files, js and images are ...
0
votes
0answers
19 views

A custom variable in config of nginx, in “server”, won't get resolved

I run nginx. In a "server" section for one of websites I have this: server { listen 443 ssl http2; listen [::]:443 ssl http2; set $app_name myapp; set $app_port 4000; ...
0
votes
2answers
39 views

NGINX block access to folder not working

I would like to block access to a specific folder. www.example.com/user/login Here is my nginx vhost: server { listen 80; root /var/www/example.com; index index.php; ...
-1
votes
0answers
16 views

vCenter 7.0 behind nginx reverse proxy issue

Don't judge, I need this for my lab, I'll never put that in production... 😉 The following configuration was from another guy on the internet (pigsmud) so unfortunately, I'm not understanding a lot of ...
0
votes
0answers
15 views

Nginx: How to override ssl_protocols without change nginx.conf?

I really love to work clean. Every and each mods I must do, I do it in a separate conf.d/<mod_name>.conf file. Today I have the need to change this config ssl_protocols TLSv1 TLSv1.1 TLSv1.2 ...
0
votes
1answer
25 views

NGINX - Access port via SSL

I have ElasticSearch and NGINX set up on my server. Accessing it via SSL is failing. I can access ElasticSearch fine via: http://ipaddress:9200 http://mydomain.co.uk:9200 The domain was then set up ...
2
votes
0answers
22 views

nginx - Round Robin Redirect

I would like to redirect clients on a round robin basis with nginx if that's possible. However, most, if not all, of my research proxy the client rather than redirect. I've seen this question and it's ...
0
votes
0answers
27 views

NGINX/GemInABox - static links aren't properly passed

NGINX location config: location /geminabox/ { client_body_buffer_size 128K; client_max_body_size 16M; rewrite ^/geminabox/(.*) /$1 break; proxy_set_header Host $http_host/geminabox/; ...
0
votes
0answers
34 views

NGINX limit_req_zone - limit_req are blocking immediately

want to protect wp-login from brute force attacks. I want to limit to 15 attempts/requests of the wp-login.php file per minute. I added this rule to nginx.conf limit_req_zone $binary_remote_addr zone=...
0
votes
0answers
26 views

How to configure reverse proxy for http, ssh, FTP, and socket through only port 443?

I'm trying to configure a server to reverse proxy incoming TCP packets through port 443 in a host. I need to configure the proxy to have protocol awareness and forward the traffic to http, ssh, FTP ...
0
votes
0answers
14 views

nginx: [emerg] “modsecurity_rules_file” directive Rule id: 200000 is duplicated

I am trying to install on a server with nginx the OWASP rules for nginx but I run into the header error. sudo nginx -t nginx: [emerg] "modsecurity_rules_file" directive Rule id: 200001 is ...
0
votes
1answer
23 views

Show upstream Cloudflare server IP after enabled nginx / set_real_ip_from

I've followed cloudflare doc [1] that enabled set_real_ip_from in order to show original client's IP My log format is log_format main '$remote_addr $http_cf_connecting_ip $http_x_forwarded_for ...
0
votes
0answers
54 views

List of all Permissions-Policy header keys and values?

Does someone have a list of all Permissions-Policy header keys and values? What I have: more_set_headers "Permissions-Policy: camera=(self), fullscreen=(*), geolocation=(self), payment=()"; ...

15 30 50 per page
1
2 3 4 5
970