nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

-3
votes
0answers
9 views

How do i remove .html in Nginx? [on hold]

Alright everyone, i'm new to Nginx and i want to change example.com/blah/blah.html to example.com/blah/blah I'm brand new to Nginx, so in depth detail would be amazing! :D Thanks!
0
votes
0answers
16 views

Nginx rewrite parameters

Got my webserver running Nginx, and i want to rewrite the params so i can use my PHP MVC project. I need to rewrite the url parameter so that i can enter http://www.domain.com/home/login, as home is ...
0
votes
0answers
12 views

Unable to start nginx on docker with mounted volume

I'm trying to create a container with a mounted volume so that nginx can use my custom config files. However, the container doesn't start up. docker-1.6.0 run --name a2 -p 443:443 -v ...
1
vote
0answers
17 views

JSF stylesheets missing with nginx

I developed a simple JSF application, using Glassfish4 as the application server. Currently it has only one page with administration things. When I run this on localhost everything seems to be in ...
0
votes
1answer
21 views

nginx reverse http proxy not caching php-generated images

I'm testing creating a cache in nginx and have it working great under both directories I have set up except the following: When I try to cache a php-generated image, it simply acts as a proxy to my ...
0
votes
0answers
10 views

Nginx not reading config file [on hold]

I am using nginx on Mac, I installed it using Homebrew. nginx was working fine until this morning. Now, after a reboot, it doesn't read my nginx.conf anymore and loads its default index.html. If I ...
0
votes
0answers
14 views

PHP5-FPM - Access Denied after Update

i updatet my PHP5 FPM to PHP 5.4.42-1~dotdeb+7.4. But after that i become now the error Message FastCGI sent in stderr: "Access to the script '/var/www/mysite/index.html' has been denied (see ...
-2
votes
0answers
22 views

VPS hosting sharing

I'm going to provide a small PHP website hosting for a couple of friends. hosting should be on my VPS they upload their stuff with FTP they can access their website via their domain My problem is, ...
0
votes
0answers
16 views

Internal Server Error with Nginx and uWSGI

I'm trying to host an app using Nginx on Linode.com but I'm stuck early on uWSGI config. I've used "Getting Started" guide and "WSGI using uWSGI and nginx on Ubuntu 12.04 (Precise Pangolin)" guide ...
0
votes
1answer
20 views

Nginx - php script display as text

i was create LEMP on my centos VPS my problem is when i run php script, part of script display as text and not work attached image: http://i.stack.imgur.com/QS0qY.png my nginx config: server { ...
1
vote
0answers
17 views

Dynamic include Nginx config snippets for vhosts

