Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

0
votes
0answers
32 views

Redirect requests to one of port in list nginx

I'm using supervisord to host pyramid application. Supervisord can spawn multiple processes. Since its an web application, each process should have its own port. But I'm using nginx for reverse ...
1
vote
0answers
19 views

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: ...
0
votes
0answers
16 views

nginx shows 404 on form submit, i.e. on all post requests

I have an nginx v1.2.1 together with php-fpm hosting the magento system for me. The current nginx config looks like this, and this config works fine for me, or at least I think it works fine. server ...
-1
votes
2answers
63 views

To hide “#” from the URL using Nginx

I am using Nginx web server to host my website. I need to hide "#" from URL. Actual: example.com/#page2 Requirement: example.com/page2 Our web page developer says that, here #page2 is defined as id ...
1
vote
0answers
9 views

Meteor app 403 forbidden

I have a meteor app which runs locally but on my linux ubuntu with nginx and passenger webserver it gives a 403 error. I have changed the permission for the meteor and followed this simple guide ...
6
votes
1answer
531 views

Can't access https despite port 443 is opened

This is my first time setting up a server and I've just installed a SSL cert. I have also made some changes to the iptable to allow access to 443. Below is the output of iptables -L target prot ...
1
vote
0answers
18 views

Timestamp in nginx logs changed after upgrading from 1.4.6 to 1.8.1

I have set the nginx timezone in /etc/init.d/nginx: export TZ='Asia/Kolkata' and the timestamp in the logs was working fine. Later upgraded the nginx to 1.8.1 from 1.4.6 and see the log timestamp ...
1
vote
2answers
61 views

how to re-direct from http(s)://(www.)example.com to https://example.com using Nginx?

Just as the title states. I found another helpful Q/A, but it does not show how to do it correctly in Nginx settings, I mean the parameters. He might mean that https://exmaple.com should have a valid ...
1
vote
1answer
35 views

Does OCSP stapling increase performance for websites behind CloudFlare?

Should a website trying to increase performance that uses the CloudFlare CDN (or any CDN really) who already do OCSP stapling configure OCSP stapling on their instance of Nginx if "Full SSL" setting ...
1
vote
0answers
45 views

Improve SSL Performance with Nginx

We have Nginx in the front of our system and we Proxy to Apache at the back. We use SSL/TLS for our connection. Question: Is Nginx the best option to terminate SSL/TLS connections in terms of ...
0
votes
2answers
19 views

Redirect path nginx with location

I want to implement multiple redirections, for example: I did this: location = /about { return 301 /es_CR; } And is correct but a need /about, /about-us and /about.php to redirect to the same ...
0
votes
1answer
33 views

nginx fastcgi caching - multiple different expire times

I need to set up NGINX so that different locations would have different expire times for caching and some would have caching disabled. This is my current setup: fastcgi_cache_path /etc/nginx/cache ...
1
vote
0answers
19 views

Nginx log to syslog on TCP port

I need to redirect Nginx access and error logs to a remote syslog server. From http://nginx.org/en/docs/syslog.html I saw that I can do: error_log syslog:server=192.168.1.1; However I need to ...
2
votes
0answers
23 views

How to distinguish between internal error code 502 and upstream returned http_502 on a nginx proxy

