Questions tagged [nginx]

nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

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

Installing Kali Linux in Docker and accessing it's GUI over the browser

so I'm pretty new to docker and all that stuff. I would like to install Kali Linux as a Docker container and access it's GUI from the browser. How do I do that? I use Portainer as a GUI for managing ...
user avatar
  • 1
-1 votes
0 answers
8 views

should i set servername www for nginx?

i am tryna configure webserver with domain so if i set my domain name itself on servername for example domain.xyz does my webserver can respond to www.domain.xyz request? a records are fine. Can ...
user avatar
0 votes
0 answers
21 views

I want to download a 1.2 GB file, but the transfer always fails at 1.08 GB. Is it possible to download the file in two pieces?

I can download 1.08 GB of the file without any difficulty, but the download invariably fails at that point. I am fairly sure this is because nginx writes temp files to disk before sending them to the ...
user avatar
0 votes
0 answers
38 views

What user-agent "BBBike" is?

I've observed loads of robots.txt where a user-agent called "BBBike" is blocked. I'm curious what the story behind it is. Does anyone know? Or maybe it's just something happened in the, we ...
user avatar
1 vote
1 answer
40 views

Securing a webapp with nginx, modSecurity and pfsense

As a hobby project, I started a website on my PC. I built it with nginx and everything worked fine. Now, trying to secure it, things get complicated. Im trying to setup a firewall/waf physically on ...
user avatar
0 votes
1 answer
34 views

Afterlogic mail client installation error

I am trying to manually install the Afterlogic mail client on Ubuntu 20.04 (x86_64). I have downloaded zip from https://afterlogic.org/webmail-lite. Afterlogic is located here: /var/lib/afterlogic I ...
user avatar
0 votes
1 answer
25 views

Is overrideing DNS entries in LAN a good idea?

I got a fairly simple setup which consists of 2 servers and couple of users. server #1, int -> server in my home LAN where my application lives, in this case it's nextcloud (with nginx web server, ...
user avatar
1 vote
2 answers
46 views

Ubuntu/Nginx - redirect external url to local folder

I have some files getting data from another domain not on my server. For instance pulling a pdf document from www.example.com/mypdf.pdf I have no control over this function, but instead of getting the ...
user avatar
0 votes
0 answers
56 views

MacOs - Custom project in Sites folder on localhost throws 403

I was setting my local env for the custom project in Sites/ folder following this set up. Currently on Monterey 12.3. When accessing localhost in my browser I get: 403 Forbidden I have run trough ...
user avatar
1 vote
1 answer
73 views

Put mitmproxy behind a reverse proxy

I have a mitmproxy instance running on port 2222. I want to put it behind a reverse proxy (like Nginx or Caddy), so I can use it as mitmproxy.tld. It seems that mitmproxy can't be accessed by anything ...
user avatar
0 votes
1 answer
19 views

nginx and local php.ini

I got a server with a few different domains on. Server is running ubuntu 18.04, php 7.4-fpm. My problem is that I can't seem to figure out how to set a local php.ini file for each domain, in case I ...
user avatar
0 votes
0 answers
58 views

Cannot add ppa:ondrej/nginx-mainline on Ubuntu 21.10

I'm using Ubuntu 21.10 (impish flavor) and have just installed PHP 8.1 using Ondrej's PPA. As recommended, I'd also like to use Ondrej's Nginx PPA to get the latest mainline version and benefit from ...
user avatar
1 vote
0 answers
87 views

PHP webpage downloads instead of opens in browser (nginx, php on debian10 server)

I have a server running Debian 10. I have installed nginx (1.18.0) and php and php-fpm (7.4.28). Following this guide https://landchad.net/index I was able to get html website with certification by ...
user avatar
0 votes
0 answers
23 views

Serving static file from Nginx on localhost cannot exceed 10MB/s

