Questions tagged [nginx]
nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server
1,037
questions
5
votes
1
answer
6k
views
Cannot install Nginx on AWS EC2 AMI2 - Topic :topic: is not found
I would like to install Nginx as a reverse proxy on my AWS EC2 (OS: AMI2) instance.
When I try to install nginx, I get told that nginx is available in Amazon Linux Extra topics...
sudo yum install ...
2
votes
2
answers
3k
views
Helm chart nginx-ingress controller TCP redirect http to https
My environment is hosted in AWS.
I had deployed the helm chart stable/nginx-ingress in TCP mode (I need an AWS ELB in TCP mode for WebSocket. I need exactly ELB classic!), also I need to use AWS ACM ...
0
votes
0
answers
1k
views
Use NGinX to serve static files or a file server
I am very new to NginX. I wanted to use it both as a web server, and for file transfer operations.
I imagined it'd be something similar to the FTP server which can be enabled on IIS, however I ...
3
votes
1
answer
7k
views
Nginx reverse proxy to non-HTTP software
I'm wondering whether it's possible to do this with Nginx:
server1.domain.com:9999 --> localhost:4000
server2.domain.com:9999 --> localhost:5000
server3.domain.com:9999 --> localhost:6000
...
0
votes
1
answer
992
views
ffmpeg- Multiple Outputs in NGINX RTMP
I would like to compress down a live video and send it two different RTMP Server at once via ffmpeg without pushing it to two local outputs.
My Code looks like
live on;
meta copy;
...
0
votes
0
answers
31
views
Fresh install of Nginx on Freshly installed macOS, only accepts requests on 0.0.0.0:8080 but not localhost:8080 or 127.0.0.1:8080
I just recently installed Nginx on a newly installed macOS. I followed several guides to get Nginx set up, and everything seems to have worked with one exception. I can't access the server using ...
0
votes
1
answer
531
views
How to restrict access from a single IP per HTTP host in nginx?
I have an server with multiple websites each with its own host.
Is there a way in nginx to block access to 0.0.0.0/0 and allow a specific IP, let's say 1.2.3.4/32 for a specific website (specific ...
0
votes
2
answers
3k
views
Lsyncd 2.2.2 ownership and permission issue
I'm having an issue where files are been copied to the remote server except the owner/group of replicated files on the target server is always '1002'. The permissions of the source are respected and ...
0
votes
1
answer
302
views
Nginx auto forward domain which I do not configure
I've setup a new server on DigitalOcean. I have forgotten to activate the firewall for a day, then I check nginx log and see these lines:
120.216.207.173 - - [11/Dec/2019:01:42:29 +0000] "GET http://...
1
vote
1
answer
357
views
Why is nginx complaining about the letter m?
So I hve a custom conf file for reverse proxy and when I run sudo nginx -t I get
nginx: [emerg] unexpected "m" in /etc/nginx/sites-enabled/<domain>.conf:19
nginx: configuration file /etc/nginx/...
1
vote
0
answers
226
views
nginx returns status:500 when upstream_cache_status:UPDATING
I use proxy_cache_use_stale with updating attribute.
I grep my logs for the $upstream_cache_status UPDATING value and found many matchs but I can't reproduce this situation.
Can you please help to ...
0
votes
0
answers
189
views
Port forwarding fail - port open, but content not served
I decided I would embark on the journey of trying to self-host a website, and I've run into some trouble.
I'm hosting the content on a local desktop using nginx. My router (a vtech) was assigned a ...
0
votes
1
answer
1k
views
nginx append date stamp to old logs
I wonder how I might achieve naming old nginx logs (both access and error logs). Currently my server adds numbers to these which is default behaviour I guess (looks like this: access.log.1).
Can I ...
0
votes
1
answer
318
views
Nginx to Apache HTTPS routing
I have a Nginx software on ubuntu configured as a reverse proxy for all traffic to the internal upstream server.
Also, on the same nginx server, I have an Apache Server to serve sites.
I am trying ...
0
votes
1
answer
73
views
How to integrate trac into a nginx/gunicorn/django website?
I have a django website, which is setup using NGINX and gunicorn.
/etc/systemd/system/gunicorn.socket:
[Unit]
Description=gunicorn socket
[Socket]
ListenStream=/run/gunicorn.sock
[Install]
WantedBy=...
2
votes
0
answers
900
views
uWSGI: No python application found
When I run my app with the command python sorteerhoed.py && uwsgi --socket 0.0.0.0:5000 --protocol=http -w wsgi:app It runs fine and when I goto the server ip:5000 I get to see my page. But ...
1
vote
0
answers
154
views
NGINX Reverse Proxy for Hulu TV Streaming
I am trying to setup nginx on Ubuntu Server 18.04 LTS on my local network to configure it as a reverse proxy for all local client requests to hulu.com via a VPN interface on my router...
I am new to ...
0
votes
1
answer
148
views
How can i setup 2 nginx for same static dynamic content
I have a news site with lots of images and text.
Is it possible to setup 2 nginx ,one for php-fpm and one for images css etc for the same site?
0
votes
0
answers
23
views
nginx and certbot fails
Im trying to setup two sites on my nginx server.
pma (phpmyadmin) works as it should.
myhome.domain.tld - dosnt work.
here is the nginx.conf file.
user www-data;
worker_processes auto;
pid /run/...
1
vote
0
answers
170
views
Pleroma nginx config taking over other server_name directives
I have several subdomains with different scripts and for some reason my Pleroma install, when enabled in Nginx, takes over at least 3 other subdomains. As soon as it's disabled though, it goes back to ...
1
vote
2
answers
1k
views
Load balancing with Nginx: POST requests are not forwarded to the next upstream server when the current is down
I'm using Nginx as a load balancer between two webservers.
I noticed that, when one of the two webservers is down, GET requests are well forwarded to the second one, while POST are not:
Here is the ...
1
vote
1
answer
2k
views
sometimes nginx return 501 error
I have a problem that nginx returns 501 error or 200 OK for same requests.
I don't know why.
I guess nginx doesn't have enough connections for upstream.(I connect nginx and tomcat by reverse proxy. ...
0
votes
1
answer
2k
views
Nginx Redirect one domain to sub folder inside another domain
I have product.com and company.com
I would love to figure out how to tell both the DNS and Nginx to redirect product.com to a folder inside the company.com domain.
Ideally all these permutations
...
0
votes
0
answers
203
views
how to deny downloading file in nginx coming via php file
In moodle the files are downloaded via plugin.php such as
/pluginfile.php?forcedownload=1&file=%2F12489%2Fbackup%2Fautomated%2Fbackup-moodle2-course-31-rnq-20190623-0710.mbz
i want to deny all ...
1
vote
1
answer
931
views
How to support byte range requests in ingress-nginx for Kubernetes
I am using ingress-nginx for Kubernetes to serve mp4 video files. It is working fine except in iOS browser. According to Apple developer site:
https://developer.apple.com/library/archive/...
0
votes
0
answers
967
views
Nginx - hosting .net core app with signalr
I have an ASP.NET Core web app which is using signalR hub to communicate with clients. I'm hosting this on Raspberry Pi 2 with nginx reverse proxy.
The app is working on localhost port 5000. I'm ...
0
votes
2
answers
421
views
NGINX configuration failed
I was trying to remove useless redirects and I changed nginx configuration without backup... I just removed one line, and then put it back, but nginx didnt start. Right now I tried a few "defaults" ...
0
votes
0
answers
216
views
Website returns 403 Forbidden error (NGINX) for internal traffic only
I'm having a difficult time wrapping my head around the issue. We have a landing page hosted on Instapaga and main site on WPEngine (Wordpress). When employees on the internal network try to access ...
0
votes
1
answer
750
views
How do I configure nginx to reverse proxy based on the Accept header?
Suppose I have nginx reverse proxying to a local HTTP server.
If I want everything under /wombat, I can do that with
location /wombat {
include proxy_params;
proxy_pass http://...
4
votes
1
answer
13k
views
Exposing another port for Nginx in DockerFile
I'm new to DockerFile.
I want Nginx to be listening on port 8080. so I've written the dockerFile in this way:
FROM nginx:1.11-alpine
COPY index.html /usr/share/nginx/html
EXPOSE 8080
CMD ["nginx", "-...
1
vote
1
answer
101
views
Website shows a blank page when opened from search engines or href links, but works with url directly typed
I met a strange problem, www.vimooc.org, this is the site.
It will be a blank page if go through the search engine or a href link, but it will work fine if the complete url is typed on the address ...
0
votes
0
answers
645
views
Job for nginx.service failed because the control process exited with error code
After a long time of research on Internet I found nothing...
I'm trying to start Nginx on an Ubuntu 18.04 VPS:
Job for nginx.service failed because the control process exited with error code.
...
3
votes
2
answers
3k
views
webdav - Can't upload file from Explorer to NGINX Webdav server
Situation
I've setup an NGINX based Webdav server with SSL enabled. When I tried to connect to the server from Windows Explorer, everything works fine until I uploaded a file.
Windows Explorer said ...
1
vote
1
answer
3k
views
NGINX reverse proxy ssh to multiple hosts
Using NGINX I have multiple reverse proxies that work with normal http(s) for various websites. I have just one public ip address but several vhosts behind it. This part is working as it should.
I ...
1
vote
0
answers
952
views
NGINX: Allow 403 custom error page
I have a question about custom error pages, especially the 403 one.
I have this configuration for my vhost :
server {
...
error_page 403 /403.html
...
location / {
...
allow xx.xx.xx.xx;
...
0
votes
1
answer
3k
views
NGINX displaying default page, domain's not redirecting
I am currently trying to deploy my Django app on an Ubuntu 18.04.3 droplet. I am following along with this tutorial.
I have successfully completed the tutorial, and my app is served when visiting my ...
0
votes
1
answer
3k
views
nginx: configuration file /etc/nginx/nginx.conf test failed
My websites just crashed and I am trying to find out the problem. While looking i found out that the nginx.conf file is empty, i do have a backup of that file but when i try to replace is the one i ...
0
votes
1
answer
2k
views
Correct file permissions for /var/www/html/ for multiple users - permission denied
I have been struggling for hours with an annoying permissions issue (feel like it's ALWAYS permissions that's holding me back).
I am trying to ensure that I can create/read/execute inside /var/www/...
1
vote
0
answers
1k
views
Client SSL certificate verify error in Nginx
I was setting up a mutual authentication in nginx and generated certificates from "Let's Encrypt".
Server side SSL is working fine.
But after enabling the client side certificate verification, it ...
0
votes
0
answers
336
views
Syncthing webGUI broken when proxied through nginx on Docker
I want to deploy syncthing on my Ubunty 18.04 server using docker.
I'm using nginx as a reverse proxy so WebGUI traffic goes over SSL using my certificate.
However, opening the webGUI when proxied ...
0
votes
1
answer
1k
views
Gateway time out error after port change of the node application
After i changed the port of my node js application from 3000 to 3001 , some of the resources in few of the pages don't load completely ultimately leading to 504 Gateway Time-out (nginx/1.10.3(Ubuntu) )...
1
vote
0
answers
291
views
phpmyadmin not working after php verion Update
I have VPS with below things installed
Nginx, PHP 7.2.22, 10.3.18-MariaDB
Recently Updated PHP version from 7.1.17 to 7.2.22 .. After this, website is working fine.. PHPMyAdmin set on custom ...
0
votes
0
answers
260
views
PHP links not working (nginx)
I am trying to install phpBB on my Pi.
This is the base site of the installation:
192.168.178.62/phpBB3/install/app.php
this is the url which it trys to go to:
http://192.168.178.62/phpBB3/install/...
2
votes
1
answer
19k
views
Why does nginx return 404 on my Kubernetes Ingress route?
I have two nginx web servers set up. One is set up on AWS Elastic Beanstalk, the other on Kubernetes using the stable/nginx-ingress helm chart.
The Elastic Beanstalk webserver forwards traffic from ...
0
votes
2
answers
3k
views
How can I run multiple applications on one server with the same port?
I have a vServer and I want to host a VPN server at port 443 and I also want to host a http server with SSL/TLS on port 443. The Server has different domains pointing at him. So I want example.com:443 ...
0
votes
0
answers
228
views
install of nginx1.12 on amazon linux 2
I am getting following error, when I try to install ngnix on my amazon linux 2
Error: Package: nginx-1.14.0-4597.amzn1.art.x86_64 (atomic)
Requires: libpcre.so.0()(64bit)
You could ...
1
vote
0
answers
32
views
nginx issue with redirecting styles
I want to configure my home network to do everything through my raspberry pi.
My router is 192.168.1.1, and the pi is 192.168.1.2. They are static IPs.
I have nginx running on the pi, and I'm using ...
0
votes
0
answers
856
views
Certbot on nginx not creating .well-known directory on website
When trying to install a certificate on an nginx server using sudo certbot certonly --webroot -w [my web root] -d [mywebsite] I get this error:
Domain: [mywebsite]
Type: unauthorized
...
2
votes
0
answers
338
views
django + uwsgi + nginx, python files download instead of parse/execute
I am trying to get a new webserver up and running.
php files will parse correctly but python files will not.
I changed the file to +x, an this has no effect.
I am not getting any errors in my logs ...
0
votes
1
answer
1k
views
Nginx error: [crit] pread() "/etc/nginx/sites-enabled/mod_rpaf-stable" failed (21: Is a directory)
I got both the Apache and Nginx servers working fine until I ran:
sudo certbot --nginx -d myhost.com -d www.myhost.com
and restarted Nginx.
I got the error
nginx: [crit] pread() "/etc/nginx/...