Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nginx]

nginx is an open-source Web server and a reverse proxy for HTTP, SMTP, POP3 and IMAP protocols, aimed at high performance and low memory usage.

0
votes
0answers
10 views

Bette way of loading 3rd party modules into NGINX? Build Customized NGINX or Load at the run time?

I noticed there are two ways to load 3rd party dynamic modules into NGINX. (1) Build NGINX with that modules: https://github.com/ajdruff/nginx-naxsi-rpm/blob/master/how-to-build-your-own-nginx-rpm....
0
votes
0answers
28 views

Centos: no such package(s) for specific nginx version

I tried to build a customized nginx with specific nginx version with module in https://github.com/anomalizer/ngx_aws_auth I setup the nginx repo # nginx.repo [nginx] name=nginx repo baseurl=http://...
0
votes
1answer
35 views

service status return string

When checking status of a service running on Linux (Ubuntu) machine, I am used to the following output: service status nginx * nginx is running After recent nginx upgrade, the output of the same ...
1
vote
0answers
22 views

Nginx proxy_pass + ssl problem with seo friendly url

Below is nginx.conf server { listen 00.00.000.000:80; server_name my_site.com www.my_site.com; return 301 https://www.my_site.com$request_uri; } server { listen 00.00.000.000:443; server_name ...
1
vote
1answer
23 views

Can I add a directory as prefix for my configuration files in Nginx?

I have a development environment with a simple Debian image whilst I also use a Jetware EC2 optimised Debian image for my staging environment. The Jetware filesystem is mounted under the /jet, hence ...
1
vote
1answer
11 views

Confluence Site viewing via Android-Chrome Redirects URL to many times but Desktop Chrome and other Browsers do not [closed]

I just posted a URL and tested viewing it I noticed that in Chrome on Android it redirects too many times to the following URL. I tried clearing my cookies and browsing data but it still did the same ...
0
votes
0answers
30 views

NixOS + docker nginx + dnsmasq for local somethingsomething.dev domains

I have been configuring NixOS as a dev machine lately (and so far I really love it). I was planning of using a nginx image as reverse proxy to route all *.dev requests to running docker images. This ...
0
votes
1answer
17 views

Nginx requires identical permissions for a whole path up to a directory “assets” of my app to be able to read and serve assets

I have a web app in the folder: /home/main_user/dir1/dir2/my_web_app/ In there I have an executable file and the folder assets. Nginx is setup this way - to serve assets only: location ~ ^/...
0
votes
0answers
38 views

Nginx reverse proxy - .js and .css forbidden

My setup: a raspberry pi which is part of 2 LAN's (192.168.1.* and 192.168.2.*), running nginx. I would like to setup nginx as a reverse proxy, so I can access the router of the first LAN from the ...
0
votes
0answers
18 views

Nginx reverse TCP handler to stunnel

I have an Nginx server running on port 443. I run Wordpress at the root of the server (default page that loads), and Nextcloud under /cloud (domain.com/cloud). I have stunnel running on my server at ...
0
votes
0answers
34 views

Is there a phpmyadmin equivalent for nginx?

I've installed LEMP (w/ Mariadb) on a Debian 9 (Stretch) on a Raspberry Pi. I've only had experience with Apache before this and phpmyadmin to manage the databases. I can't find tutorials to add ...
0
votes
2answers
49 views

Is the www-data user pre-configured in Linux and Unix systems?

I personally usually use Debian based systems but I ask the following question on the entire *nix family of operating systems. Is the www-data user usually using as the Apache/Nginx already comes ...
0
votes
0answers
20 views

Nginx running php-fpm and php process

My NginX server run into problem just now, when i checked there's am out of memory problem, so i fixed it by increasing memory_limit to 1G, but the error still persist, so i take a look at system ...
0
votes
0answers
50 views

Redirect request to corporate proxy server with nginx reverse proxy

I have a Gentoo linux where I run an application that makes requests to a certain domain, but does not respect my proxy setting I made in the environment variables (http_proxy, https_proxy, HTTP_PROXY,...
0
votes
1answer
148 views

This site can't be reached ERR_CONNECTION_REFUSED - nginx not listening on port 80

I am running a LEMP stack that was serving requests from both local and remote IP addresses, and now it's not serving requests at all. I was trying to set up virtual hosts on it when it stopped ...
-3
votes
1answer
45 views

web server is unreachable : Connection refused [closed]

I am hosting my website on Plesk with AWS EC2 Ubuntu server 18.04. All things are working correctly except IPV6. I am trying to make my website Ipv6 enabled but fail to do so. every time it's showing ...
0
votes
1answer
64 views

How to keep the user “www-data” when modify file logged in as root?

I gave permission to the user "www-data" in the entire contents of the "/var/www" folder. However, I work with the root user with a private key via SFTP, and whenever I modify a file, the owner of ...
0
votes
1answer
78 views

nginx 1.14 on Debian Testing (buster) - no TLS 1.0 / 1.1?

Just updated Debian from "stable" 9.* to "testing" 10.*. Have nginx 1.14 - used to come from "stable backports" now included in Debian itself. Seeing a strange issue with TLS versions in nginx. TLS ...
-1
votes
1answer
128 views

Missing /var/www directory

I created an CentOS 7 EC2 instance on AWS and installed nginx as my web server. However unlike Apache, it has not created a /var/www folder and instead created /usr/share/nginx/html. I'd prefer to ...
1
vote
0answers
53 views

https server hello missing

I've setup an nginx server, and config it with a https certificate. But I cannot access my server through https occasionally . In some rare cases, it works well, but no server hello in most cases. ...
0
votes
1answer
110 views

nginx: Can't bind to port (already in use) although no tasks running on that port [closed]

i just chose nginx for my webserver and I did follow this tutorial: https://github.com/groovemonkey/hands_on_linux-self_hosted_wordpress_for_linux_beginners However, I just can't connect to my ...
0
votes
0answers
111 views

Google Authenticator with NGINX and PAM on ubuntu

I am trying to do nginx 2FA authentication using pam. /etc/pam.d/nginx_google_restricted: auth required pam_google_authenticator.so forward_pass auth required pam_unix.so ...
0
votes
0answers
155 views

Nginx proxy not redirecting when using url name?

When I type in the IP address of the reverse proxy directly into my browser bar, it does perform the redirect. When using a URL that is resolved via the /etc/hosts entry 203.0.113.2 git.example.com ...
0
votes
1answer
115 views

Nginx docker proxy container not redirecting?

I'm attempting to bake the following Nginx reverse proxy configuration into a docker image: server { listen 80; server_name 203.0.113.2; proxy_set_header X-Real-IP $...
0
votes
1answer
93 views

NGINX Websockets, and SSL Configuration

I'm trying to setup a websocket connection (wss). My domain uses ssl (certbot) and is powered by Nginx. I am unsure how to configure my /etc/nginx/sites-available/domain.com file. server { listen ...
0
votes
0answers
12 views

nginx limit request to location based on sent bytes

I have a location with static files, served when manifest file changed, so I want to count number of bytes_sent from this location and if rate of number is higher than N, to answer 304 for the ...
1
vote
0answers
28 views

Log format documentation

I'm trying to create a log format for goaccess so it can parse my nginx logs but it's failing and I can't find the documentation on what the the placeholders mean in the first place. Where can I find ...
0
votes
0answers
22 views

rancheros digitalocean certbot on nginx

currently, we are using let's encrypt which provides free certifications but the certification is valid for 3 months. this becomes really hard to maintain server if the process of renewing and ...
0
votes
1answer
39 views

NGINX gzip per virtualhost?

I know here are a lot of "similar" Q's, but anyway... So – I have a nginx.conf with gzip on;. It's a new, clean Linux server, nothing yet done here. Using curl – I can see gzip enabled: $ curl -I -...
0
votes
0answers
38 views

Load-balancing through multiple interfaces on the same server using Nginx

I'm testing proxy server with combination of Nginx TCP load balancing and SNI based HTTPS proxy. In my testing debian box I have following interfaces configured eth0 192.168.1.10 - proxy eth0:1 ...
1
vote
1answer
131 views

Error on Setup nginx to multiples ReactJS app on the same server?

I'm building an solution with multiple modules. Each module is a ReactJs app, and i trying config nginx to publish it on the same domain. For examples: http://application-domain/auth http://...
0
votes
0answers
18 views

nginx proxy pass preserving URL

I have the following situation.     I need that from the nginx call another server either tomcat or apache and maintain the local domain. for example     Nginx server: local.domain     External ...
0
votes
0answers
78 views

Configuring nginx http image filter module

I have two servers and need to configure nginx http_image_filter module. First server config: server { listen 80; server_name image.site.com; access_log /var/log/nginx/image.site.com-...
0
votes
0answers
14 views

Debug nginx subs module

I have a bunch of substitutions using the nginx subs module like this: sub_filter 'http://www.site1.com' 'https://www.site1.com'; sub_filter 'http://www.site2.com' 'https://www.site2.com'; sub_filter ...
0
votes
0answers
17 views

max_execution_time parameters override in PHP on LEMP (PHP-FPM / Nginx)

max_execution_time parameter value need to change for specific module of the application alone else it will reflect globally. Example : My lemp stack server have the max_execution_time parameter ...
0
votes
2answers
50 views

Linux File permissions for other user as root to read and execute

I have a folder /home/zain/uploads/hash/ In uploads one of my service which is running with forever-service is creating hash folder and put file inside it .. problem is, it is creating hash folder ...
0
votes
2answers
52 views

Certbot-nginx displays error

After executable command sudo certbox --nginx. Certbot give me output Saving debug log to /var/log/letsencrypt/letsencrypt.log An unexpected error occurred: UnicodeDecodeError: 'ascii' codec can't ...
2
votes
0answers
33 views

How to stop nginx sending status code partially written files to browsers? [closed]

I'm uploading video files to my Nginx server at /var/www/static. The files are sent from a separate machine. Sometimes these are large files, but are typically sent via an internal network. For ...
1
vote
0answers
348 views

NGINX does not seem to redirect correctly and gives me a 404 error

I have a mern application where the front-end seems to be working fine while the back-end does not work at all. The back-end should work on 127.0.0.1:3000/api but given the following error message it ...
0
votes
0answers
109 views

Nginx as forward proxy (in stream mode)

As my tcpclient is behind Nginx and external server, my idea is to have backend tcpclient, authenticate the external server. #secured TCP part stream { log_format main '$remote_addr - - [$time_local] ...
0
votes
1answer
572 views

How can I test if nginx configuration files are valid within a Bash script?

Ubuntu 16.04 Bash version 4.4.0 nginx version: nginx/1.14.0 How can I test the Nginx configuration files in a Bash script? At the moment I use -t when I'm in a shell: $ sudo nginx -t nginx: the ...
2
votes
1answer
610 views

LetsEncrypt could not connect to verify the domain (timeout)

I'm trying to set up a SSL certificate for my Nextcloud server with LetsEncrypt, but when I run: $ sudo certbot certonly --webroot -w /var/www/nextcloud --agree-tos \ --no-eff-email --email ...
2
votes
0answers
204 views

Using proxy_pass, can I redirect or proxy */ to */index.html

I have a website hosted on my.web.server. The files are hosted on file.host/myfiles. I am using Nginx to proxy the domain to the file host. The config file reads as follows: server { listen 80; ...
0
votes
1answer
414 views

Does Apache2 auto install when installing PHP 7.2?

Anyone else experiencing this issue? When I installed PHP 7.2, it somehow auto installed Apache2 with it. This is a fresh Ubuntu 16.04 with only nginx installed on it to serve static files. add-apt-...
0
votes
1answer
69 views

nginx and dokuwiki farms

I am attempting to create a suite of dokuwiki's and thus want to leverage the farms. I am however struggling as the instructions are for apache. I can get a single dokuwiki running just fine but I am ...
0
votes
1answer
296 views

How could I redirect nginx request based on the URL first header

I have 3 app servers which are handled by nginx server. upstream he { server h1.abc.example.com; server h2.abc.example.com; } How could I redirect requests request based on the some header value?...
1
vote
1answer
226 views

NGINX - location {} slug with different root domain

I currently have a .confin my etc/nginx/sites-available with a bunch of location entries. Some of those location entries are setup as reverse proxy's to specific ports. However, I'm having trouble ...
0
votes
0answers
22 views

How to find the program that is using a php-fpm pool

I have an nginx with php-fpm web server hosting several sites. I have installed php-fpm and it uses a pool named 'www'. I now see 2 processes appearing that have php-fpm: pool drupal. I have drupal ...
1
vote
1answer
918 views

Symbolic link not working on nginx [closed]

Nginx is working fine with root path without symbolic links(Eg.../1.0/public). When a symbolic link is used(Eg.../current/public where current is a link to 2.0) the changes don't get affected until I ...
1
vote
1answer
287 views

trouble starting nginx on Debian9

I have installed nginx-full on debian9 and I cant start it. When I did. sudo /etc/init.d/nginx start I got [....] Starting nginx (via systemctl): nginx.serviceJob for nginx.service failed because ...