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

learn more… | top users | synonyms

0
votes
0answers
564 views

Configuring phpmyadmin.site.com subdomain with nginx

I have a Rails site being served by nginx. I want to also have phpmyadmin for the same data. My phpmyadmin is installed in /use/share/phpMyAdmin I wrote this in in my nginx.conf file: server { ...
2
votes
0answers
916 views

How can I pass environment variable in nginx conf?

I have nginx conf as location /static/ { alias $HOME/code/python/vlists/vlists/static/; # if asset versioning is used if ($query_string) { expires max; ...
1
vote
1answer
507 views

Nginx HTTPS when only matching admin subfolder [closed]

I have managed to get all /admin requests redirected to https by: server { listen 80; location /admin { rewrite ^ https://$server_name$request_uri?$args permanent; } } But ...
1
vote
2answers
371 views

Renaming Nginx 1.3.5 Server: response header

In nginx 1.2 & 1.3 you can modify the source to change the name: src/http/ngx_http_header_filter_module.c (lines 48 and 49): static char ngx_http_server_string[] = "Server: Not Nginx" CRLF; ...
0
votes
1answer
310 views

Running nginx as the current user

On my linux PC, I'd like to run nginx as whatever user I'm logged into when I start it, and I'd like it to look for config files in the home directory of that user. Is there a way to install nginx to ...
2
votes
1answer
5k views

Nginx rewrite rule to remove path node

Let's say a user tries to access a given image on my website using the following url: http://www.mywebsite.com/blog/image1.jpg?someParam=100 i need a rewrite rule to this, removing the 'blog' node ...
1
vote
1answer
290 views

Can I make my nginx error_log save the whole stacktrace?

I have an Django app running on fastcgi and when there's an exception it seems like it getting cut off in the logs error.log: 2012/06/10 19:25:55 [error] 1416#0: *19219 FastCGI sent in stderr: ...
0
votes
2answers
936 views

Nginx-Remove WWW from HTTPS

I would like to ask for some help with the following Nginx configuration, so that URLs such as https://www.mywebsite.com get rewritten as https://mywebsite.com. I am currently using the following ...
-1
votes
1answer
167 views

Web Server for SVN+PHP+Django+Rails [closed]

Foreword: I am not asking for the differences between Nginx and Apache, nor do I want to start a "which one is better discussion. I would like to ask for help with choosing the most adequate solution ...
0
votes
1answer
2k views

how can I uninstall NGINX because it causes havoc with my yahoo homepage

I am using windows 7 for pc. How can I remove NGINX? It's interfering with my access to e-mail.
0
votes
2answers
1k views

Cannot access my website from outside my localhost

I have test website on my system (MacBook Pro with Mac OSX Lion). The website is served by nginx listening on port 8000. The listen configuration is listen 8000 default, so it should be open to accept ...
0
votes
1answer
167 views

Is there an equivalent of x-accel-redirect for serving pages instead of files?

There is an X-Accel module in nginx that allows to serve files by returning the X-Accel-Redirect header to the nginx server. Is there a way to serve pages like this? For example, I have a web ...
-1
votes
1answer
2k views

Best Linux Distro for web services (Nginx & node.js) on laptop: Compaq 6710b? [closed]

I haven't used Linux in 5+ years, aside from d/l occasional system recovery CDs off DistroWatch, so I don't know the current landscape. Related postings on this forum are several years old & may ...
2
votes
2answers
91 views

Should web servers be run by a special user?

I'm pretty beginner-level at Linux, and one thing I've always wondered was whether things like Nginx / uWSGI (for a Django project) should be run under a user that was created for that purpose, or ...
2
votes
1answer
2k views

How to set up two Node.js apps in one nginx config

Scenario: First node.js app is running on 127.0.0.1:8888 and serving only one route 'domain.com/track.gif' Second node.js app is running on 127.0.0.1:3000 and it's a dashboard for stats gathered by ...
1
vote
1answer
1k views

running perl/cgi-bin in Nginx server on ubuntu lucid

Can you give me an exact tutorial on how to run perl on nginx server? I am able to run perl on apache and lighttpd, but I want to run it in my nginx server because I want to run a file hosting script ...
0
votes
1answer
315 views

How I can verify that nginx reverse proxy + apache works correctly?

I've installed nginx reverse proxy + apache2+mod_php. How I can verify that I've made everything right and nginx works with static content only and apache2 with php only? Web-application is Magento. ...
1
vote
2answers
318 views

Does apache + nginx and sphinx provide benefits when deploying Magento

Can any provide a method where I can establish which of the following configurations would provide the best performance for a Magento based site: apache + mod_php apache + mod_php + nginx (as proxy ...
1
vote
4answers
3k views

How do I delete nginx?

I don't know how this program got on my machine, but it is giving me nothingn but grief. How do I get it off my computer along with Mystart.com? They are not in my control panel or anywhere else I ...
0
votes
2answers
575 views

Nginx hangs on SSL

I'm running Nginx on an Amazon EC2 micro instance, with some some backend node processes and mongodb. Recently, I had about 5k hits in about 40 hours, and after a little while,the SSL site hung on ...
0
votes
1answer
345 views

How to fully reinstall a package on debian

i accidentally removed the /etc/init.d/nginx file and the /etc/nginx folder. how can i fully reinstall nginx with reverting all confs to defaults?
3
votes
1answer
5k 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
508 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, ...
1
vote
2answers
388 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 ...
2
votes
1answer
699 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 ...
7
votes
1answer
9k 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
839 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
316 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
928 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
366 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
356 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
3k 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 ...
14
votes
5answers
13k 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
888 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
4k 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
721 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
22k 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
198 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
732 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 ...
9
votes
2answers
8k 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
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
201 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
618 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 ...