All Questions
533
questions
0
votes
2
answers
95
views
Improve nginx server block non-www to www
Our current "non-www to www" code at nginx.conf is below. While it seemed to work, now we noticed it's causing errors.
Please don't mark as duplicated. Similar cases are old and seems not to ...
0
votes
0
answers
48
views
Nginx - HTTPS SSL Issue with Certbot
I've setup HTTPS SSL with letsencrypt and certbot and the main domain was pointing to the the machine that is running my site, working fine etc. Until of course I tried setting up the SSL for HTTPS.
...
1
vote
0
answers
90
views
Unable to redirect HTTPS to HTTP via NGINX
I'm having a very hard time doing a redirect from HTTPS to HTTP. This is giving me the last few days some headache because I can't figure it out :|
situation
I have a website and a VPS server. The ...
0
votes
1
answer
48
views
NGINX: Redirect to Non-www address
I am trying to configure my website with NGINX. I'm a bit out of my depth and have tried all the relevant solutions I could find, so your patience is appreciated :)
I want all http traffic to redirect ...
0
votes
1
answer
90
views
Nginx returns different SSL certificates for one domain
Problem summary:
one nginx server
one domain with SSL certificate
when accessing the site from one network, nginx returns the correct current certificate (1), and when accessing from other networks - ...
0
votes
0
answers
175
views
Forward local generated Secure Websocket traffic (wss) through an HTTP/HTTPS proxy to reach internet
I have a python webex_bot application (https://github.com/fbradyirl/webex_bot) which uses websockets for webex cloud communication. The problem is that the server in which the bot is being hosted on, ...
2
votes
1
answer
283
views
Should there be an explicit catch-all NGINX `server` block to dismiss HTTPS requests for the domains **not** served by the server?
The most common NGINX config I see is the one below, where it is made sure that all relevant HTTP requests are redirected and the irrelevant ones are dismissed, but usually I only see one server block ...
0
votes
1
answer
995
views
Nginx reverse proxy gives 404 error, but only for a specific domain name
Sorry to repeat a question that has been asked a dozen times before, but I have read each and every answer to those questions without being able to solve my problem.
I am trying to setup an nginx ...
0
votes
1
answer
843
views
Redirect http calls inside iframe to https using nginx
I have an https website that needs to render an iframe of a external website that only works with http. The external http endpoints is all inside a url like: http://external-website.com/foobar
Browser ...
0
votes
0
answers
308
views
Nginx, reverse proxy and HTTPS
I have a problem setting up reverse proxy in nginx for HTTPS.
I have set up Tomcat HTTPS connector on 127.0.0.1:443. It works:
% openssl s_client -showcerts -connect 127.0.0.1:443
CONNECTED(00000005)
...
0
votes
1
answer
666
views
nginx reverse proxy https to http
I have a Linux server, on which I created a public web app (as a test) accessible here: http://tropo.gps.caltech.edu:9384/jsserve
It works as intended. As you can see, it is served on port 9384 with ...
0
votes
1
answer
316
views
Redirect nginx port 80 to http2 443 fails [duplicate]
Searched tons of links on the web, I don't get why this conf doesn't redirect properly from http://example.com to https://example.com
My nginx conf:
# HTTPS
server {
listen 443 ssl http2;
...
0
votes
1
answer
351
views
no "ssl_certificate" is defined in server
Trying to get my routine webserver set up, and running into this roadblock, no matter what I try it's not working, something i've done hundreds of times and i'm out of ideas.
Typical webserver setup, ...
0
votes
1
answer
61
views
How to redirect http to https in NGINX in existing nginx.conf
I'm on RHEL7.9 Linux. I have a server (IP a.b.c.d) serving a webApplicationA and using https in nginx and it's working accessible at https://a.b.c.d.
On that same machine (same IP, a.b.c.d) I have an ...
0
votes
2
answers
321
views
Prosody never calls http_file_share
I've tried to set up my prosody xmpp-server (more exactly: I migrated from a different machine with some really outdated version)
Most stuff works fine. Apart from mod_http_file_share that is.
If I ...
1
vote
1
answer
4k
views
Nginx not working with domain/url that points to server IP
The configuration I have set (below) works for localhost but not for my domain. The goal is to access port 3000 externally with basic auth so only I can access it. When I go to localhost, it is ...
0
votes
1
answer
742
views
Configuring Nginx and Tomcat to Access HTTPS content
I'm using nginx as a load balancer and reverse proxy for Java spring boot + Angular application on tomcat.
I've total 3 servers, 1 has nginx and other two has application hosted on it.
I've configured ...
0
votes
0
answers
397
views
access public ip from localhost timeout on https
I'm setting up a server to share files with some friends and familly. Everything works just fine with HTTP, but since I setup HTTPS this morning, I can't reach the server through the public ip/domain ...
1
vote
1
answer
804
views
Node on Nginx - proxy_request_buffering off doesn't work with https? Super slow https image uploads
I have a node server running on nginx as a reverse proxy, which is supposed to handle image uploads. Its ssl cert and domain are configured through cloudflare.
Aside from setting the proxy_pass to ...
1
vote
1
answer
419
views
I need to redirect http to https connection with nginx on rest service and need to test it on postman or soapui
here is my nginx.conf file:
What should i change to make it work and how to get certificate
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic ...
0
votes
1
answer
392
views
redirect http to https in nginx load balancer
we have a setup of nginx load balancer where we configure our servers.
Now, the requirement came like all the dns that we are maintaining should be only allowed with https.
Example: tempserver.com is ...
1
vote
0
answers
154
views
LetsEncrypt HTTPS nginx and systemd service for Jupyter Notebook?
I get no errors in neither /var/log/nginx/{access,error}.log nor the journalctl for jupyter and nginx. Putting it all in an HTTP block works, HTTPS the website never loads (I tried curl -Lvvv 'http://...
0
votes
1
answer
2k
views
Nginx not listening on 443 port (default nginx site)
Problem:
The https://192.168.0.4/ page is not loading and returns (on firefox):
Secure Connection Failed
An error occurred during a connection to 192.168.0.4. PR_END_OF_FILE_ERROR
The page you are ...
0
votes
0
answers
233
views
nginx; how to serve some https sites but proxy unknown https sites to another nginx instance?
I have a "main" Nginx instance, that i configure manually.
This one faces the internet on my home connection.
It has some https sites configured that i consider important for me.
Then i have ...
0
votes
1
answer
758
views
after applying ssl certificate, static files aren't served anymore
My config file is located in /etc/nginx/sites-enabled is called songreccs.conf and looks like this:
server {
server_name www.songreccs.com songreccs.com;
location /static {
...
0
votes
0
answers
84
views
SSL not working in nginx
I'm running an Ubuntu 20.04 instance with nginx. My server block is as follows. (masked the original domain though)
server {
listen 80;
listen [::]:80;
# SSL configuration
#
...
0
votes
1
answer
4k
views
www certificate not getting pulled correctly - nginx and certbot
I am using a docker stack with nginx and certbot. My domain is hosted on google domains.
I want a domain to be accessible via example.tld only:
redirect all http to https
redirect www to non-www
...
1
vote
1
answer
162
views
Change served SSL certifiate dependent on client IP in Nginx
I have two SSL certificates, foo.crt and bar.crt. Both certificates use the same key, foo.key. I want my Nginx to send foo.crt as the SSL certificate when the client IP matches 192.168.1.0/24, and bar....
1
vote
0
answers
93
views
Is there still a need for the web applications/API to use HTTPS if the proxy server is already using it in microservices architecture?
If my proxy server already is using HTTPS/SSL, is there still any sense for my other applications to implement it too?
I'm trying out microservices architecture through Docker/Kubernetes, and I am ...
0
votes
2
answers
1k
views
How to force SSL on Nginx & Varnish
how can i redirect only to https in Nginx and varnish.
I use varnish cache in port 80 and Nginx listening on 8080. Works fine in http, but i need to add SSL. my configuration is as follows
server {
...
0
votes
1
answer
1k
views
Nginx rewrite rule to make php see https scheme
I want my pho application to only see the https scheme even if the secure connection is already terminated.
I have the following setup:
Browser --https--> nginx --http--> nginx --> php-fpm ...
0
votes
0
answers
709
views
How to pass https requests to http in nginx
I have a self signed certificate, I deployed my front end react app on nginx which is served by using HTTPS but front end is making call to back-end spring-boot app over HTTP and when i check inspect ...
0
votes
1
answer
596
views
Nginx www does not work
I really do not know why my nginx configuration does not work for www.
My configuration is:
server {
listen 80;
server_name postimg.cz www.postimg.cz;
return 301 https://$server_name$...
1
vote
1
answer
9k
views
How to nginx + proxy_pass to docker container with ssl?
I want to serve multiple sites on my server. Each site I suppose to wrap as docker-compose build, each has its own nginx, that listen to one single port
I have a site with hostname site1.com. It's ...
0
votes
0
answers
4k
views
Nginx: Forward HTTPS traffic to a proxy server requiring authentication
I need to set up a transparent HTTP/HTTPS server (proxy X) with NGINX to proxy the traffic with the authorization needed to the proxy endpoint (proxy Y). The proxy endpoint (B) requires basic ...
0
votes
1
answer
955
views
Can not redirect https with upstream directive
With such config a I get redirecting to google.com
server {
listen 80;
proxy_ssl_server_name on;
rewrite_log on;
location / {
proxy_pass https://google.com;
}
}
but if I ...
1
vote
0
answers
740
views
Nginx Redirect from HTTP to HTTPS works in Firefox but not in Chrome
with my Nginx configuration (see below) redirecting from http to https works fine when accessing the page (http://example.com/) with Firefox. But for some strange reason it does not work with Chrome.
...
0
votes
1
answer
1k
views
Rejecting connections based on a pattern in nginx
in the nginx.conf I have added an if clause to filter the ssl connections based on the cn.
For example
map $ssl_client_s_dn $ssl_client_s_dn_cn {
default "";
~/CN=(?<CN>[^/]+)...
0
votes
0
answers
26
views
SSL subdomain doesn't redirect [duplicate]
I am trying to visit app.example.com.
When I type app.example.com, it goes to example.com.
If I type https://app.example.com, it goes to app.example.com.
Why is the first happening?
Here's the nginx....
1
vote
2
answers
7k
views
NginX website returns default page with HTTP (HTTPS works correctly)
This has to be a duplicate, but I have been searching for a long time and have not found anything.
When I type in the address of my website using http, I get the NginX default page (https works fine):
...
0
votes
0
answers
173
views
http request via https
Here is a scenario - http request are sent from monitoring client to an address like https://something.com:9443 which on the other end is (though) handled by nginx configured only as http server. If ...
0
votes
0
answers
743
views
Nginx proxy_pass to http or https different behavior
Good day! We have a nginx-based proxy with next config:
server {
server_name proxy;
listen 80;
underscores_in_headers on;
access_log /var/log/nginx/access.log bodylog;
location / {
...
0
votes
1
answer
577
views
Change ip address link to be http instead of https
I recently abruptly changed domains because my old domain got hacked. I bought a new domain, but it doesn't show in google search results yet. I submitted a crawl request via google search console but ...
0
votes
1
answer
3k
views
frontend HTTPS access to http backend ngix
I have a frontend in Angular which support https,while I have a backend at port 10080 which support http.
I try a few way of reverse proxy in the ngix configuration file but it still facing the same ...
0
votes
1
answer
1k
views
Nginx reverse proxy doesn't work
After configured TheHive incident response platform,I am trying to configure redirection domain to ip adress but not working.when I write ip adress on browser,I can access web page.It is not possible ...
0
votes
0
answers
277
views
Install SSL with Nginx on Unbuntu (VPS server) - SSL: error: 0B080074: x509
I've been blocking my site for HTTPS for 2 days now (VPS Server, Node.js, Nginx, Unbuntu).
I ordered a certificate from an organization, so I received 4 certificates.
From what I understood, I had to ...
0
votes
1
answer
602
views
Avoid duplication in nginx redirects config?
Setting up redirects www → non-www and HTTP → HTTPS at the same time, I ran into duplication issue that I fail to overcome.
On my domain—let it be example.com—I have a website with primary name ...
0
votes
1
answer
59
views
Create a proxy server
I want to create a HTTP and HTTPS proxy server, to use with cURL
curl -vvv "ifconfig.me" -x user:password@myproxy:8000
I am trying Nginx, but I can not get to work with user and password, ...
0
votes
0
answers
4k
views
How to troubleshoot 400 Bad Request "client sent invalid method while reading client request line"
I have nginx set up to terminate an SSL connection and forward requests to an http backend. The client makes a number of background requests, one of which is failing with 400 Bad Reqest whenever it ...
0
votes
2
answers
1k
views
HTTPS breaks Socket.io connection
Fault description
I have in my test environment Rasa chatbots running in docker containers. Chatbot's fronted is a Botfront webchat widget in a website served by Apache2 in same server. I also ...