I was experimenting with static file serving. So picked up the simplest possible setup. In /etc/hosts I added (127.0.0.1 mysite.test) I created a vhost in nginx and placed a single file in the folder (...
user avatar
  • 105
0 votes
1 answer
34 views

Nginx force unsecure connection

I have Neo4j running behind Nginx. Everything was fine until I altered the configuration of Nginx to use SSL. All my other services work (on their unsecured port 80s), but Neo4j now insists (on its ...
user avatar
  • 135
0 votes
2 answers
49 views

Secure phpmyadmin site with nginx

I have a server with many websites. The configuration is done with nginx. I installed phpmyadmin and I add a domain name to open it in the navigator. I want to restrict access to see it only when I am ...
user avatar
  • 1
1 vote
1 answer
295 views

Nginx returns "404 Not Found" for everything but index.html

Answer in comments, I didn't have the correct permissions set. Moved from Stack Overflow My website, https://davisstanko.com returns a 404 error for everything other than index.html. This includes ...
user avatar
0 votes
0 answers
11 views

Reverse proxy stuck in "Client Hello" step - nginx [duplicate]

The current situation is, I have the typical router+nat->reverse proxy->service format. If I do the call from a pure external client (a mobile phone via LTE), everything works perfectly. If I do ...
user avatar
0 votes
1 answer
38 views

Using Nginx as load balancer and random requests hang for a while, then throughput really slow

I currently have an Nginx configuration below. It works fine most of the time. For some reason there are a certain percentage of requests that take really long, they don't drop. Maybe up to say a few ...
user avatar
  • 553
0 votes
1 answer
61 views

Reload nginx configuration when rsync updates nginx.conf

I have two web servers, server1 and server2. On server2 there is an rsync command, scheduled in crontab, that updates /etc/nginx folder when I make some changes on server1: */5 * * * * rsync -avzhe ...
user avatar
  • 25
0 votes
1 answer
29 views

How to synchronize web content and nginx configuration on debian

I have a web server (server1) with nginx and php on a debian machine. I have created another server (server2) that has the same web content and nginx configuration of server1. These servers are behind ...
user avatar
  • 25
-1 votes
1 answer
53 views

How to install PeerTube on Debian 11 (bullseye)

On Raspberry Pi OS I've followed PeerTube install steps from the docs except for the Webserver steps. So up until and including the PeerTube configuration and the systemd configuration. I've opened ...
user avatar
0 votes
0 answers
48 views

Nginx keeps redirecting to the wrong app. I use reverse proxy, same instance, 2 different apps with different domains

I have been struggling with this problem for 2 days and I'm still unable to understand what's going on Here is the context: I'm currently self hosting a couple of web applications in my raspberry and ...
user avatar
  • 1
0 votes
0 answers
139 views

Can I use Nginx to redirect a sub sub domain to a subdomain with wildcards?

I want to be able to redirect domains like https://www.*.whanganuionline.com to the same sub domain of https://*.whanganuionline.com. We have a wildcard SSL for the domain *.whanganuionline.com but ...
user avatar
0 votes
1 answer
16 views

How to use nginx as a proxy (not reverse proxy)?

Seems most people are using nginx as a reverse proxy. It possible to use it as a proxy? So people in the network will go through nginx in order to access the internet.
user avatar
  • 514
0 votes
0 answers
13 views

How to proxy my browser internet access?

I want to make my laptop access internet through another computer in same network (the server) which has a vpn. I think I did this kind of setup a decade ago but I don't remember the details. So how ...
user avatar
  • 514
0 votes
1 answer
28 views

Capture and forward in nginx only headers which contains word "foo"

I need to configure nginx for upstream and I need to capture only some headers which contains word "foo" and forward only these headers to upstream. Could you please tell how can I can ...
user avatar
0 votes
1 answer
332 views

Nginx Reverse Proxy - Modify custom header values if present

I'm trying to add different apps behind different locations of a reverse proxy. I'm aware of the proxy_redirect directive which modifies the Location and Refresh headers, however I also need to modify ...
user avatar
  • 327
0 votes
0 answers
13 views

Redirect via hostfile works from the terminal but not via browser

To avoid wasting time, I added my time-waster websites to the host-file and redirectem them to 127.0.0.1. One of the websites is 9gag.com. I then added started a web server from powershell in docker ...
user avatar
0 votes
0 answers
42 views

Nginx missing when installing ghost

I have Ubuntu 20. I installed Ghost, Nginx, MySQL, node.js according to this Ghost documentation, but when I run Ghost install I get this error: ✔ Checking system Node.js version - found v14.18.3 ✔ ...
user avatar
0 votes
0 answers
277 views

Certbot 1.12.0 - How to stop ISRG Root X1 from being signed by DST Root CA X3?

I have an NGINX reverse proxy (nginx/1.21.4 & Debian 11) using certbot (v1.12.0) to get Lets Encrypt certificates for my site. Since the expiry of the DST cert, I had intermittent issues with ...
user avatar
  • 13
0 votes
0 answers
13 views

Ingress not routing traffic to service (Kubernetes/Helm/Ingress/Ngxinx)

The problem I'm currently working on a webAPI which I have an nginx ingress controller controlling traffic to my cluster. I have got it 90% working where the paths for pgweb (http://lnd.local/pgweb) ...
user avatar
0 votes
0 answers
65 views

Pointing a subdomain in Plesk to a Docker container without Docker extension

Good morning, I am trying to point a subdomain to a Docker container that is running on my Ubuntu 20.04 system in Plesk Obsidian 18.0.40 but without the Docker extension since I am running Docker ...
user avatar
  • 1
0 votes
0 answers
60 views

Convert htaccess rewrite rules script to nginx config

please hlep with this script... i want convert htaccess rewrite rules script to nginx config. .htaccess: AddDefaultCharset utf-8 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond $1 !^(index\...
user avatar
0 votes
1 answer
164 views

How can I use GitLab under a relative URL on docker?

I'm using gitlab-ce on docker. These are my system specifications. A container of GitLab is gitlab/gitlab-ce. The web frontend is using external NGINX. GitLab is mounted under /git. I read the the ...
user avatar
  • 1
0 votes
0 answers
89 views

NGINX - reverse proxy for Kibana using HTTPS

I installed the Elastic Stack (Logstash, Elasticsearch and Kibana) on Docker in Ubuntu Server. All containers are in one docker network in bridge mode. I forced SSL in the Kibana configuration file, ...
user avatar
0 votes
0 answers
29 views

We want to restrict access to our cloud software based on physical sites (homes of staff + our offices) But the IP at these sites don't have static ip

The IPs that are assigned by ISP for staff working from home is dynamic and can change. But we do want to restrict access so that https requests coming from fixed locations like homes of staff and ...
user avatar
0 votes
0 answers
103 views

How can I setup docker networking/dns to access containers by the same name externally and internally?

I'm trying to setup a web development stack in docker desktop for mac (although I'd like it to be portable to linux, at least) with 2 containers: wordpress (ports 8000:80) meteor (ports 3000:3000) ...
user avatar
  • 101
1 vote
0 answers
72 views

NGINX REVERSE PROXY AND PORT 445

I'm trying to implement a reverse proxy that through port 445 allows me to exchange data with a NAS server. Let me explain, with windows explorer I want to go to the reverse proxy address 111.0.0.111:...
user avatar
  • 11
0 votes
0 answers
49 views

Unable to access the web server within hyper-v from internet [duplicate]

Hello im running 'Nginx web server on Debian' within Hyper-V on windows 10. I am able to access the web server locally (with the debian local ip address) but however i am unable to access the web ...
user avatar
0 votes
0 answers
12 views

How do you create a nginx reverse proxy for an external site and set up the SSL certificate for the site you're redirecting to?

How do you create a nginx reverse proxy for an external site and set up the SSL certificate for the site you're redirecting to? I am not sure how to do this. I have a server on www.yeetpc.com, and I ...
user avatar
  • 1
0 votes
0 answers
20 views

Gitbucket self-Hosting on Nginx MYSQL configuration doesn't work

I'm configuring my own self hosted (on Nginx) gitbucket repository and my MYSQL configuration does not work as expected here under GITBUCKET_HOME/database.conf : db { url = "jdbc:mysql://...
user avatar
0 votes
0 answers
30 views

NGINX as https-to-http proxy

I have nginx set up on a machine with private IP 192.168.17.70. It forwards https requests from a public IP using a self-signed certificate (this part is working) to a web appliance on 192.168.17.29. ...
user avatar
1 vote
0 answers
196 views

Lets Encypt, Firefox, Peer’s Certificate issuer is not recognized

I recently moved my TLS termination back to my reverse proxy from the backend server, and I have run into this very specific problem. When connecting to my nextcloud site firefox says ...
user avatar
  • 13
0 votes
0 answers
67 views

Enable basic authentication on Kong API Gateway

I have succeeded to install Kong API gateway with Cassandra DB (native, not by docker). Now I want to enable basic authentication for Kong API like this: I have followed this step Step 1: Create ...
user avatar
2 votes
0 answers
15 views

Nginx gives localized last-modified headers

Nginx gives me localized last-modified header. date is correct: date: Tue, 07 Dec 2021 17:15:53 GMT last-modified: So, 20 lis 2021 17:35:33 GMT Is there an option to set correct en localization? I ...
user avatar
  • 21
0 votes
0 answers
17 views

NGINX fails to rewrite 302 in proxed Tocmat application

I have a strange issue with nginx failing to rewrite 302s in my java application. This is my location block, location = / { rewrite ^ /vcssPanel-0.4.2-SNAPSHOT/ last; } location / { ...
user avatar
0 votes
0 answers
30 views

Is there a need to reload or restart nginx on a high request nginx load balancer?

My question is given that I'm using nginx as a load balancer for some services. Is there a need to reload nginx if there are no changes to the server after a while to prevent memory leaks? or ...
user avatar
  • 553
0 votes
0 answers
52 views

Directly call index.php instead of try_files

I got this construct which works, but is clearly suboptimal. I tried to follow this guide, https://www.getpagespeed.com/server-setup/nginx-try_files-is-evil-too, but the configuration for php, is ...
user avatar
0 votes
1 answer
219 views

Have nginx send files as binary downloads

I currently have two directories. app/static and app/static/downloads what I would like to accomplish is have nginx work normally for all files and folders in static, like it does now. location /...
user avatar
  • 553

1
2 3 4 5
19