All Questions

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

Escaping Japanese Language Redirect (Nginx)

I'd like to redirect a following redirect in Nginx and I think its due to the encoding it has. I have tried the below code and it doesn't work: The redirect is: From Test.com/hub/東京 To Test.com/home, ...
thecatcoder's user avatar
0 votes
0 answers
22 views

Distinguish if users accessing url from LAN or WAN (nginx) [duplicate]

Is it possible to distinguish between two users (with unknown IPs) that access the same URL, one from the internet (WAN) and one from the local LAN? If not, is it generally not possible or does it ...
Toxiro's user avatar
  • 123
1 vote
0 answers
57 views

nginx Failing to Serve Static Files to Flask

I've tried numerous solutions of other posts, but nothing seems to work for me, I always get a 404 error, when trying to let nginx serve static files of my flask application. On my local host server, ...
AnthonyShea's user avatar
0 votes
2 answers
111 views

What is the best way to redirect port 80 connections to port 8080 with ipv6?

As I understand it, IPV6 is supposed to get rid of this whole port forwarding requirements. However if I want to host a web server on port 80 with something like python or javascript i'd still need to ...
Stanislas's user avatar
1 vote
1 answer
76 views

What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot?

I'm looking for assistance in diagnosing and resolving this issue. What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot? Are there any ...
Sri's user avatar
  • 13
0 votes
0 answers
279 views

proxy pass/redirect not working on Nginx reverse proxy

I am trying to achieve the below with nginx - I have 2 docker containers running on a server once container runs nginx on port 80 & takes requests from AWS application load balancer. Then based on ...
usert4jju7's user avatar
0 votes
0 answers
31 views

Learning reason of incorrect redirect in Nginx

There's a web app url of which may vary - it's either .com or my..com depending on if a user is logged or not. However, there's an element on the main page (that can be accessed via .com or my..com) ...
Gregory Miermont's user avatar
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 ...
Alexandre Renchon's user avatar
0 votes
2 answers
171 views

Traffic mirroring with nginx

Simply put using Nginx I am trying to mirror all the traffic hitting one of our apps, app A to a newly deployed test app. I know that there is the mirror module but I was wondering if there is any ...
Omera's user avatar
  • 15
0 votes
1 answer
790 views

Nginx cache does not set the "X-Proxy-Cache" header

So I´m currently trying to implement caching on my NGINX webserver. For now I have a single conf file in my sites-enabled directory linked, which looks like this: proxy_cache_path /var/cache/nginx ...
MielkeDaniel's user avatar
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, ...
Shan Robertson's user avatar
0 votes
2 answers
616 views

Nginx reverse proxy only specific sub directory and pass through everything else

I have development situation where i have a domain with multiple services: https://somewebpage.com On this service there are multiple project as subdirectories https://somewebpage.com <- landing ...
Gregor's user avatar
  • 1
2 votes
2 answers
848 views

My Nginx webserver does not correctly serve content with accented characters in files names

I just created a new web server using a Linux box and NginX. It seems to be working correctly for most content. I just converted a site which used to be on a Windows Server box and for the most part ...
RDK's user avatar
  • 23
0 votes
1 answer
89 views

Nginx: Accessing website by domain name will throw ERR_TIMED_OUT

Steps I did: I've Debian VPS and I've bought domain "marek-prusa.dev" on Google Domains. Steps how I configured my webserver with domain name "marek-prusa.dev". I've created marek-...
prusama's user avatar
1 vote
0 answers
1k views

Specify IP address for V2ray + nginx

There's an Ubuntu server configured with nginx and trojan proxy with x-ui. The nginx listens on public IP address port 443 and x-ui on 127.0.0.1 and can be on any port. trojan proxies also listens on ...
Mohammad Mahdi's user avatar
0 votes
0 answers
27 views

NGINX SSL directory and .crt and .key files permissions [duplicate]

in folder /etc/nginx/ssl/ I have public and private key for domain for wildcard SSL certificate purchased from CA and transferred as root to that folder. SSL request has made on another windows ...
Carlo's user avatar
  • 123
0 votes
0 answers
43 views

nginx, two websites on two ports to two URLs instead?

I have experience with IIS but not with nginx (on Windows). I have two websites on a server as follows; http://servername:port1000 http://servername:port2000 and would like the following: http://site1....
Bigliettiperfavore's user avatar
0 votes
0 answers
30 views

A web server that takes contents from another one, and serves it with slightly modified HTML

I have a web site a.com (please note: I own and run it). I want to be able to run a slightly modified version of it on b.com . The contents would be identical; however, I would apply some minor ...
Merc's user avatar
  • 797
