nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

learn more… | top users | synonyms

4
votes
1answer
8k views

Nginx can't find PCRE library on Ubuntu Server

I have been trying to get a Passenger and Nginx setup to work with php files but I am having problems with the PCRE regular expressions library. Install all went fine so I'm assuming it found the ...
0
votes
1answer
726 views

8080 port in nginx not able to serve for certain wordpress website

I don't know if it's related to the domain records pointing rules. I configured for other website as well and they are fine. I used 8080 as the port for the websites. But for this particular site, ...
2
votes
2answers
574 views

what if set x.domain.com and y.domain.com to the same ip address in DNS?

if I set x.domain.com and y.domain.com to the same ip address, Does it mean Nginx couldn't tell the differences between x.domain.com and y.domain.com? Is it impossible to map x.domain.com and y....
2
votes
1answer
976 views

Can't install Gearman on Red Hat

I'm having problems installing Gearman from Red Hat on Amazon. I couldn't find a repo so I downloaded Gearman version .25, installed it and installed drizzle from their repo using: yum install ...
10
votes
1answer
19k views

Nginx: Serve static files out of a given directory - one level too deep

I'm pretty new to nginx configs. I'm having some difficulty with a pretty basic problem. I'd like to host some static files at /doc (index.html, some images, etc). The files are located in a directory ...
0
votes
1answer
1k views

Why is redirecting inside the nginx config file inefficient?

Can someone explain why they say this in the nginx documentation? Why is it "cumbersome and ineffective"? A redirect to a main site People who during their shared hosting life used to ...
0
votes
1answer
493 views

Why would I want to connect nginx to uWSGI?

I'm reading about running uWSGI behind nginx: http://projects.unbit.it/uwsgi/wiki/RunOnNginx Why wouldn't you just expose the uWSGI application directly -- why would you put it behind nginx? (Is ...
0
votes
1answer
1k views

Trying to start nginx, but port in use. Installed it via passenger

I'm working on setting up a VPS with a Rails 3.1 application using nginx+passenger, and capistrano to boot strap it. At first, I installed nginx using a binary, forgetting that passenger installs it ...
0
votes
1answer
431 views

Authenticate system users in Trac running nginx or standalone

Is this possible to setup Trac to authenticate system users? For example users that are in trac group will have access to Trac. Is this possible to user /etc/passwd instead of Apache's .htpasswd?
1
vote
1answer
556 views

Easy install of PHP/MySQL/NGINX server on Linux

So I want to get my own server running but before I spend the money for one I want to make sure I can get the stuff I need installed. Is there any packages for linux like there are for windows to ...
0
votes
1answer
4k views

Uninstall nginx on Ubuntu 10.04.3 LTS remote machine

I was given a server to setup, but this server was not reset, and the provider is quite slow on resetting it, so I have to completely uninstall some stuff it has, one of which is nginx. I had a few ...
5
votes
3answers
11k views

How to I get variables from location in nginx?

The location from nginx conf: location ~/photos/resize/(\d+)/(\d+) { # Here var1=(\d+), var2=(\d+) } How to I get variables from location in nginx?
3
votes
4answers
4k views

Configure Fedora 15 Linux to allow access via port 80 from other computers

I am trying to make my home server accessible to the whole web. I have installed Nginx on my Fedora 15 64-bit Linux machine, and it works with localhost but it doesn't work online or allow other ...
24
votes
5answers
21k views

How do I start nginx on port 80 at OS X login?

I installed Nginx using homebrew and after completing the installation the following message was displayed: In the interest of allowing you to run `nginx` without `sudo`, the default port is set to ...
1
vote
1answer
2k views

Rotate nginx logs every 30 minutes with logrotate

Can I rotate the nginx log every 30 minutes? Like: 10:30.log 11:00.log 11:30.log etc.
2
votes
2answers
2k views

Nginx Reverse Proxy Apache Benefits

Can anyone explain why putting up nginx and reverse proxying Apache is faster than just plain Apache? I've already moved all my static files to s3 (I heard nginx is better at handling static files), ...
4
votes
1answer
6k views

Subversion over https + WebDAV on nginx

I wonder how do I create SVN repo and let users access it over http[s] + WebDAV on nginx I did not find any good tutorials describing this process whilst there are a lot of answers on this scheme but ...
1
vote
1answer
1k views

How do I add /opt/nginx to my path variables, so I can use nginx in Mac OS X?

I installed nginx recently, and it is found at /opt/nginx... asking "which nginx" doesn't find nginx, and I can't figure out how to use nginx. I think it's because nginx is installed in the opt ...
3
votes
1answer
25k views

How to uninstall Nginx (installed from source) on CentOS?

I compiled Nginx now I want to remove or uninstall it. How can I do that? I usually don't install software by compiling it from source.
1
vote
1answer
529 views

What is the difference between using `root /dir/name` and `alias /dir/name` in nginx?

It seems like root and alias do the same things by definition, but for some reason when I use root, I get a 404, but it works fine when I use alias. Any ideas?
0
votes
1answer
3k views

nginx + OpenSSL Install

CHANGES LICENSE README conf contrib man openssl-1.0.0d pcre-8.12 src/ CHANGES.ru Makefile auto configure html/ objs/ openssl-1.0.0d.tar.gz pcre-8.12.tar.gz ./configure ./configure --with-pcre=/pcre-...
1
vote
1answer
1k views

Command to update terminal as file is updated

I'm looking for a way to have the access log for my nginx install scroll up the terminal as lines are added to the log. I think I need a command like cat access.log | diff but I'm not sure exactly ...
16
votes
2answers
21k views

How do erase the contents of a error.log file but keep the file intact

I want to erase the contents of the file error.log (nginx error log file), but I don't want to actually delete the file. is this possible? running ubuntu
0
votes
1answer
3k views

update-rc.d yields error

# /usr/sbin/update-rc.d -f nginx defaults update-rc.d: using dependency based boot sequencing How to fix it?
1
vote
1answer
250 views

Passenger + Nginx performance drops very quickly…?

So I have an Amazon EC2 small instance setup on Ubuntu with Ruby Enterprise Edition running on Passenger + Nginx. I set 25 Passenger instances and performance is dropping very quickly relative to the ...
0
votes
2answers
1k views

Why does nginx redirect to a strange URL?

I had just set up nginx on my server. I have PHP and everything working okay. Except when I try the URL http://xxx.xxx.xxx.xxx/123 I get redirected to http://_/123 but when I try the url http:/...
1
vote
2answers
7k views

NGINX, FastCGI PHP with FTP Access, How to setup users/permissions?

I have been playing around with Ubuntu, NGINX, PHP, etc. recently. I want to be able to setup FTP and user(s) ... the problem I am having is that FastCGI PHP runs under www-data (user) but when ...