nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.
0
votes
0answers
6 views
Nginx proxy pass php index problems
I am having slight issues making my indexes work with nginx serving static content and passing php to apache on a different server.
Basically if I need it to try index.php on the backend apache ...
0
votes
2answers
16 views
Nginx yum update checksum error on CentOS5 for CentOS6 package
I'm getting checksum error when doing Yum update due to Yum looking for Nginx package from CentOS 6 repo (I'm using Centos 5.6).
Below is the error:
...
0
votes
1answer
17 views
install nginx on centos 6 but folders isnot working give me 404 not found
I've install Nginx on CentOS 6 without control panel following these steps.
I got Nginx installed successfully, see this link.
But I still have a folder that isn't showing and giving me "not found ...
-1
votes
0answers
16 views
Multiple NodeJS sites on Linode [closed]
So I have a linode box and I want to set up multiple nodejs apps that both would be accessible from a different domain name.
What is the best way to do this. If anyone has good tutorials that would ...
0
votes
1answer
29 views
Change root of server block in nginx?
I moved to a cheaper VPS host in which my prior config was set up to display my files from /home/sam/www/website/index.html
But I can't seem to get this to happen on the new server, the default ...
1
vote
1answer
16 views
How to tell php-fpm to send php error log to the nginx error log?
When I am using apache/mod_php, the PHP error will appear in the apache's error log.
Now, I am using php-fpm with nginx via fcgi, is it possible to have the PHP error log in the nginx error log as ...
0
votes
1answer
15 views
Plesk Apache Config adding proxy pass vars to a domain
I have plesk 11.0 based manage domain which i need to add a openfire port to connect to be hidden as below
ProxyPass /xmpp-httpbind http://xxx.com:5280/http-bind
ProxyPassReverse /xmpp-httpbind ...
0
votes
0answers
16 views
AWS Elastic Load Balancing to 2 Nginx web servers Not Working
On AWS, I have two Nginx web servers serving up a WordPress site. The two web servers are connect to and NFS server. All servers are working great, online, and healthy.
I setup AWS Load Balancing ...
-1
votes
0answers
13 views
Nginx & Wordpress issues - Invalid post type [closed]
I'm having a hard time with Nginx & Wordpress. Specifically I installed/configured WP on http://www.busybabybook.com/blog/ and all seems to be ok EXCEPT for the fact that in the wp-admin/ I can't ...
0
votes
2answers
29 views
Why is this nginx rewrite apparently duplicating pre-existing configuration?
I am new to nginx, I have read some of the documentation at wiki.nginx.org, as long as I know the try_files sentence will do exactly as it says, it will search a file in the order given, as I see this ...
0
votes
0answers
11 views
Using Nginx max_fails & fail_timeout in practice [closed]
According to the doc [1], the default is
max_fails = 1
fail_timeout =10s
my understanding is when you have one error in the backend, the backend is marked as inoperative for 10s, but 10s later, ...
0
votes
0answers
12 views
Setup trac 1.0.1 with nginx reverse proxy
I'm trying to setup trac 1.0.1 behind an nginx reverse proxy. Trac is listening on port 8000 internally, and nginx should listen to port 80 on < ipadress >/trac.
I managed to setup nginx such that ...
0
votes
0answers
31 views
nginx wrong IP when checking connections limit
I have lot of times the following line appearing in the nginx error log. This is causing the 50x error appearing to the visitors of the site. We have a multilanguage site that has URL ...
0
votes
1answer
16 views
Show a 404 for not-found subdomains instead of showing root domain's content
I'm using nginx. What I'm trying to achieve:
A root domain domain.com which gets contents from /var/www/domain.com
A subdomain sub.domain.com which gets contents from /var/www/sub.domain.com
Any ...
0
votes
1answer
21 views
Deny access with https for some unsecured domains on nginx [duplicate]
I have nginx web server with virtual hosts on one IP address. Some domains working with http: ex1.com, ex2.com, ex3.com, and one domain with https: se1.com.
When I try to use httpS on ex1.com, ex2 or ...
0
votes
0answers
35 views
nginx hotlink protection on Centos 6
I want to configure my nginx to forbid images hotlinking to other websites. Or better said I want to link image from imgur with some message instead of someone using my badwidth. This is the code I've ...
0
votes
1answer
22 views
nginx simply refuses already defined IP address on catch-all directive
I have this catch-all:
server {
listen 80 default_server;
server_name _;
return 444;
}
Now, Let' s say we have two IPs called 1.2.3.4 and 1.2.3.5.
Well, Let' s say ...
1
vote
1answer
25 views
Creating a fallback error page for nginx when root directory does not exist
I have set up an any-domain config on my nginx server - to reduce the amount of work needed when I open a new site/domain. This config allows me to simply create a folder in /usr/share/nginx/sites/ ...
0
votes
2answers
13 views
Nginx on Windows with ASP.NET and the Microsoft .NET framework?
Question:
Is it possible to use nginx on Windows to serve ASP.NET / ASP.NET MVC pages using the Microsoft .NET framework ?
I know one can do it with mono-fastcgi, but I was wondering if it is ...
0
votes
2answers
26 views
Setting up Nginx and uWSGI on different servers
I've done before many setups of both uWSGI for django applications and flask for python-plugin under ubuntu along with Nginx as web server. I've always done it in one box..
As now, we are having a ...
0
votes
2answers
24 views
How to serve multiple locations from a single root?
I'm having nginx serve static files that map from uri paths to folder paths like:
www.tempuri.org/js <=> /var/www/plublic/js
www.tempuri.org/css <=> /var/www/plublic/css
...
-1
votes
0answers
13 views
Nginx: subdomain “host not found in upstream” error on start
I'm trying to configure a new subdomain to my site, with some very basic authentication. I've got a previous subdomain set up in the exact same way, and it's doing just fine. I c/p'ed the config ...
0
votes
2answers
35 views
How does lighttpd/nginx determine filetype of a file? (which method?)
I want to configure my lighttpd to serve some static files, with compression capability. The files are plain text but they have .bin extension. I have these lines in my lighttpd configuration:
...
0
votes
1answer
14 views
Nginx: set subdomain as part of 404 page address
I have a multi language site which have sub domains for every language. I want to use the sub domain as part the name of my custom static error page.
Example
error_page 404 ...
1
vote
0answers
25 views
PHP SSI with NGINX
I've got a really old website I'd like try running on NGINX instead of Apache. This site consists of many flat HTML files with sporadic PHP SSIs, such as:
<!--#include virtual="/some_file.php" ...
0
votes
0answers
16 views
How do we apply different routing rules based on a http parameter? [duplicate]
I am trying to achieve something like this:
location /location1/{
proxy_pass http://localhost:8080;
}
location /location2/{
proxy_pass http://localhost:9595;
}
Now when a request comes in, ...
1
vote
0answers
29 views
How can I serve up HTML and JSON with nginx during “maintenance mode”?
I've got an nginx config for a PHP web app and I would like to make it serve an additional purpose, and I can't seem to find a way to accomplish it. My current nginx config does the following:
...
0
votes
1answer
33 views
Can we jump to another location from a location in nginx? [closed]
I am trying to achieve something like this:
location /location1/{
if ($arg_api_key = a_valid_api_key) {
proxy_pass http://localhost:8080;
}
# else jump to location2
}
location ...
0
votes
1answer
27 views
Extracting matches in NGiNX with regex without if block
With NGiNX I get a string that contains information that I can extract content with regex.
But the only way I found that I could do this, is with if block. Is there any another way?
The extracted ...
1
vote
2answers
49 views
How to send mail by primary IP?
In a Debian server, I added a second IP by the following configuration in /etc/network/interfaces
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 1.1.1.1
...
0
votes
1answer
31 views
NGINX + Codeigniter doesnt work can't access controllers and send parameters to controllers
I want to run codeigniter under NGINX but it just doesnt work. I want to be able to send a parameters to controllers methods. But so far I can not even access controller using the address ...
0
votes
0answers
23 views
Treat different static files with nginx in a concrete directory
I'm building an application where some files will be served by the app itself. I'm not good on configuring server side things, so my nginx configuration looks like this:
location ~* ...
0
votes
1answer
32 views
Can't get Codeigniter URLs working on Nginx
After successfully setting up nginx on my windows, another problem where I am stuck. Though, everything works as usual. I am able to access pages and PHP works fine but problem comes when I try to use ...
0
votes
2answers
30 views
Can't set up nginx but my config file seems alright
I have a server at 176.227.213.2. So I created a conf file for the default server (default.conf)
server {
listen 80;
server_name default 176.227.213.2;
location / {
root ...
0
votes
1answer
23 views
nginx not logging any error, no starting
After trying to duplicate a nginx to another, I worry about nginx not starting.
nginx -t says that the config syntax is ok.
In nginx.conf it's told to log errors: error_log /var/log/nginx/error.log;
...
0
votes
2answers
34 views
Can't get php-fpm with Nginx to work
Server: CentOs x86_64
/etc/php-fpm.d/webuser1.conf
[webuser1]
listen = 127.0.0.1:9001
listen.allowed_clients = 127.0.0.1
user = webuser1
group = webuser1
pm = dynamic
pm.max_children = 15
...
0
votes
1answer
19 views
Zend Framework won't work for URLs with trailing slash — how to configure nginx to rewrite URLs properly?
I am setting up an nginx server to be used with the Zend Framework. For the most part it works. However, if there is a trailing slash on the end of a URL, for example http://localhost/test/ vs ...
1
vote
1answer
29 views
nGinx Redirecting to https:// on all URL
I am trying to get the following to work so that no matter what you type in the URL bar you always go to "https://www.". So far www. does not go to https://www. and https:// does not go to ...
0
votes
1answer
21 views
Malformed nginx 307 redirect response?
I have an Nginx configuration that 307 redirects from http to https. There are existing client applications that connect to http and send data via POST requests. The clients are .Net services using ...
0
votes
1answer
25 views
Custom nginx configuration variables not being expanded
I am running nginx version 1.2.8.
It seems that $log and $elog in the below configuration are not expanded, and as a result, nothing is logged. Is that the problem, and how can I get them to expand?
...
0
votes
0answers
41 views
How to protect Nginx from HULK DoS tool
There is a tool called HULK (Http Unbearable Load King). It's a web server denial of service tool. It is designed to generate volumes of unique and obfuscated traffic at a webserver, bypassing caching ...
0
votes
2answers
36 views
Preserve http headers from Django using NGINX and Gunicorn
I'm setting some non-caching headers in a Django middleware to control caching of xhr request. Mostly because IE is caching ajax request heavily.
class NeverCacheXhrMiddleware(object):
"""
...
0
votes
0answers
39 views
Nginx workers as Ubuntu's www-data user - where to store temporary files? [closed]
I've been following along Dimitri Aivaliotis's Mastering Nginx book for setting up my own web server on an EC2 instance and I would like to adapt it to a default Ubuntu 12.04LTS AMI. The author ...
-1
votes
1answer
20 views
SSL secured account section, Subdirectory vs Subdomain [closed]
I'm currently running Drupal on an nginx server, and I also have a separate user account system running on account.domain.com. I purchased a wildcard SSL certificate to protect the login form, but the ...
-1
votes
2answers
26 views
How to add a module to already installed nginx? [closed]
I have installed nginx 1.4.0 from Ubuntu ppa. I have made all configurations so it works properly, but know i found out that i need some extra modules.
How can I add a module now? Please help :-)
0
votes
0answers
75 views
here is a redundant '/' in the url when I access my local site. why?
I have a web site setup with nginx and php-fpm. When I access my local site,the URL has a redundant '/' in it and part of the URL gets repeated
Example:
When I access "mydomain/admin.php", then the ...
2
votes
1answer
17 views
Problems setting a cookie from a machine proxied by nginx
For a project of mine, I need to wire up a long chain of machines that are essentially proxying the HTTP requests for each other. It goes like this:
Web client - A - B/C - D
When a request is made ...
0
votes
1answer
30 views
nginx / fpm and PHP_VALUE not working
I am trying to alter some php.ini values for a single site of my web server:
fastcgi_param PHP_VALUE "auto_prepend_file=/var/www/profile/external/header.php \n ...
1
vote
1answer
67 views
Nginx - Redirect request by GET parameters pattern
One of my servers was attacked by DDoS a couple of days ago and it lasted for 4 days. Below are the logs snippet of the request:
36.224.180.253 - - [14/May/2013:03:11:46 +0800] "GET ...
0
votes
0answers
33 views
nginx: How to debug an issue with port 80? (nginx-related)
I have been having trouble debugging my issues on my own local port 80 listeners when trying to set up an nginx webserver. I am simply just trying to see the vanilla "welcome to nginx" start page and ...

