skip to Main Content

Using multiple nginx config files in sites-available with proxy pass

I am wanting to use multiple files declared at /etc/nging/sites-available/ symlinked to: /etc/nginx/sites-enabled/ Now the files look similar to below - call this team1.conf: server { listen 80; location /team1/app3/location/region { rewrite ^/team1/app3/location/region(.*) /path3/healthcheck$1 break; proxy_pass https://this.is.the.backend.app.example; } location /team1/app4/location/region…

VIEW QUESTION

In nginx why I'm unable to use a web address as a proxy pass which is already used as a proxy pass

I've following server blocks in my nginx configuration: server { listen 80; #default_server; listen [::]:80; #default_server; client_max_body_size 20M; client_header_timeout 600; client_body_timeout 600; keepalive_timeout 600; server_name example1-proxy.in; location / { proxy_pass http://example1.in; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Forwarded $proxy_add_forwarded;…

VIEW QUESTION

Nginx does not compress web pages

My Nginx website config with gzip on: server { listen 443 ssl; listen [::]:443 ssl; ssl_certificate /etc/letsencrypt/live/... ssl_certificate_key /etc/letsencrypt/live/... gzip on; gzip_types text/plain application/xml text/css text/js text/xml application/javascript text/javascript application/json application/xml+rss; root /home/devnote/www; index index.php index.html; access_log /var/log/nginx/devnote-ssl.access.log; error_log /var/log/nginx/devnote-ssl.error.log…

VIEW QUESTION
Back To Top
Search