Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
22 views

How to install PHP 5.6 on CentOS 7?

I am using CentOS 7, Nginx 1.12.2 . Base on article https://www.svnlabs.com/blogs/install-apache-mysql-php-5-6-on-centos-7/ , I try rpm -Uvh http://vault.centos.org/7.0.1406/extras/x86_64/Packages/...
0
votes
1answer
13 views

Dirty unmount of nginx cache dir on reboot

I have a file based mount, used for nginx cache dir, so that the hundreds of thousands of little files don't clutter the main file system. It's fstab line is the following: /data/project/cache.img /...
0
votes
0answers
11 views

Nginx, Let's encrypt cause error redirect http to https partially

I am using CentOS 7, Let's encrypt (want to clear all thing related 002.bkit.vn), Nginx. I try to install Let's encrypt for 002.bkit.vn , then I remove it, some things still exist, but I don't know ...
0
votes
1answer
24 views

Nginx Failing to Start

I run Arch Linux and when I run: sudo systemctl start nginx.service I get the following message in the journal: nginx.service - A high performance web server and a reverse proxy server Loaded: ...
0
votes
1answer
18 views

nginx: [emerg] BIO_new_file(“/etc/letsencrypt/live/site_name/fullchain.pem”) failed

I am using CentOS 7, Nginx 1.12.2, certbot 0.31.0 , Error after delete all things related to Let's Encrypt of 002.bkit.vn [root@VMHostDefault 002.bkit.vn]# nginx -t nginx: [emerg] BIO_new_file("/...
-1
votes
0answers
10 views

How do I install mod_rpaf on Unix systems?

I'm having a difficulty with installing mod_rpaf for apache on Unix system, SunOS. I need to install it because my apache server is behind of Nginx, and I need to pass client IP to apache. I searched ...
0
votes
0answers
25 views

nginx: [emerg] getpwnam(“user”) failed in but user exists

I'm trying to run a software that needs nginx inside a Ubuntu 14.04 container. But nginx fails with: nginx: [emerg] getpwnam("user") failed in /conf/nginx.conf:1 But the user does exist! I create ...
1
vote
0answers
32 views

Accessing nginx behind a Virtual Server looses port number

