Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

0
votes
0answers
14 views

Can't get PHP to parse with NGINX/FastCGI/PHP

So I spent the better part of last night trying to get my ec2 instance setup with nginx and php7.2. I got everything installed and I edited the server block in my nginx.conf with the values I thought ...
0
votes
1answer
19 views

Rewrite off-site URLs in HTML source files proxied via nginx

I have nginx sitting in front of a web application running on localhost listening on port 8085 whose HTML source files I cannot modify. These source files load Google fonts via http rather than https ...
0
votes
0answers
17 views

uWSGI and NGINX 502: upstream prematurely closed connection

I have a Kubernetes cluster which is running Django application within docker container served by uWSGI. The ingress controller is ingress-nginx (this one: https://github.com/kubernetes/ingress-nginx)....
-1
votes
1answer
6 views

How to make an Nginx rewrite rule for URL to change the value of args [on hold]

I just re-install my CMS. So my old url: https://seo.g2soft.net/mt/mt-search.cgi?search=google&__mode=tag&IncludeBlogs=5&limit=20&page=1 changed to https://seo.g2soft.net/mt/mt-...
0
votes
0answers
15 views

Nginx default_server matches everything

In my Nginx configuration I have three separate sites under different subdomains each with an exact server_name match. My problem is that other subdomains also redirect to these subdomains, which I ...
0
votes
2answers
24 views

CNAME to CloudFront: Read actual browser URL server-side

I'm trying to read the actual browser URL server-side (Node.js), but is getting the EC2 instance url. I have a setup consisting of a Node.js application running on EC2 with a Cloudfront distribution. ...
0
votes
0answers
28 views

Why is there openSSL version difference?

So I was trying to install nginx on my virtual machine. I firstly used epel repository, but it couldn't resolve some dependencies. So I configured nginx repository and tried installing nginx again. ...
0
votes
0answers
11 views

nGinx Case Insensitive Rewrite Causing Redirect Loop

I am attempting to get my case-insensitive rewrite correct, and am running into what looks like a redirect loop issue My config block is location ~* ^/email { rewrite (?i)^/email/(.*)$ $scheme://...
0
votes
1answer
20 views

Configure NGINX to use Cloudflare Free (flexible) SSL [on hold]

noob here I am trying to configure NGINX for the first time and I am looking to use cloudflare's free flexible SSL ... I have been searching on the internet on how to configure NGINX to use cloudflare ...
0
votes
1answer
34 views

Unable to remove 301 redirect for wordpress wp-admin on nginx

Unable to remove 301 redirect for wordpress wp-admin on nginx. The homepage seems fine I’ve tried almost everything Disabling plugins by renaming the plugin directory Removing the ...
-1
votes
2answers
18 views

Why do I need to allow server ip in web-server config for requests between subdomain on the same server?

I'm using nginx as web-server. I set up basic auth for some my web apps. Nginx config was like: satisy any; allow <some_ip>; //but not the ip of current server deny all; auth_basic ...; When ...
0
votes
0answers
15 views

How to show a custom error page on NGINX maintaining URL unchanged

I am using the following code to display a message on 503 errors: error_page 503 503.html; The message displays fine but the users get redirected to /503.html and i want the url on the browser to be ...
0
votes
1answer
17 views

How do I ensuring cache consistency between two Nginx edges

I have a website with nearly 99% of the content served from a Nginx cache (which is also the web server). To give you an idea around how simple the caching mechanism is, this is my cache key ...
1
vote
0answers
17 views

Why is Nginx only serving the Index mark-up when I use it as a reverse proxy for Nexus 3 Repository Manager?

I am trying to serve a Nexus3 Repo Manager through Nginx reverse proxy, but it only serves the Index mark-up. I have set up Sonatype Nexus 3 Repository manager on an Azure RHEL (SELinux) instance. I ...
0
votes
2answers
31 views

Nginx redirect all my /api calls to https

hello i have this current nginx configuration working fine for me but i want to make sure all the calls to my API are via https. I lost already hours trying all the solutions posted here but seems ...
0
votes
0answers
17 views

rewrite url for proxy and preserve original url for client

I have an issue with nginx and proxying. There are two aplications which serve requests on :8080 port and I'd like to setup nginx proxy and connect to applications using following urls: http://domain/...
0
votes
1answer
18 views

nginx rewrite if query string exists

In the past a project was getting moved from / to /subdir. As the old URL structure was something like /index.php?foo/123/bar I used the following rewrite to get everything to /forum: rewrite ^\/...
0
votes
0answers
14 views

No rule to make target 'install'. Stop. Error, when installing Nginx RTMP

I have Ubuntu 18 running on a VPS. I'm attempting to install an Nginx RTMP Server. I'm receiving the following error 'No rule to make target 'install'. Stop. after running the following series of ...
0
votes
0answers
21 views

Am I doing right while making my server secure? [on hold]

I have a server on Ubuntu 16.04 and some sites on it. I use Nginx as web server. I want to make sure myself I'm going good with server safety. My tools: PHP 7.1, MySQL, MongoDB. So far I have: non-...
0
votes
1answer
23 views

How to handle nginx container creating Letsencrypt keys and then use them?

I have a docker image, which creates containers for my web app. The details of the web app don't matter at all. What matters is that each time, the container can use a different address ( server1., ...
0
votes
0answers
20 views

Redirect for non-www to www not working for https

I am attempting to redirect all non-www requests to www with my nginx server, but despite successfully redirecting the http request (http://example.com to https://www.example.com), the https request ...
0
votes
0answers
8 views

w3c validator fails with charset Spanish characters with NGINX

As Spanish website, we need to use some Spanish specific characters. Our webserver is an old version of Windows app serving HTTP 1.0 (cgi-bin) behind a NGINX Reverse proxy. I am currently using &...
0
votes
1answer
12 views

Nginx: customize return value for plain http on ssl port 443 error (400)

Is it possible to customize a return value for plain HTTP on ssl port 443 error (400) My goal is to just drop the connection, I have not been able to do that. I have only been able to return value ...
0
votes
0answers
20 views

How can I use NGINX to reverse-proxy a MQTT service over SSL?

I've setup several server blocks for websites with NGINX. I can reverse-proxy (as well as force all traffic to https on these sites). I'm trying to setup a MQTT broker so that it uses SSL. server { ...
0
votes
0answers
16 views

Nginx - Root Not Redirecting to www Despite Records and Server Block

I am trying to redirect non-www requests to www, but it appears that either my Nginx config is not running the redirect in the below server block or the fact that SSL is enabled, but not for the non-...
0
votes
1answer
20 views

nginx reverse proxy suburl routing

I have 2 deployments on a kubernetes VPS. They are exposed via NodePort service. I have nginx installed and I'm trying to reverse proxy requests to these deployments in a way that for example "server....
0
votes
0answers
38 views

How to account for full request time in nginx?

I am having trouble debugging some unreasonably slow POST requests via ssl on nginx w/ uwsgi upstream. I am successfully logging $request_time, $upstream_header_time, $upstream_connect_time, and $...
5
votes
3answers
375 views

Does it makes sense from a security perspective to remove the Server HTTP header?

I'm using Varnish and I'm not quite sure if I should also remove the Server: nginx HTTP header. Why do someone needs to know that I'm using NGINX? Is it ok to remove this HTTP header from the response ...
0
votes
0answers
17 views

WordPress High Availability Setup - Feedback needed [duplicate]

So I got the lucky job to setup a High Availability WordPress Setup to serve around 100k views per Day. I started to create a server diagram and would like to hear your feedback for improvements. ...
0
votes
1answer
36 views

Moodle: Error during Installation

I am trying to install Moodle and everything seems fine but then when it comes to Admin user creation process, it seems as there is no CSS file, and "update profile" button does not perform any action....
0
votes
1answer
26 views

Elasticbeanstalk Customize Nginx through ebextension

I have been literally all day fighting with this, I just need to increase the client_max_body_size in my Nginx Configuration. I have a tomcat configuration (custom ami) and I tried this so far. ...
0
votes
0answers
22 views

How can I configure Nginx to use PHP in CGI-mode?

The Nginx tutorial shows PHP 5 being used in FastCGI mode on Windows, but PHP 4 doesn't support php-cgi.exe so it must be run in traditional cgi mode, There are two ways to set up PHP to work with ...
0
votes
1answer
38 views

Routing port 80 to shiny-server via nginx

I think I've got this thing nearly 90% of the way there, but entering domain.net brings me to the 'welcome to nginx' landing instead of the shiny-server (at 3838). Nginx config file: server { ...
0
votes
0answers
21 views

Nginx redirect from / to folder and port

How to setup nginx proxy to redirect from domain.com port 80 to domain.com:/client port 8080 with domain.com URL in a browser? I tried the next config: # cat MySite.conf server { ...
0
votes
1answer
24 views

Cookies present in the Chrome inspector are missing on the server

I have a setup comprised by 2 nginx instances connected one after the other. The first one is on one server (A) and the second one is on a second server (B): user <-> nginx (A) <-> nginx (...
0
votes
0answers
18 views

Nginx doesn't match location when changing proxy_pass from http to https

Current working config (stripped): server { listen 443 ssl default_server; location /about { proxy_pass http://my-internal-network.com/about ### <- HERE!!!!!!!!!!!!!! ...
0
votes
0answers
11 views

Gogs not restarting after server reboot

I had quiet an abnormal thing happen with my development gogs server today. I should say that I am working with a huge repo (+60GB) and this may be a factor in the problem. I checked out a previous ...
2
votes
0answers
24 views

NGINX - My site has a webmail subdomain even though I never set one up. How do I redirect all webmail.domain.com requests to www.domain.com?

I have multiple nginx sites running on a Digital Ocean droplet. I've installed postfix as a relay to G Suite Gmail. I only access my email through Gmail itself. So I don't need webmail. Nor have I ...
2
votes
2answers
50 views

remove password prompt openvpn ubuntu client

I'm trying to save the username, and password of my openvpn client in .secret.txt, and I'm receiving errors when attempting to connect, or the password is requested, instead of being read from .secret....
0
votes
1answer
26 views

rewrite rule on nginx for css js files not work

I use laravel framework for my website on nginx server I need to apply rewrite rule on nginx its a sample: site.com/play/gamename/css.css --> site.com/uploads/games/gamename/css.css or site.com/...
0
votes
1answer
18 views

Unable to connect to openvpn with saved password “auth-users-pass”

I'm trying to save the username, and password of my openvpn client in '.secret.txt', and I'm receiving errors when attempting to connect, or the password is requested, instead of being read from '....
-1
votes
0answers
17 views

Performance WordPress on Apache vs. NGINX as a proxy vs. Full NGINX [closed]

So I understand WordPress works well on Apache and has the most compatibility with some plug-ins But this setup is proven to the slower So then there is the combo of Apache with NGINX as a proxy ...
0
votes
0answers
22 views

Gunicorn and Nginx Configuration Settings

I am doing some X-Ray image classification task. However, I am having trouble setting up the nginx and gunicorn configuration. I have a paperspace P4000 machine where I would like to have the webapp ...
-2
votes
2answers
28 views

Nginx - Configure domain and multiple subdmains pointing to same root

My wish is to configure my site in a such way that: company.fr collaborator1.company.fr collaborator2.company.fr ... the domain and associated subdomains point to the same directory root. Under the ...
0
votes
1answer
28 views

Nginx downloads php files in subdirectories

I've searched all over the internet and read all questions and answers and tried them all but no help. The problem is, whenever I try loading a php file using nginx in any subdirectory it downloads ...
0
votes
1answer
18 views

Nginx Non-WWW Redirect to WWW Record Issue

I am running Nginx via an AWS ElasticBeanstalk application and have Https enabled through a load-balancer and forced Https redirect for www., but it appears that there is either an issue with my ...
0
votes
0answers
13 views

How to combine two sets of nginx rules?

I need to use two sets of nginx rules on my server inside the server block of nginx.conf . Can you please help me with the syntax to combine these two set of rules ? valid_referers none blocked ...
0
votes
0answers
37 views

Configure Nginx reverse proxy

I have setup a Linux AMI Node.js app with Nginx. App uses port 4100 for frontend and 3000 for backend. My frontend port 4100 works fine but I get an error for backend "'https://test.example.com/login' ...
0
votes
2answers
40 views

How to get Nginx to refuse SSL/TLS connections where host is an IP or doesn't match a server_name

For our PCI complicance we've starting getting the below failure: We use Nginx for our web server. When accessing the webserver using any of our domain names, we have the correct server_name values ...
0
votes
0answers
14 views

Nginx on docker - Vary: Accept-Encoding header is missing

I'm serving a static website from nginx that runs on a docker container which is based on nginx:alpine base image. My DockerFile: FROM nginx:alpine COPY --from=angular-built app/dist/dayTwoApp /usr/...