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

learn more… | top users | synonyms

7
votes
1answer
8k 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
770 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
282 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
865 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
346 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
330 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 ...
3
votes
2answers
2k 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?
1
vote
4answers
3k 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 ...
11
votes
5answers
12k 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
833 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.
1
vote
2answers
1k 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), ...
3
votes
1answer
3k 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
659 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 ...
2
votes
1answer
21k 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
150 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
2k 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 ...
1
vote
1answer
629 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 ...
8
votes
2answers
7k 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
2answers
2k 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
191 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
572 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 ...
0
votes
2answers
4k 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 ...