I have a Debian server running nginx with the following nginx configuration: server { listen 80 default_server; root /var/www/serviceserver1; index index.html index.htm; location /api ...
0
votes
1answer
13 views

ProxyPass on Nginx not working as expected

I've been trying for a while to get a Python (Sanic) application working with Nginx. The application itself is running on 0.0.0.0:5000. The server is on a local network and only used to host/serve the ...
0
votes
0answers
18 views

nginx fails to start at boot, but start well afterward

On Archlinux, I'm running a nginx server managed by systemd. The nginx unit is enabled in systemd so it should start at boot. But after each reboot, it fails to start with the following error: ➜ ~ ...
0
votes
1answer
22 views

Nginx: lag when loading static content

I have a sphinx doc with Read the docs theme on Nginx. Something like that: location ^~ /docs { alias /path/to/docs/build/html/; index index.html; gzip on; } There is a microlag when ...
0
votes
0answers
11 views

How to install nginx subs_filter as an package on ubuntu 18.04?

nginx version: nginx/1.14.0 (Ubuntu) Ubuntu 18.04
0
votes
0answers
25 views

nginx auth_request is ignored

Why is my auth_request ignored completely? nginx.conf server { listen 80; error_page 403 = @error; location = /auth { return 403; } ...
1
vote
1answer
22 views

Using Apache's ssl certificates when it is accessed via Nginx reverse proxy

I have been running an Apache webserver on my machine for a long while, serving various sites via https. I had to install a Nginx server on the same box, and set it up to reverse proxy most requests ...
0
votes
0answers
29 views

How to specify unix socket in nginx config? ( unix: or unix:// )

In the nginx documentation unix: notation is used like unix:/tmp/backend3; http://nginx.org/en/docs/http/ngx_http_upstream_module.html But in puma's documentation unix:// notation is used like ...
0
votes
1answer
39 views

How to handle Nginx and PHP ownership of log files?

I currently am running a Nginx reverse proxy in front of an Apache PHP server on Ubuntu. I have a file, log.txt, in the same directory that I serve PHP files out of for my site. PHP writes to this log ...
0
votes
1answer
26 views

What is the equivalent of localhost in Debian using nginx?

Every nginx config guide I find is about setting up the server for, say, example.com. But I don't have a domain name, and I want to set up a local DNS, something like localhost in Windows with Apache ...
0
votes
0answers
17 views

Nginx Directory Listing

I'm trying to have Nginx provide Directory Listing for a folder and all subfolders within it. I tried adding location /media { autoindex on; } to my default in /etc/...
0
votes
2answers
28 views

nginx reverse proxy + static files

I'm serving wordpress behind a reverse proxy in nginx. I want to be able to serve also static pages that I have in a different root directory. I tried this: server { listen 80; ...
0
votes
0answers
38 views

Nginx + php7.1-fpm - connection using Firefox returns php file instead of result of its execution

I have nginx (1.10.3-1+deb9u2) on Debian 9.6. I have installed php7.1-fpm from external repository (sury.org). I have simple php file executing phpinfo() function (and nothing more), simply to see if ...
0
votes
1answer
17 views

Serve a subdirectory from home directory using nginx with different permissions

Here is the relevant snippet from nginx which at the moment returns a 403 error. location /specialoutput/ { limit_req zone=mylimit burst=20 nodelay; root /data/customUser/outputFiles/...
0
votes
0answers
29 views

nginx - uwsgi - python bad gateway 502 when using port 80

I'm setting up an nginx - python uwsgi server, I have encountered an an issue where i can get it to work when a port (8000) is supplied but when I use port 80, I just get a bad gateway (502) error If ...
0
votes
0answers
24 views

nginx config regexp block excluding homepage

I would like to block all the http_user_agents which identify as bots, but let them to the homepage. for example i have url: https://test.mydomain.org/xyz.... need to request for crawlers only to ...
0
votes
0answers
1k views

Wordpress site hosted on Digital Ocean - 100% CPU usage

TL;DR - when there's traffic (around 900) our sites' CPU reaches 100%, slow down and crush. INTRODUCTION Our company holds more than 40 content websites, hosted on Digital Ocean, using Wordpress CMS....
0
votes
0answers
19 views

What these MongoDB Errors are about?

one of our servers which has mongodb installed with webuzo panel, went inactive due to some invoice-related issues. It was renewed later, but when it got ip, it showed services down, we fixed it, but ...
2
votes
1answer
61 views

How to troubleshoot Nginx permission denied in subdirectory?

I'm working on Fedora 29 Server. SELinux is in Enforcing mode. I'm having trouble getting Nginx to serve documents from a subdirectory below root. I need to know how to troubleshot it further because ...
1
vote
0answers
22 views

installing memcached in debian with lemp 7 jetware

im trying to install memcached with the following command : curl -L https://jetware.io/appliances/jetware/memcached14-170503/file/installer:nub_tgz/setup | sh I get this error : ERROR Destination ...
0
votes
0answers
27 views

How to config NGINX server block work with port and directory in same time?

I am using CentOS Linux release 7.6.1810 (Core), NGINX 1.12.2, VPS has ip 103.48.111.34 I have two domains: foo.com and bar.com . Domain control at GoDaddy. http://foo.com use ASP.NET Core, can ...
0
votes
1answer
40 views

Access container with Nginx

I have a Centos 7 server. In this server I have Nginx. In this server I have a Docker which contains my app. App.yml: version: '2' services: myBrand-app: image: myBrand ...
0
votes
0answers
147 views

SELinux is preventing /usr/sbin/nginx from execute access on the file /etc/ld.so.cache

I'm getting a weird SElinux issue where if I restart Nginx with sudo systemctl restart nginx and SElinux is enforcing the server jams up causing the website to crash and the servers CPU hits 70 - 90 ...
-1
votes
1answer
91 views

Missing dependencies gd and libgd.so.2 installing nginx on Centos 6 [closed]

Missing the above dependencies when trying to install Nginx from EPEL on Centos 6. I've copied the outbpt below: # yum install nginx Loaded plugins: fastestmirror, priorities, replace, security ...
2
votes
1answer
66 views

Nginx disk io problem

I run a small video streaming website and i've been noticing some problems with videos on my site. TOP top - 15:43:48 up 34 days, 1:22, 1 user, load average: 37.80, 38.08, 38.38 Tasks: 184 total, ...
0
votes
1answer
195 views

Redirect on the same port from http to https with nginx reverse proxy

I have a website setup http://mydomain.com/myroject on ubuntu 14.04(apache webserver) I setup htsql service on the same host to run on port 5000 working links: http://mydomain.com/myproject http://...
0
votes
1answer
58 views

Disabled nginx service, But the IP is still accessible

I have disabled nginx.service and have restarted my Ubuntu 18.04. $ systemctl list-unit-files | grep ngin nginx.service disabled $ systemctl is-active nginx.service inactive But ...
0
votes
1answer
16 views

Logstash output to nginx

I have 3 node and run cluster graylog-server. I use nginx for load balancer and on nginx open port (12301). i want to send log JSON format from logstash to this nginx then nginx, load balancer and ...
0
votes
0answers
44 views

Init script not picking up environment variable set in /etc/environment?

What is the right way to set a global environment variable, such that it is picked up all processes, including those started via init.d (service <service> start), on Ubuntu? Details: I first ...
-1
votes
1answer
61 views

route traffic of all connected wireless clients to one particular IP and port

I've successfully set up access point on my server using wifi-ap snap wakatana@server:~$ sudo wifi-ap.config get debug: false dhcp.lease-time: 12h dhcp.range-start: 10.0.60.2 dhcp.range-stop: 10.0.60....
0
votes
2answers
42 views

Why is the Nginx webserver called a “reverse proxy”?

Why is the Nginx webserver called a "reverse proxy"? I know any "proxy" to be a "medium" and this touches a more basic question of "how can a medium be forward or reverse".
1
vote
0answers
23 views

What combination of labels to use to let NGINX connect to socket in /home/user?

I'm running a uwsgi app that creates a unix socket in /home/user/myapp.sock and nginx has been given the right permissions to access the file, however, selinux isn't letting me connect to it: avc: ...
3
votes
0answers
87 views

NGINX OCSP stapling not working when CRL enabled?

I have an NGINX proxy set up to do OCSP stapling so new certificates work in google chrome. I also set up client certificate checks on NGINX. when I use the ssl_crl module to check the client ...
2
votes
1answer
45 views

Script to add a block in a few hundred files

I want to add the following lines if ($http_user_agent ~* "somewebsite" ) { return 444; } to all my vhosts in NGINX as follows server { location / { want_to_add_those_3_lines_here } } ...
-1
votes
1answer
55 views

error when make nginx in centos7 [closed]

I add some other modules when making nginx.The configuration file is as follows ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/...
1
vote
1answer
29 views

Issues with running nginx and apache2 webserver together

I am willing to run both nginx and apache2 web server together in order to host multiple domains on the same IP address on my Linux ubuntu server. I have already modified my ports.conf file to change ...
1
vote
1answer
205 views

502 bad gateway on nginx

I'm getting 502 bad gateway on an nginx with the following errors: [error] 1679#1679: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 46.176.252.229, server: ...
0
votes
0answers
8 views

The nginx provide data download rate is not meet the iperf3 test

I use iperf3 test the IP, there gets 9.3G/s [root@localhost ~]# iperf3 -c 4.4.226.59 Connecting to host 43.224.226.59, port 5201 [ 4] local 4.4.226.69 port 57212 connected to 4.4.226.59 port 5201 [ ...
0
votes
0answers
28 views

Why am I getting “404 not found” on individual repositories with gitweb?

I recently configured gitweb on nginx to be able to see my git repositories. I can perfectly see the repositories list when I go to the root 192.168.1.110:4321 but the problem is when I click on an ...
0
votes
0answers
59 views

Jenkins/Nginx returning 404 when concurrent requests made from jenkins

I am running nginx latest docker image to access nginx. I have 2 jenkins jobs triggered at the same time - which make a GET request to nginx and get the data. When the two jobs ran at the same time, ...
0
votes
1answer
504 views

PHP-FPM: 'No such file or directory' error from nginx/error.log. Path or permissions issue? [closed]

I am getting a "FastCGI sent in stderr: "Unable to open primary script: /var/www/mediawiki/index.php (No such file or directory)"" error when I enter my wiki address in a browser bar. Here is my PHP-...
0
votes
0answers
29 views

what is the protocol used between fcgiwrap and Nginx

When fcgiwrap is used together with Nginx to serve CGI or Perl scripts (.cgi), which is the protocol used between fcgiwrap and Nginx, http or fastcgi? What protocol is used when fcgiwrap invokes a ...
0
votes
0answers
26 views

Where to configure an CGI application server, in /etc/nginx/nginx.conf or /etc/nginx/sites-available/?

https://wiki.archlinux.org/index.php/Gitweb#Nginx shows to configure gitweb and fcgiwrap in /etc/nginx/nginx.conf, by adding (into http{server{...}} in /etc/nginx/nginx.conf, if I am correct): ...