1 vote
2 answers
8k views

How can I forward-proxy https requests with Nginx?

I am running a local web app on my dev machine. And I want to reach my local web app from a test machine (a phone). I set up Nginx to listen on port 8888. My test machine can reach my dev machine at ...
jlanssie's user avatar
0 votes
1 answer
348 views

How to redirect/block IP access to Nginx

I am hosting a Website on some EC2 Instances behind an Elastic Load Balancer. The Website can be reached via the public IP of the Load Balancer. This public IP is changing frequently so I have to ...
kwkro's user avatar
  • 1
0 votes
1 answer
572 views

How can I make my nginx web server reachable from outside its local network?

I am trying to reach a subdomain of my website from outside its local network. I can successfully ping it (ping my.subdomain.com): PING my.subdomain.com (ser.ver.ip.add) 56(84) bytes of data. 64 bytes ...
naraghi's user avatar
  • 111
0 votes
0 answers
769 views

Why is the use of limit_req_zone not limiting requests by clients as expected on Nginx?

Background: I've been trying to use rate-limiting on Nginx following this NGINX rate-limiting in a nutshell article, but I have an unexpected behavior when using the $binary_remote_addr option. The ...
Ronaldo's user avatar
  • 73
0 votes
2 answers
3k views

Connection issue with nginx and php-fpm on ubuntu 22.04 LTS

I am not able to contact my website which has been set up on a freshly installed ubuntu server 22.04 LTS. Unfortunately, my connection attempts time out with error 522 and I have no idea where to ...
Roadrunner85's user avatar
0 votes
1 answer
273 views

NGINX secure_link returning 403

