Questions tagged [nginx]

nginx (pronounced “engine-x”) is a lightweight, high-performance Web server/reverse proxy and e-mail (IMAP/POP3) proxy, licensed under a BSD-like license.

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

Reverse proxy for use with iframe [migrated]

Weather Observations-II this web page has the following link: Videofeed of Weather Condition this page calls iframe link: <iframe width-"1300" height="731" src="http://c500....
William's user avatar
0 votes
0 answers
99 views

Twitter card / OG card doesn't work on NextJs

I tried many different alternative to put the meta tags for the Twitter card and the Open Graph card, but it does not render and the twitter card validator says "Meta tags not found" And ...
Anthony's user avatar
0 votes
0 answers
40 views

hosting Django REST API on subdomain

So I have this domain fimetsu.com, here is my frontend hosted on. Now I need to find a way to host my Django REST API so my frontend can communicate with my backend. I was thinking of hosting this on ...
david backx's user avatar
0 votes
1 answer
60 views

Modsecurity Nginx breaks Wordpress's Woocommerce checkout page. Need help finding working rule exclusions

I am running an Ubuntu 20.04 based LEMP server on a Raspberry Pi 4. I am working on a Wordpress Woocommerce website at https://www.mcmo.is. Currently on iOS using Safari or Google Chrome, I can't get ...
DanRan's user avatar
  • 101
0 votes
0 answers
19 views

Why does certbot generate Nginx config a test for server_name?

