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
10 views

What functions are preferred to be disabled to increase webserver security?

I'm looking into securing my webserver additionally and thinking I could disable certain PHP functions to prevent potential issues. Could someone share some tips regarding this or guide me in right ...
0
votes
1answer
15 views

Removing port from nginx redirect

I have a domain so www.mysite.com running app Django. In this server I created a Blog with WordPress. www.mysite.com/blog Nginx Django app: upstream django { server 127.0.0.1:8001; } server { ...
-1
votes
0answers
9 views

how to configure naxsi to accept json format in rest apis?

for example one of my APIs is: Post request: /api/v0/login body: { "username":"xxx@ggg.com", "password":"eeeee" } I want to secure this API with nexsi, I could not find anywhere to config naxsi to ...
0
votes
0answers
8 views

NGINX - proxy_store save images

server { listen 80; root /var/www/public_html/; index index.php index.html index.htm; server_name servertest.com; location / { ...
0
votes
0answers
26 views

Nginx 400 Bad Request on ec2 Public IP works, but domain name does not

A couple days ago, my ubuntu t2.micro ec2 instance stopped working. I just got it restarted again, but now only my public IP address given by amazon works. The domain name I bought does not. It worked ...
0
votes
1answer
10 views

Nginx “rewrite or internal redirection cycle while internally redirecting to ”/index.html"

So here is my problem: I have the same problem with every file I try to access. It always sends me back to index.html or shows me an 500 server error. The error log gives me: "rewrite or internal ...
-1
votes
0answers
10 views

nginx server installation on centos6 redirecting to /cgi-sys/defaultwebpage.cgi

i'm installing wordpress to my VPS, so far i belive i have everything configurated correctly but it doesnt starts the wp-admin/install.php, it redirects to /cgi-sys/defaultwebpage.cgi everytime i go ...
0
votes
0answers
14 views

Nginx won't add Access-Control-Allow-Origin header to chunked requests

I'm trying to get nginx to add the Access-Control-Allow-Origin header to be added to chucked requests; which nginx is refusing to do. It seems that only the server header is added, Here is a good ...
0
votes
0answers
11 views

install php with nginx [on hold]

I'm new to all things related to webservers. Until now, I used apache. But I want to give a try to nginx. So I decided to install it, alongside PHP. This are the steps I followed (I mention that I use ...
0
votes
1answer
20 views

Can't make nginx listen on nonstandard ports (3000, 35729)

This is on a fresh install of Ubuntu 14.04 running on a VPS. For example the following will work: server { listen 8080 default_server; root /var/www; location / { try_files $uri ...
0
votes
0answers
14 views

Will nginx route no traffic to an upstream host with weight 0?

I would like to temporarily route no traffic to a host in an nginx upstream. Rather than commenting it out, as this means nginx would be completely programmatically unaware of it, I was wondering ...
-2
votes
0answers
8 views

Varnish + nginx + WPTouch

I'm trying to get wp-touch pro to play nice with varnish. They work together with the default.vcl below. But for some reason varnish caches admin and login pages, making it impossible to save ...
0
votes
0answers
16 views

How do i make my web browser choose local virtual host over a site on internet [on hold]

I have different virtual hosts on my local machine i added them into /etc/hosts by ip 127.0.0.1 They were working fine but today when i try to access one browser was keeping connecting to internet ...
0
votes
0answers
14 views

Nginx with Python and Wordpress same server

I have a aplication with Python/Django running in www.mydomain.com. I want to create a blog with WordPress in the same server and I want my domain looks like this: www.mydomain.com/blog In nginx how ...
0
votes
0answers
18 views

Nginx Proxy - How to check images are cached?

On nginx server, i have config location ~* \.(gif|jpg|jpeg|png|ico|wmv|3gp|avi|mpg|mpeg|mp4|flv|mp3|mid|js|css|html|htm|wml)$ { root /var/www/cache; expires 365d; } i check the folder ...
0
votes
1answer
38 views

Redirect subdomain.domain.com to www.subdomain.domain.com

We have currently a wildcard vhost accepting all domain request. I want to redirect subdomain.domain.com to www.subdomain.domain.com so my wildcard will answer One exception, I dont want to ...
0
votes
0answers
10 views

404 Not Found or 500 internal server error using nginx try_files configuration

I'm trying to move my project from Apache to nginx. I use WT-NMP. I'm converting .htaccess to nginx configuration by adding this in nginx.conf. location / { try_files $uri $uri/ /index.php/$args; ...
0
votes
0answers
15 views

ngnix proxy_pass HTML resources

I'm setting up a reverse proxy that connects to different localhost ports with different services. This is the NGINX site configuration: server { listen 0.0.0.0:80; root /var/www/; index ...
0
votes
1answer
22 views

Nginx conflicting server name for subdomain

I currently have a vhost running on Nginx for foo.domain.com and everything works great. I created a new file for a new sub-domain I want to add called bar.domain.com. I use the same settings for ...
0
votes
0answers
14 views

nginx redirects URL to itself

I want to do some redirection based on user agent. Here is what I have done until now: server { server_name share.example.com default_server; access_log off; root /opt/snapshots; ...
0
votes
0answers
16 views

How to setup NGINX Reverse Proxy for Mulitple Domain with diffirent Hosting

Recently, I've started working on my NGINX reverse proxy project. There following websites which is hosted on different website Hosting with different IP / DNS. Example.com foo.net Takesrs.com ...
0
votes
0answers
10 views

How to configure NGINX to servce Python file and also Django file?

I have the following NGINX configuration: server { listen 8888; root /var/www; index index.html index.htm; location / { try_files $uri $uri/ /index.html; } } ...
0
votes
0answers
20 views

nginx does not allow access by subnet

I have the following conf file in /etc/nginx/conf.d/app.conf. I am trying to limit access to /path1 and /path2 url to /16 subnet range. When I try to access froma machine in the subnet I get 404 only ...
-1
votes
0answers
20 views

How to configure nginx reverse proxy for ftp [duplicate]

I am trying to configure nginx reverse proxy to point to an FTP server. I've tried this: server { listen 21; location / { proxy_pass http://66.55.147.67:21/; } } with and ...
-1
votes
1answer
16 views

nginx denying request based on domain name

I have a backend on Tomact and static content an angularjs app hosted on nginx reversed proxied. I want to deny any requests apart from the authorized domains How can I achieve this with nginx ...
0
votes
1answer
31 views

SSL off for a specific URL Nginx

This configuration was working before, and now it is not. I should mention this is Django,Gunicorn, and Nginx. We are trying to make https://toontowninfinite.com/rpc/ use http, not SSL. and the rest ...
0
votes
1answer
33 views

Nginx randomly refuses SSL connections

I am running the website https://telerandom.com (NodeJS server, port 9576) behind an Nginx reverse-proxy. It usually works, but on occasion, it begins to refuse all SSL connections from certain users ...
1
vote
0answers
38 views

chrome requests get stuck pending

Description of issue We have a web server that is serving static assets. We are experiencing a problem where after you browse around some of the http requests get stuck in the "pending" state. In the ...
0
votes
0answers
10 views

uwsgi queue of socket message flood?

I found my website unresponsive and I see a ton of *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! (101/100) *** *** uWSGI listen queue of socket "0.0.0.0:5002" (fd: 3) full !!! ...
0
votes
0answers
14 views

Nginx proxying fails for django

I have a django app running on django server on port 8000 in Chrome. I have another application server running on port 9000. I want nginx to proxy requests to /api/ sent from django app and forward ...
0
votes
1answer
35 views

Nginx redirect failure for icingaweb2

I'm trying to configure IcingaWeb2 using Nginx, and having some issues with it. The suggested Icinga Nginx configuration is: location ~ ^/icingaweb2/index\.php(.*)$ { # fastcgi_pass 127.0.0.1:9000; ...
0
votes
0answers
10 views

Unable to convert Apache's 'Alias + Directory derivative containing rewrite rules' to Nginx

The Web Application: It is LampCMS within a Wordpress folder. The main web site runs on Wordpress. A requirement made us create LampCMS under this Wordpress site. LampCMS is accessed over a URL ...
0
votes
1answer
32 views

Google.com SSL Ciphers - How to capture which ones they are using?

I would like to use the same SSL Ciphers Google.com uses - in order for maximum browser compatibility. I'm aware that ssllabs.com shows them, but I have no idea how to translate them for use in Nginx ...
0
votes
0answers
16 views

Proxying request from nginx docker container to tomcat docker container (all inside Vagrant VM)

Running a Vagrant (virtualbox) VM with two docker containers inside, nginx and tomcat. Want to host static files in nginx container and proxy web requests to the tomcat container. I've read up on ...
-1
votes
0answers
19 views

NGINX ODOO 8 SSL

I have an Odoo 8 server install at xx.xx.xx.xx and the domain name example.com The DNS record for example.com: A record: @ to the IP xx.xx.xx.xx CNAME record: www to the example.com I want the ...
1
vote
0answers
17 views

Nginx only allow directory endings, no index.html or index.php

Working on setting up an nginx server. I want to add some sort of location block that would only allow the parent folder of index.html or index.php to be served, but would redirect index.html or ...
0
votes
0answers
14 views

nginx index directive wrong file

I'm testing reverse proxy with nginx and I need http://localhost to go to http://localhost:8081/index-dev.html instead of index.html. Here is my config: server { listen 80; index ...
0
votes
1answer
24 views

Nginx: [emerg] “location” directive is not allowed here in /etc/nginx/nginx.conf:14

Iam facing with this error, Starting nginx: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/nginx.conf:14 nginx: configuration file /etc/nginx/nginx.conf test failed This is my ...
0
votes
1answer
13 views

nginx split large configuration file

My nginx default configuration file is becoming huge. I'd like to split it to smaller config files, each including only one, maximum 4 locations to each file, so that I can enable/disable them ...
0
votes
0answers
18 views

Rewrite rule with nginx returns a 301 to Cloudfront

I am trying to figure out why this rewrite rule returns a 301 to Cloudfront instead of returning the image. server { [...] rewrite ^/images/filter/(.*)$ /filter.php?url=$1 last; [...] } ...
0
votes
2answers
29 views

Manipulate .conf file to rewrite https properly

I'm having a nginx server and a domain, example.com. Each customer has his own subdomain, like wsb.example.com etc. Their content changes via PHP, but all subdomains get redirected to the same folder ...
0
votes
2answers
32 views

Real trouble over an expired SSL certificate

I renewed my SSL certificate at a very well known company, who screwed up my order. After it was righted, I received several certificate files with no instructions: MY.SERVER.COM.crt ...
0
votes
2answers
74 views

ELK stack: Can't load Kibana 4

I have installed Elasticsearch, Logstash, Kibana and Nginx following this guide, exept I used the latest version of everything. ...
0
votes
0answers
11 views

mina deploy not creating rails app files

I have a server with nginx and phusion passenger setup. nginx is running well. Also, phusion passenger is running (checked with passenger memory-status) I tried setting up mina, it went well noting ...
0
votes
0answers
10 views

Nginx return status code from regex grouping

How can I have nginx return a status code from a regular express match? location ~* "^/([\d]{3})" { return $1; } Returns an error 'invalid return code "$1"' I'm trying to setup a test ...
-1
votes
0answers
17 views

NGNIX server for static content is too slow

I'm new to NGNIX server. Perhaps someone can help me to solve the issue. Here is my server configuration file: server { listen 80; server_name static.myhost.com; access_log ...
0
votes
1answer
22 views

Nginx proxy_pass failover to an url instead of a server

I have an endpoint requesting my database through Symfony : api.domain.com:80/item/123 When this endpoint is requested, Ngninx will proxy pass it to a nodejs server able to get the item from ...
-1
votes
0answers
25 views

Why do I need the nginx uwsgi module?

I have a nginx server that has two django apps running behind it. Django's manage.py happily starts a webserver on some port over localhost. Why should I not just have nginx reverse proxy the ...
-4
votes
1answer
20 views

What is the differnce between keep alive and http pipeling

What is the difference or relation between keep alive and pipelining ? Are they both same or different. Is there any way to enable keep alive but disable pipeling as I'm using only POST method and ...
0
votes
1answer
32 views

After upgrade of NGINX and PHP-FPM, PHP stopped working and there is no error anywhere

PHP-FPM is running, NGINX is running. NGINX does read the socket for PHP-FPM. I stopped PHP-FPM and I got bad gateway error. However, nothing gets displayed. I have checked nginx/error.log and ...