I´m using the following serve block to serve some mp4 files using NGINX secure link. server { listen 80; listen [::]:80; root /var/www/cdn; index index.html index.php ...
Paul Mark's user avatar
0 votes
1 answer
12k views

Nginx 404 Not Found when entering a specific url path

What I am trying to do is to prepare this machine to serve my web application. It works without any problems when I serve it via npm start. I have a domain, let's say, example.com on which I installed ...
Abdelrahman Ayman's user avatar
0 votes
1 answer
731 views

Can I validate client certificates signed with different root certificates in nginx?

Preface: I'm new to certificate validation I've configured an nginx website as a reverse proxy, which validates client certificates. Without all the other specifics, this is the config that I used: ...
GChuf's user avatar
  • 265
1 vote
0 answers
418 views

Performance, Security and Scalability of nginx proxy vs ssh tunnel

I'm wondering about the difference in performance, security and scalability for nginx and ssh tunnel for a web application. For my case, I have a VPS set up, whos only job is to forward the traffic to ...
Typewar's user avatar
  • 167
0 votes
0 answers
2k views

Why does Nginx only respond on Port 80?

I tried to change nginx' port 80 to 81 in nginx.conf file but my sample site is not responding despite listening to port 81. The sample website only responds on port 80. Also , sample site on http://...
Cihat Şaman's user avatar
0 votes
1 answer
68 views

Inventory of all vhosts across multiple webservers

I was tasked to create an inventory of all websites/webapps hosted on our infrastructure (couple thousand sites hosted on around 120 Linux VMs). Most of the sites are served by Apache (httpd 2.4) but ...
Viesturs Eihentals's user avatar
2 votes
2 answers
1k views

How to block .git Folder serverwide on NGINX?

I have a question about blocking the .git folders server wide on a NGINX system. At the moment I'm playing around a little with NGINX, I actually use Apache. In Apache, it's actually no problem to ...
Taoiseach's user avatar
0 votes
1 answer
309 views

Wildcard redirect https://www.*.abc.com to *.abc.com nginx

I would like to redirect all traffic from www.*.abc.com to *.abc.com without www prefix . i have 1000+ subdomains on the same application which use only one nginx virtual host file in sites enabled ...
sambit's user avatar
  • 101
0 votes
0 answers
2k views

100% CPU usage from iowait caused by Nginx, not solved by turning sendfile on and directio off

I run a webservice that performs some basic image processing operations. The webserver first accepts image uploads from users and temporarily stores them. A backend server then downloads the image ...
ackbar03's user avatar
0 votes
1 answer
27 views

Rerouting requests from site.org/old to site.org/new in nginx

I have a site deployed at www.site.org. I have routes at www.site.org/old/article and I want to automatically redirect people to www.site.org/new/article. Ideally this would work as a wildcard to ...
James Bradbury's user avatar
6 votes
1 answer
4k views

My browser will not display http://[sub.]example.com

When I go to http://sub.example.com in my browser I get a "connection refused" message or an "invalid certificate" error but I don't even want to connect over https. As far as I ...
Bob's user avatar
  • 5,903
0 votes
1 answer
34 views

What is the order in which apps respond when I visit DOMAIN:PORT on my VPS?

I have owned a VPS running Ubuntu for nearly half a decade, and I have a working knowledge of the networking aspect - but there are many holes in my understanding. When I visit DOMAIN:PORT I ...
Vidur's user avatar
  • 113
0 votes
0 answers
340 views

How to define www.*.abc.example.com wildcard domain in nginx server block?

I want to define my own domain something like this - www..abc.example.com in nginx server blocks . i have tried to do like this - www(.).abc.example.com * & it throws error like - nginx: [emerg] ...
sambit's user avatar
  • 101
-4 votes
1 answer
268 views

Does every application needs web server? [closed]

Server is just a machine with web server software(like nginx, apache etc). When we host a website in hosting services like GoDaddy or cloud services, does they provide web server software for every ...
vinter's user avatar
  • 97
1 vote
0 answers
239 views

Nginx, webP, and a strict content security policy (SCP) on a LEMP Server

I am attempting to create a strong and secure content-security-policy in nginx, running a wordpress based LEMP Server. I believe I am using the ngx_pagespeed.so module, and have implemented FastCGI on ...
DanRan's user avatar
  • 103
0 votes
2 answers
11k views

add CORS policy on NGINX server

i'm having difficulties adding CORS policy to my NGINX server. I have pointed DNS server to server but the problem in CORS policy is not working. When accessing subdomain.domain.com everything works ...
sintezators's user avatar
1 vote
0 answers
2k views

How to configure wildcard subdomains together with some fixed names in NGINX?

I have example.com and the following use cases: SSL only www. will be redirected to example.com (no www.) example.com will reverse proxy to :3000 fix1.example.com will reverse proxy to :3001 fix2....
PhilHarmonie's user avatar
1 vote
1 answer
739 views

rewrite and force redirect on rewrite origin url in nginx

I have this instance where a html search <form> forces it to go to /search/index.php?q=term and would like to use something like /search/term instead. This is how the config looks like right now:...
Typewar's user avatar
  • 167
1 vote
1 answer
350 views

How to host an app for multiple customers?

I built a web app with NextJS that I sell b2b, where users (my clients customers) can check in to a location. They provide their name and get a check in number. The app shows client related ...
PhilHarmonie's user avatar
1 vote
1 answer
872 views

Directory traversal fix for nginx config

I discovered that my website has this issue and I wasn't able to fix this. I tried several things like to checking if parent prefixed locations for Nginx alias directives end with a directory ...
Greg's user avatar
  • 33
0 votes
1 answer
23 views

How Nginx Sends reuests?

i am new to nginx and currently i am using nginx as a reverse proxy , we are using nginx to route the request to other urls , For example i have below code , location /test/rome/ { ...
Prakash's user avatar
0 votes
1 answer
582 views

How to hide that Nginx is a reverse proxy?

Running the command nmap -A -sS mysite.com, it was demonstrated that the server is Nginx and that it is used as a proxy. Is it possible to hide this information? Command output: 80/tcp open http ...
campos's user avatar
  • 17
0 votes
2 answers
240 views

How to make nginx receive and send data to both server1 and server2?

I have nginx as reverse proxy. I want to send data to both server, not just one not load balancing (just send data that it receive from port 80 to server1 and then server2). Server1 will be a web ...
JUDQ's user avatar
  • 1
0 votes
1 answer
352 views

Nginx sends garbled bytes for any request

I have setup a new site on my Nginx server as a subdomain of another site on the same server. All my other sites still work perfectly fine but this new site simply sends over a bunch of random bytes ...
VixieTSQ's user avatar
0 votes
1 answer
837 views

NGINX Rewrite Rule for Slug [duplicate]

I am trying to create a rewrite rule in NGINX for a URL. The Original URL format is https://example.com/blog/article-slug-here but needs to be in this format: https://example.com/blog?article=article-...
TheKrisMoore's user avatar
3 votes
1 answer
5k views

Why nginx returns 301 status code when trying to open a directory?

I am trying to understand how Nginx works. Now I'm working on index and try_files directives. My config file is this: events {} http { rewrite_log on; error_log /var/log/nginx/localhost.error_log ...
Sobhan Safdariyan's user avatar
1 vote
1 answer
262 views

Nginx try_files doesn't work inside server block

http { include mime.types; default_type application/octet-stream; server { root /websites; listen 80; server_name localhost; # don't work try_files /logo.png /logo.jpg /error; ...
Safar Safarli's user avatar

1
2 3 4 5
12