server { if ($host = test.google.ca) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; server_name test.google.ca; return 404; # managed by Certbot } ...
Edward's user avatar
  • 101
1 vote
0 answers
14 views

Nginx seems to be redirecting to wrong proxy_pass

This is a project for a cryptography class where I'm learning about self signed certficates and I chose nginx to help me with my app. I have a docker-compose.yml that hosts a python api, postgres, ...
Luca Moreno's user avatar
1 vote
0 answers
165 views

My server is returning "301 moved permanently" to some sketchy site

ping returns the correct IP address, but a curl to the IP address or domain returns: <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white&...
Nikolay Dyankov's user avatar
2 votes
2 answers
90 views

Trying to block images from google image indexing but not working

I am trying to block images from google image search, but for some reason they are not working. I have a Wordpress self-hosted blog and I have full access to the backend. HTML of mydomain.com looks ...
cyanite's user avatar
  • 21
0 votes
0 answers
97 views

Suspicious requests to nginx web server

Periodically, the nginx web server receives a lot of requests from the same IP address: $ cat /var/www/site.com/logs/access.log | grep '213.80.239.170' 213.80.239.170 - - [14/Mar/2023:11:05:03 +0600] ...
AziAd's user avatar
  • 1
3 votes
1 answer
45 views

How to modify $uri to avoid HTTP-Splitting vulnerability

How can I modify below block to overcome HTTP-Splitting vulnerability. There is an official recommendation to instead use $uri_request but unfortunately that doesn't work for below code. location /...
JM John's user avatar
  • 33
1 vote
1 answer
251 views

WordPress nginx proxy manager + apache: redirect loop

I've moved (manually, db backup + folder transfer) 4 wordpress websites from one host to another, maintaining the same configuration (nginx proxy manager in docker on 80/443 plus apache on 444/https). ...
Nik Rubblers's user avatar
1 vote
0 answers
11 views

Nginx proxy w/ modified URL

I am trying to make my website example1.com show the contents of example2.com. Basically, my goal is to create a proxy when /telehealth is visited but w/ a modified proxy manner. Such as when example1....
Dean Christian Armada's user avatar
2 votes
0 answers
32 views

strange nginx route resolution

I installed a fresh ubuntu 22.04.1 LTS on a VM, then nginx (nginx/1.18.0 (Ubuntu)) serving (for a while) at http://164.67.176.22/ . the server config file is default, with addition only of /wth: ...
ivo Welch's user avatar
  • 121
3 votes
3 answers
879 views

Reverse proxy SSL with Nginx, do I need a wildcard or a separate cert for every host?

I have Nginx setup and successfully serving SSL to example.com using certbot/letsencrypt. But when I try to reverse proxy to a local machine I get NET::ERR_CERT_COMMON_NAME_INVALID. Here's the ...
THE JOATMON's user avatar
1 vote
0 answers
75 views

Do I need to buy a domain for each sub domain I want to use with nginx?

I want to set up an nginx server on a vps to reverse proxy to some Minecraft servers that I am hosting and running locally on my home IP. I understand I will need to buy an A record for my domain(I ...
shirolight's user avatar
2 votes
1 answer
38 views

Why has someone copied my website, and why is it showing up as a referral in GoAccess?

I recently created a simple website to serve as a resume. I run it off of a VM that I configured myself with Ubuntu and Nginx. I also installed a tool called GoAccess that allows me to see things like ...
Vallium Overdose's user avatar
0 votes
1 answer
484 views

Is it possible to detect that site is using reverse proxy?

If one will reverse proxy a site (copy) - how would one know its reverse proxied and not a real site? Is there a simple method to detect without content plagiarism tools etc?
Adolaz's user avatar
  • 1
1 vote
0 answers
254 views

Plesk Obsidian (18.0.48) - 413 Request Entity Too Large (nginx)

Hello recently I set up a server using Ubuntu 22.04.1 LTS and Plesk Obsidian 18.0.48. However I encountered a problem when uploading files around 1GB of size. The website I am running is a docker-...
Anbosuki's user avatar
1 vote
0 answers
63 views

Can Nginx get the client requesting IP address or URL?

In the config file of Nginx there's: proxy_set_header X-Real-IP $remote_addr; Just wondering if there is any way you can figure out if the request is accessed from a request URL: example.com or the ...
tipsywacky's user avatar
1 vote
0 answers
26 views

How to run a nodejs app over HTTPS?

I have a node.js app that I want to deploy on a VPS. So I ran the app on port 8080, then went to IP_ADDRESS:8080 and the website was there. So the next step was removing that port number because I don'...
Alej4ndr0's user avatar
0 votes
1 answer
265 views

Reverse proxy pass websocket request with PHP in apache

I have a websocket server that I need to protect behind a PHP session and currently I'm unable because I can't make PHP to reverse proxy to the websocket server. Let's go to the details. I have a ...
Worsha's user avatar
  • 15
2 votes
2 answers
42 views

Renaming subdomain and keeping traffic

I would like to use a reverse proxy (NGINX) to redirect traffic from let's call it SUBDOMAIN1.example.com/EXAMPLEPAGE to SUBDOMAIN2.example.com/EXAMPLEPAGE Currently, I rank position 1-2 for most ...
Nassocci's user avatar
0 votes
1 answer
1k views

nginx Content-Security-Policy headers: why do they have to be all on the same line? (version 1.18 vs 1.22)

I have two different servers, one using nginx 1.18 and another using 1.22. The headers on the 1.18 version are: add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'; ...
ehtio's user avatar
  • 103
2 votes
1 answer
840 views

Nginx URL rewrite with static .html files for SEO

I'm trying to setup a Nginx configuration for nice URLs without .html extension. What I currently have works, but the / URI redirects to /index and I don't want that. The URL rewrite rules should be ...
Rumplin's user avatar
  • 123
1 vote
0 answers
36 views

How to disable direct media file access in Nginx or Ubuntu for non-logged-in users?

I am trying to disable direct URL access (for images, PDF) to my WordPress websites for non-logged-in users, I have created one '.htaccess file' under - wp-content/uploads/.htaccess RewriteCond %{...
Ricky's user avatar
  • 11
0 votes
1 answer
606 views

DNS_PROBE_FINISHED_NXDOMAIN when serving multiple subdomains with nginx

On our research project, we have an Ubuntu 20.04 LTS virtual machine running, which should serve via nginx multiple project related websites/apps on different subdomains. The setup is supposed to be ...
Stefan Boehringer's user avatar
3 votes
1 answer
346 views

Nginx error 400 through Cloudflare

I recently added my site to Cloudflare and all of my subdomains like portainer and my file server are working however my main domain that points to my Nginx server returns "error 400 bad request ...
George Johnson's user avatar
2 votes
0 answers
53 views

Googlebot tries to access links from another unavailable website

I'm getting a bit paranoid because there's been a small breach on my web server recently and that linked to this I found multiple logs like this from nginx: access.log-20220602:66.249.70.69 - - [01/...
SilentSib's user avatar
2 votes
0 answers
49 views

Nginx unclear about non HTTP requests

Today my website server had to be restarted. It seems it faced an important number of requests that do not look like HTTP ones. While the density of requests reduced, I can still see some of them ...
AlixL's user avatar
  • 121
-1 votes
1 answer
99 views

Missing SSL certificate cause unwanted redirect to another website

I have a website without SSL certificate. When opened in browser it shows error message: "Potential Security Risk Ahead" which is good but when click "accept the risk and continue" ...
Jan Husák's user avatar
0 votes
0 answers
160 views

Redirect wildcard domain to another one in nginx

I have two websites *.env1.example and *.env2.example, I want to redirect all traffics in env1 to env2, how to do so in Nginx? I do redirect from one specific domain to another, but now I want to ...
Mohammed Ahmed Bahashwan's user avatar
0 votes
0 answers
236 views

What is reddit's user agent?

Does anyone know what the user agent is for reddit? I have hotlink protection enabled on my site but I want to allow a reddit to hotlink my image however I don't know know what their user agent is.
TravelWhere's user avatar
2 votes
1 answer
103 views

Nginx access log clarification

I noticed the below line of log in the nginx access log file. What does it mean? 15.23.35.45 - - [19/Feb/2022:07:09:25 +0000] "" 400 0 "-" "-"
krkart's user avatar
  • 123
3 votes
1 answer
1k views

Why Doesn't "location /" Match Every URI in Nginx

In Nginx, according to this question's answer https://stackoverflow.com/questions/59846238/guide-on-how-to-use-regex-in-nginx-location-block-section when using no modifier between the location ...
Harry Muscle's user avatar
5 votes
1 answer
1k views

Is it safe to use 777 for my public html folder?

Running a Linode and I want to install Nextcloud, but it needs permissions to write to the directory (/var/www/html). Doing a chmod 777 will clear things up but I wonder if it's safe to use that open ...
liminalFrog's user avatar
1 vote
0 answers
48 views

How to redirect if user direct access image files by browser? [nginx]

How do I redirect if a user tries to direct access image files in browser only? I want to still keep the ability to allow social media sites to embed our images by hotlinking. I just want only if a ...
TravelWhere's user avatar
1 vote
1 answer
119 views

How to cache the html file of redirected website

I have a website A whose content gets updated every minute(Its content is related to stock price). However, because displaying the content of website A requires expensive computation, I want to create ...
John Doyle's user avatar
1 vote
1 answer
403 views

The role of server_name in DNS resolution and redirects in nginx

I understand there's a name resolution. For instance, I have a DNS A record I think and it redirects everything that goes to bi.example.com to www.example.com, which is the hostname of the server. But ...
Sayaman's user avatar
  • 113
1 vote
0 answers
146 views

Nginx works on http but not on https, showing welcome to centos page

I am trying to server flask application with ssl enabled. myproject.service file: [Unit] Description=Gunicorn instance to serve myproject After=network.target [Service] User=userone Group=userone ...
alexis's user avatar
  • 11
1 vote
1 answer
95 views

How do I redirect from an old domain to a new domain in MediaWiki and nginx?

I'm going to move from old domain to new domain. I fixed all the settings, but none worked. While entering the old domain name in the url, I will encounter the message of not redirecting to the new ...
Sokot Zaman's user avatar
1 vote
1 answer
1k views

nginx how to configure nginx to nevigate to a subpage for reactjs app

I have following nginx setup where I used proxy configuration to redirect my landing page (built with reactjs) to my domain, say (www.example.com), here is my nginx configuration server { listen 80; ...
Md. Tanvir Raihan's user avatar
2 votes
2 answers
150 views

Cloudflare plus Nginx plus Tomcat - is Nginx redundant?

With my past project, I have Nginx serving static files as well as being a reverse proxy for Tomcat (backend written in Java). There was no Cloudflare or other CDN. With my current project, I have ...
Yuriy N.'s user avatar
  • 195
6 votes
1 answer
431 views

Nginx reverse proxy into external cPanel server results in an error

I am trying to reverse proxy into a cPanel account by attempting to use the following Nginx configuration (123.123.123.123 is the cPanel IP), but I'm getting an error: ERR_TOO_MANY_REDIRECTS server { ...
Toodarday's user avatar
  • 123
1 vote
1 answer
228 views

How do i setup a simple smart dns proxy service using nginx? [closed]

I have trying to setup a smart dns proxy service using nginx reverse proxy mode. its ok with http sites but i have issues with https sites. when i want to open https sites via my proxy i got following ...
rmasoumvand's user avatar
1 vote
2 answers
853 views

Redirect all requests to a subdomain except the root URL and index page under nginx

Up until now, our website consisted of a wiki with several wiki sites. We now decided to host some general information on a single page and move the wiki to a subdomain (https://wiki.example.com/). I ...
qbi's user avatar
  • 121
3 votes
1 answer
567 views

ServerAlias directive not working on Apache 2.4.49

I have an instance of WordPress set up at https://wordpressinstance.example. I have an instance of MediaWiki set up at https://mediawiki.wordpressinstance.example. The MediaWiki instance is ...
JohnRDOrazio's user avatar
3 votes
2 answers
240 views

Is it possible for a hacker to point another domain at my domain?

Recently when I search my website on google, I find that another domain's description is identical to my domain. I'm terrified and try to understand the security breaches of my website as much as ...
LittleTeemo's user avatar
2 votes
1 answer
116 views

nginx configure error pages

Mostly that I need to be more familiar with the configuration of nginx and I have tried to search for an answer but have been unable to find one,I need to have all 401 403 and 404 errors directed to /...
Willtech's user avatar
  • 265
1 vote
1 answer
1k views

Configure nginx to set the content type from the URL only when there is an allowed user

I implemented a location configuration like this (legituser is set by a map lookup): location / { if ($legituser = 0) { return 200 "you are not allowed to access this url, please do bla bla ...
Marged's user avatar
  • 133
1 vote
1 answer
45 views

Can I tell who is accessing archive.org archived documents from my site from my server logs?

I currently host a website with a collection of some of my projects, where a few of them are currently undergoing a patent review process. I don't want these documents to be public (though they were ...
user avatar

1
2 3 4 5 6