I try to configure vhosts with and without additional per-vhost config with nginx. I think of something like this: server { listen 81; server_name ~^(www\.)?(?<sname>.+?)$; root ...
0
votes
0answers
25 views

How to proxy pass some URLs to one place, and the rest elswhere, in Nginx?

I have several web apps hosted in tomcat. I use Nginx to proxy pass requests to them. I want to send all the requests to one app when url doesn't match with the other app urls. I wrote a Nginx config ...
-1
votes
1answer
16 views

NGINX Url Rewrite for PHP Variable

How would I go about making a url like: http://example.com/test123 go to a url like http://example.com/?code=test123 My server runs Nginx, and a lot of the documentation on the web is for ...
-3
votes
1answer
28 views

How do you restart logging after deleting an NGINX log? [on hold]

I deleted my NGINX log because it was very large, thinking that NGINX would automatically create a new one in its place. It didn't, and now I don't have logs. The file was previously located at ...
0
votes
0answers
13 views

application basic authentication behind nginx [on hold]

I need some hard setup: I have nginx->ruby_app and my ruby_app must authenticate users with basic auth. How I can deliver user:pass to backed and perform authentication? Ruby app is querying mysql. I ...
-1
votes
1answer
35 views

502 errors on WordPress / nginx / php5-fpm

I've looked through lots of other Server Fault and Google results that all have talk about generally similar situations, but I can't quite find the insight that I'm looking for. I would appreciate any ...
0
votes
1answer
21 views

uWSGI is ignoring uid, gid and chown-socket

I'm trying to use uWSGI with nginx. The root problem I am having is that I'm getting "No such file or directory" from nginx trying to connect to the uWSGI socket file. When I use the following ...
0
votes
0answers
29 views

Setting proxy_cache_bypass on NGINX only for HTML Content

We are currently using proxy_cache_bypass directive on NGINX to bypass caching when a cookie is set. This is our code: proxy_cache_bypass $cookie_user; However, we only want the server to bypass ...
0
votes
0answers
16 views

Nginx: Optimal map_hash_max_size and map_hash_bucket_size for 1M map?

I have 1M static rewrite rules and using this map configuration. How to determine the optimal values for map_hash_max_size and map_hash_bucket_size? I want to optimize for memory consumption. The ...
0
votes
1answer
24 views

Can't increase timeout on nginx with php-fpm

Our nginx refuses to increase the timeout for a request from the default of 60 seconds. I've already set the following parameters, but the server still gives me 504 after 60 seconds: ...
0
votes
1answer
34 views

How can I have nginx serve Wordpress at /blog, without proxy_pass?

I've posted this question on WP.SE, but got no replies. In the meantime I figured a solution involving proxy_pass, but it comes with a few downsides. I have a subdomain installation of Wordpress that ...
0
votes
1answer
33 views

Two get parameters rewrite in subfolder

I have a site on domain.de/webinterface/. There is a index.php with two get parameters (page & user) Now i want that domain.de/webinterface/user/Niklas redirects to ...
2
votes
1answer
30 views

Clarification of netcat result

I've been trying to debug an issue on our servers and Im confused by this response from netcat. Can anyone explain why Im getting these 2 contradictory messages when checking to see if a port is ...
1
vote
2answers
9 views

How can I put snort in front of nginx server

I want to prevent attacks to my nginx server. How can I proxy the requests through snort to nginx server. NFQueue's are a solution.I am able to pass packets to snort using the following rules sudo ...
0
votes
1answer
27 views

nginx log entries out of sequence, possible to fix?

I have an nginx log parser which relies on fact, nginx log entries placed in sequential order. But from time to time I have log like this: [2015-07-01T08:41:59-07:00] https "GET ... ...
1
vote
0answers
40 views

Nginx: strip cookie from cached content

Trying to replace Apache by Nginx as a web proxy in front of some Tomcat servers, dealing with Set-Cookie JSESSIONID is proving to be challenging. Our Tomcat content is served with Cache-Control and ...
1
vote
1answer
32 views

nginx suspicious symbols warning in my nginx config file

My nginx configuration file is given below. server { listen 80; server_name http://hg.rawdatatech.com; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; ...
0
votes
0answers
16 views

nginx FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream

i use nginx first./etc/nginx/sites-enabled/default config : server { server_name 45.33.54.201 45.33.54.201; listen 82; # ipv6only=on; limit_conn one 20; ...
-1
votes
0answers
9 views

500 error on a rails unicorn app with no logs [closed]

here is my unicorn.rb working_directory "/var/data/app/start" pid "/var/data/app/start/tmp/pids/unicorn.pid" stderr_path "/var/data/app/start/log/unicorn.log" stdout_path ...
0
votes
1answer
20 views

Cacti alias on Nginx

I am trying to run Cacti on Nginx as alias, however it returns 404 when I set the correct alias path. The strange thing is that if I set another path it loads the files. Cacti path is ...
0
votes
0answers
16 views

fix nginx forwarding slashes and get params

(Cross posted from stackoverflow...) I keep getting a strange issue on nginx right now. I have two nginx servers, one hosting content that I want to forward to the other server. The one that is doing ...
0
votes
0answers
9 views

Secure Port with Nginx Web Server Authentication auth_basic

I am trying to secure the login URL of my website (Ajenti control panel) with auth_basic authentication. I access the site like this: https://myajentiinstallation.com:8787 In the file ...
0
votes
0answers
25 views

Nginx, gitlab, subdirectory, alternate port. What do I do? [on hold]

I've installed the Gitlab-ce installer, which has it's own nginx server. That server is accessible via. https://example.com:6443 How do I make a proxy from: https://example.com/git/ to ...
0
votes
0answers
5 views

VirtualBox shared folders returning file not found when loading over HTTP [migrated]

Hi I have a VirtualBox image which I am starting with vagrant and mounting two shared folders. The folders mount without a problem and are visible when I SSH to the guest machine, but when I try to ...
1
vote
0answers
31 views

Application layer firewall for WebSockets?

My team has built an intranet portal in Amazon AWS for a client, and on it, we have used WebSockets to do things like notifications and other minor stuff. We mostly send events from the server, but we ...
0
votes
1answer
27 views

Nginx rewrite downloads php instead of running it

I have the following code to redirect users visiting login.php to another page: http { .... geo $bad_user { default 0; 1.2.3.4/32 1; 4.3.2.1/32 1; } server { .... location = /login.php { if ...
0
votes
0answers
33 views

nginx behind reverse proxy 504 Gateway Time-out on form submit

I have a problem with nginx. When I use the site directly everything works fine but as soon as I setup a reverse proxy (doesn't matter if its another nginx or haproxy) I get 504 Gateway Time-out when ...
0
votes
1answer
9 views

Redmine Base URI /redmine with nginx

I want to do exactly that but with nginx server I wrote below settings but login pages like /redmine/login redirects to /login Please assist. location /redmine { proxy_pass ...
0
votes
0answers
15 views

Using goaccess to figure out cause of increased traffic

I have an Ubuntu server hosted by Linode. A few days ago I got a notification that my Disk IO rate was higher than normal. I am trying to determine what they root cause of this is and whether I need ...
0
votes
2answers
21 views

What would be a portable nignx HTTP access log format to use with nginx?

I am looking for a way to store that logs in a common format so they can easily be recognized and parsed by most tools. I am interested about a format that is automatically recognized by goaccess ...
2
votes
1answer
20 views

Nginx php-fpm, try_files and GET params

I'm having a problem getting nginx configuration to work. Seems like everything works fine but my php script does not receive GET parameters. The most relevant link I get on my issue is this one nginx ...
1
vote
1answer
33 views

nginx no speed limitation for a connection

I have a server with nginx installed on it to serve some files for downloading. I also didn't change default configuration of nginx. Problem is that when I try to download from this server it seems ...
0
votes
0answers
14 views

nginx push request forbidden

I'm running a local git server using nginx but i'm getting a problem in my push request. i can clone from my repo, after that when i commit and try to push it back my i get a 403 Forbidden error ...
0
votes
0answers
9 views

Nginx Startup Script Hanging [duplicate]

I'm having to run the nginx startup script in the background, or it does not return to the shell when run - it does this through either service nginx start .. or simply running .. ...
2
votes
1answer
51 views

systemctl Failed to parse kill mode, ignoring mixed

On CentOS 7 I wanted to check the status of the nginx service: # systemctl status nginx -l nginx.service - The nginx HTTP and reverse proxy server Loaded: loaded ...
-3
votes
0answers
14 views

How to store “fastcgi_cache” indefinitely? [closed]

And only refresh it when backend data did some changes? Using nginx 1.9.2 and PHP-FPM 5.6.10. Thanks!
0
votes
0answers
14 views

nginx auth_request configuration

I'm running nginx and I wanna configure it to authenticate via a python script that will look up in my database. I need to receive the password and username in my python script but I can't figure out ...
0
votes
1answer
45 views

Nginx log shows suspicious directory access!!! How to block them?

On my Nginx log recently i have noticed 100's entries like this where a directory search was executed with error, because those directory does not exist on my webserver. now, how can I block them once ...
1
vote
1answer
99 views
+50

502 errors on random (not all) pages

A few weeks ago I noticed in the Google Webmaster tools that a few of my URL's were returning 502's. One such URL is http://www.sau.com.au/forums/topic/437438-around-the-bay-wrap-up/ This URL ...
1
vote
1answer
35 views

Nginx hanging on restart

I'm having to run the nginx startup script in the background, or it does not return to the shell when run - it does this through either service nginx start .. or simply running .. ...