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

My VPS crash durring high traffic

I m hosting my website on a VPS and during high traffic my server crashe and goes down until i restart both nginx and apache so i wanna know if it s the vps material or only the configuration VPS ...
0
votes
0answers
6 views

how to make NGINX read static files directory when proxy passing

Here is my nginx configuration: server { listen 80; server_name example.com; location /assets { root /var/www/frappe/sites/assets; try_files ...
0
votes
0answers
4 views

Getting rid of a directory in the URL in Nginx

I have been searching around for this answer, but I can't find the one that fits my situation. So currently I have a URL that looks like: http://localhost/templates/verify but I want it to look like ...
2
votes
0answers
14 views

Configuring SSL on Nginx Reverse Proxy for GitLab

I am having a small issue in my personal gitlab setup. I wanted to redirect all traffic that comes from http://gitlab.example.com to https://gitlab.example.com. SSL is indeed working on ...
1
vote
0answers
11 views

Social networks and Cloudflare free SSL

Let me expose my setup and problems. Maybe some of you will have ideas for me to test. Setup On Digital Ocean : I have one web server running a web site with NGINX in the front (Ruby on Rails ...
-2
votes
1answer
26 views

Run Python and Php under same server

I am trying to run python on main domain and a wordpress blog in sub-directory. Is it possible to do so? Currently the they are running good in sub-domains i.e http://main-domain.com and ...
0
votes
1answer
6 views

Nginx Server stopped working after installing ngx-pagespeed mod

I had NGINX running fine on my local machine and tried to install the Google Page Speed module by first uninstalling nginx and following the re-installing from source as Google suggests. Now NGINX ...
0
votes
0answers
7 views

nginx proxy_buffering and send response to client immediately

To break the question down to one sentence: Is it Possible to turn on proxy_buffering in nginx, but sending the response of the backend server immediately to the client when the client is fast enough ...
1
vote
0answers
13 views

nginx websocket reverse proxy keeps return 200 instead of 101

I'm currently trying to have a hack.chat on my personnal server working. For those who doesn't know this brilliant thing, check this https://github.com/AndrewBelt/hack.chat Long story short, it ...
0
votes
0answers
6 views

configure pf.conf to NAT http / https to docker container running nginx

I have setup FreeBSD 11-CURRENT runing docker in a jailed environment as per https://wiki.freebsd.org/Docker When trying to deploy NGINX as per ...
0
votes
1answer
14 views

nginx redirect localhost and subdomain

I am trying to put a development server in place on the same server as the production server. The two will run on different ports, and one will be accessible via prod.example.com and the other via ...
0
votes
1answer
15 views

Monit can't restart nginx

I've got monit up and running on an Ubuntu 12.04 server, to monitor nginx, but I can't get it to successfully start nginx up again. My setup is thus: the monit config file is: -rwx------ 1 root root ...
0
votes
0answers
18 views

nginx spam 404 errors

My server is spammed by multiples XXX domains, there is a lot of 404 errors in my logs and i can't find the solution to stop that. 2015/07/31 09:13:20 [error] 7070#0: *610 open() ...
0
votes
1answer
39 views

Is there a cloud-based reverse proxy solution in AWS?

The system I have an API deployed on EC2 machines on AWS. Incoming HTTPS requests are passed to an elastic load balancer. The load balancer handles the SSL, and passes the request to an Nginx ...
1
vote
1answer
21 views

Nginx cant write in folder

I cant get wordpress to write on wp-content. According to my nginx.conf: user www-data; Then I just did: chown -R www-data /var/www/blog/wp-content And check everything was correct: ...
0
votes
0answers
7 views

How deploy api loopback to nginx server [on hold]

How deploy in url: api.example.com/api-1/ from my git repositories ssh://git@example.com:7777/home/git/api-1/ It is my nginx config: server { listen 80; access_log ...
0
votes
1answer
16 views

nginx geoip redirect for first time only leads to redirect loop

I'm trying to configure nginx to perform geoIP checks on first-time visitors only. The idea is that first-time visitors should be redirected to the page version which has been customised for their ...
0
votes
0answers
10 views

Perl scripts stopped working after Debian 8.1 upgrade

I am currently playing around on my dev server, to try and get it running the latest Debian (Jessie). I've got it all upgraded using this tutorial: ...
0
votes
0answers
9 views

nginx continually returns 503, even after the server it's proxying recovers

I have nginx proxying a different service using proxy_pass. The backend service will ocassionally crash (i.e. the process stops). When this happens, nginx understandably returns a 503. But I have ...
0
votes
1answer
29 views

Switching from nginx to apache with wordpress

I have recently switched from nginx to apache. Everithing went fine since i checked out my wordpress website. The homepage is going well, and also the admin area, but subpages with permalinks ...
0
votes
0answers
19 views

Nginx fails to load static after putting caching configuration

I am trying to implement leverage browser caching for nginx. But when i insert the code inside conf file static files are not served by nginx showing 403 permission denied error. This is my conf file ...
0
votes
0answers
16 views

Many php-fpm processes created and they do not go away

I have PHP (5.5) using Laravel framework on NGINX with PHP-FPM. Here is what I do. I have a script myscript.php <?php while(true) { @file_get_contents('http://myserver.com/api/data'); } ...
0
votes
1answer
20 views

Place nginx frontcontroller out of webroot

Just as an experiment, I was trying to remove my index.php from the webroot in nginx and directly point to app.php, as the only thing the index file does is this: <?php chdir(dirname(__DIR__)); ...
0
votes
0answers
9 views

nginx on debian wheezy and TLS > 1.0?

Hi I already searched for some hours, but I only found solutions, where they had used older nginx/openssl-versions. My problem is: How can I activate TLSv1.2 in nginx in that way, the client will ...
0
votes
1answer
37 views

How to configure nginx for multi-site reverse proxy?

I'm trying to configure nginx as a reverse proxy for two websites on the same server. This is what I'm doing: upstream alpha { server localhost:49212; } server { listen 80; ...
-2
votes
0answers
13 views

nginx http substitute module

I'm trying to figure out where ./configure is. The setup guide says run the below: Installation To install, get the source with subversion: git clone ...
0
votes
1answer
34 views

What functions are preferred to be disabled to increase webserver security? [on hold]

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
28 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
15 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 naxsi, I could not find anywhere to config naxsi to ...
-2
votes
0answers
19 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
36 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
17 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
19 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
12 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
23 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
15 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
10 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 ...
-1
votes
0answers
18 views

Nginx with Python and Wordpress same server [duplicate]

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
22 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
41 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
16 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
16 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
27 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
11 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
22 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
17 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 ...