We use nginx as a http proxy server.The following configuration: location / { proxy_pass_header Server; proxy_pass $scheme://$http_host$request_uri; } When urls proxied return error code ...
0
votes
0answers
23 views

Web server configuration

We are using a Linux server with 12 Cores and 16 Gb of memory. There are hosted 2 sites. 1 site generates lot's of small light pages (less then 1Kb) 300-500 connections, and the second - few heavy ...
2
votes
3answers
78 views

Nginx 1.2.1 custom 404

I'm trying to make a custom 404 error with nginx. First in my local machine I added the following lines to the default site: error_page 404 /custom_404.html; location = /custom_404.html { ...
1
vote
1answer
27 views

Redirection to subdomain URL while preserving original URL and serving files from subdomain URL

I want to go to www.example.com and be redirected to subdomain.example.com/homepage without the url changing from www.example.com. The catch being than my css and js is hosted at ...
0
votes
1answer
40 views

Nginx's location path is redirecting me when trailing slash is removed

Here is my reverse proxy configuration. server { listen 8080; access_log /var/log/nginx/server.access.log main; root /usr/share/nginx/htdocs; index index.html index.htm; location /apps/ ...
1
vote
3answers
42 views

Use NGINX to map “directories” to applications

I'm not sure if my terminology is correct, so let me explain ... If I have a domain, test.example.com, I want to be able to map /abc to an application on that server running on port 8080 and map ...
0
votes
0answers
19 views

NGINX Problems in redirect from “/” to “index” when non secure

I've got a personal website running up and going. I've rented a cloud ssd server and configured nginx on it to serve content. All the content which has to be served directly is in the path ...
0
votes
1answer
34 views

Nginx upstream returns «site unavailable», while they work

I use upstream and proxy for load balancing. [root@192.168.1.135 ~]# cat /etc/nginx/nginx.conf user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; events { ...
-2
votes
0answers
18 views

Is my drupal-nginx config safe for use?

I have the warning in my Drupal 7 installation: http://drupal.org/SA-CORE-2013-003 Here's my nginx config: server { listen 80; root /srv/www/domain.com; index index.php; ...
-1
votes
1answer
29 views

Which Nginx log file is for fail2ban?

I have files in /var/log/nginx/ the log file /var/log/nginx/access.log is empty. But the /var/log/nginx/access.log.1 is being appended as always. In file /etc/fail2ban/fail2ban.conf, logtarget = ...
0
votes
0answers
18 views

Nginx's proxy_pass and path failing

So I have this Nginx configuration location /todomvc { proxy_pass http://s3bucket/testtarget/todomvc/; } Then I access it this way http://localhost/todomvc The index.html loads but the ...
0
votes
0answers
29 views

Unable to get Nginx/Apache + FastCGI + PHP-FPM + HTTP/1.0 to use Keep-Alive

For a reason beyond my control (an app that cannot be modified), I need to get a server that processes HTTP requests for PHP pages over FastCGI, to honour "Connection: Keep-alive" (sent by said ...
1
vote
1answer
49 views

Redirect from port 80 to 443 with nginx and multiple servers

To begin, I'm a bit new with nginx and a bit lost… I sadly didn't found any solution to this, so here is my problem. If it's a duplicate of an already existing question I apologize and I would be very ...
0
votes
0answers
47 views

Nginx memory profile

I'm using nginx 1.9.2 (with pagespeed and geoIP) inside a docker container, running on Google container engine. It serves as a proxy for another container running php-fpm (php7). I'm also using ...
0
votes
1answer
15 views

nginx: empty subdomain can not work

I read this article http://bneijt.nl/blog/post/name-based-virtual-hosting-with-nginx/ and excerpts is as follow: server { server_name ...
0
votes
0answers
35 views

“double reverse proxy” from apache 2.4 to nginx to final destination ssl secured rocket.chat

I have two servers with webapplications behind one firewall. So only one can get natted the 80 and 443 ports. On the second one, which does not get the ports natted, I installed rocket.chat. The only ...
1
vote
1answer
24 views

Nginx as reverse proxy with IBM Websphere upstream

I have an IBM WebSphere serving multiple domains: x.x.x.x:8080/app1 x.x.x.x:9090/app2 ... I need to configure Nginx as reverse proxy to serve: app1.example.com app2.example.com Here is my config but ...
2
votes
1answer
29 views

Nginx rewrite filename as a directory

I want to rewrite a file name membership-list.html as a directory on the root domain as membership-list/. I had this in my config file: location = ^/membership-list.html { rewrite ...
0
votes
2answers
46 views

restart php5-fpm from php script

Ok, this is a tricky one (I think) I need to reload php5-fpm from a php script The obvious issue is that once the reload command is executed, the current script is disturbed, I tried to delay the ...
1
vote
0answers
26 views

Ghost With Nginx Only Works on Port 80

I've been struggling to get this fixed since yesterday. I've done a lot to try and resolve it and still nothing seams to work. I am trying to install NodeJS with Ghost and use NGINX as a reverse proxy ...
3
votes
2answers
115 views

Nginx + Wordpress in subdirectory

I have recently migrated our home site to ASP.NET Core 1.0. This allowed me to move website in linux environment. We also have /blog under this site which is a wordpress blog. All migrated properly ...
-1
votes
1answer
22 views

NGINX forward not working

I have nginx installed on my Centos 7 box and would like to forward calls to my kibana installation on port 5601. Kibana is up and running and am able to browse to it by by appending the port to the ...
0
votes
0answers
34 views

PHP/FastCGI: Is “&QUOT” the cause of fatal error?

I'm trying to set up Wallabag, a PHP application, for the users on my site. This is one of a number of PHP applications running on a LEMP setup with PHP 7.0 (default on Ubuntu 16.04) When I visit ...
0
votes
2answers
12 views

Troubleshooting a Web Server with Timeouts?

Have a slightly strange situation that seems like a weird DNS issue. Have a simple office website which has a very simple admin portal type area for staff to login to, and closed off by simple ...
0
votes
1answer
16 views

About second-level domain names corresponding to nginx server blocks

There are 2 second-level domain names and 2 corresponding folders,like this: domain name folder 111.aa.com /var/www/111.aa.com 222.aa.com /var/www/222.aa.com In nginx.conf,there are 2 ...
1
vote
1answer
98 views

porting RewriteCond %{QUERY_STRING} from Apache2 to nginx

I made a static mirror of a large PHP-based website, using the following Apache2 rewrite stanzas gets the query string into the filesystem path to serve the static files correctly. Old dynamic url ...
0
votes
1answer
24 views

How to set an owner and access mode for Nginx unix socket?

I'm running nginx with listen unix:/tmp/foo.sock;. Unfortunately, that socket is owned by root and world-writable/readable: srw-rw-rw- 1 root root 0 Apr 11 00:37 /tmp/foo.sock While I'd like it to ...
0
votes
0answers
16 views

Catch URIs without [.] (dot) and with dot

Until now I used mod_rewrite in Apache to redirect all URIs with dot [.] in URI to separate folder and all other URIs to index.php. I am now trying to do the same in NGINX, but I am failing for ...
1
vote
0answers
11 views

Why my Wordpress is trying to connect to an strange url? [duplicate]

I'm managing a Wordpress site and in the lasts months an strange 502 Bad Gateway error has been appearing. I enabled the log and discovered that it tries to access to strange urls like: gd-join.com ...
0
votes
0answers
16 views

How to monitor request timeouts/drops between IIS and nginx

An NGINX reverse proxy is load balancing multiple Windows IIS/ASP.NET servers. Let's say the servers are under heavy load and might drop connections/requests. I see upstream timed out errors in ...
0
votes
1answer
59 views

nginx reverse proxy get time-out response

Am getting The connection has timed out after configuring a reverse proxy to some internal server. Knowing that if i run wget i get 200 OK response and the correct page is downloaded. [root@web1 ...
0
votes
0answers
20 views

Nginx - How to get the ip addresses from limit_req_zone?

Using the following configuration in nginx limit_req_zone $binary_remote_addr zone=delta:8m rate=10r/m; error_page 404 /404.html; location = /404.html { limit_req ...
-2
votes
1answer
39 views

Binding multiple IPs to one NIC [closed]

I'm trying to set up an ubuntu 14.04 server to listen on multiple IP addresses. A range has been assigned to the server (X.X.X.146/29) and ip addr show confirms that this is how eth0 has been ...
0
votes
0answers
19 views

Nginx charset not working

I am using easy engine as my server i.e. nginx and setup with defaults, but when i goto my site for text/html the content-type does not show charset it shows up for everything else, this is bugging ...
0
votes
0answers
50 views

NGINX server_name configuration

I have setup my NGINX server and got the necessary ssl certificates for having a TLS/SSL connection Am working with an API that posts data to my server. For security the API requires mutual ...
-1
votes
1answer
23 views

whats is nginx location blacklist

What does location @blacklist means ? location @blacklist { proxy_redirect off ; proxy_pass https://ip-address:1500; rewrite (.*) /mancgi/ddos break; proxy_set_header Host $host; ...
0
votes
0answers
55 views

Java AWS Server: 502 Bad Gateway nginx/1.8.1

I am getting the 502 bad gateway error after uploading my application via Eclipse and I don't understand why its happening? I created a Sample Application through the AWS Elastic Beanstalk Console. ...