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.

1
vote
0answers
15 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 ...
-2
votes
0answers
16 views

Reloading nginx after hotswapping in a script

Trying to write a script that hotswaps my nginx.conf file and then reloads nginx to redirect it to the new address. I can manually hotswap by connecting my shell to the running container, editing the ...
0
votes
0answers
14 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
38 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
48 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
46 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
45 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
56 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
43 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
0answers
11 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
24 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
45 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
39 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
17 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
41 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
29 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
0answers
20 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
86 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
15 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
33 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
167 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
26 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
20 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): ...
0
votes
0answers
16 views

Why is gitweb.cgi run when URL doesn't contain its filename, and downloaded when URL does?

https://gist.github.com/mcxiaoke/055af99e86f8e8d3176e set up a website as follows: server { # Git repos are browsable at http://example.com:4321/ listen 4321 default; # Remove 'default' from ...
1
vote
1answer
41 views

How does server_name in nginx config file work?

I am following https://gist.github.com/mcxiaoke/055af99e86f8e8d3176e server { # Git repos are browsable at http://example.com:4321/ listen 4321 default; # Remove 'default' from this line if ...
0
votes
0answers
36 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
69 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
42 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
27 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
26 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
60 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
20 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
118 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
23 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
38 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
50 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
42 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 ...
1
vote
0answers
147 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
436 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
151 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
135 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 ...
1
vote
1answer
146 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
369 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
62 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
212 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
179 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
206 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
256 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 ...