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

learn more… | top users | synonyms

2
votes
0answers
2k views

Establish https on nonstandard port

I'm trying to estamblish https on port 55434 (different than standard 443). My nginx configuration looks like this: server { server_name example.org; listen 55434 ssl; ssl ...
1
vote
1answer
988 views

How to “try_files” on different domain using nginx?

How can i config try_files to "try" and search files on a different different domain? what i've tried: location ~ .flv$ { limit_req zone=one burst=2; root /; internal; ...
3
votes
3answers
3k views

How to remove double slash in URLS served by nginx?

I need to replicate the following Apache rewrite rules in nginx config. What is the nginx equivalent to : RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] Target environment is ...
8
votes
3answers
5k views

I can't open phpMyAdmin, get error 301 or 500

I've installed phpMyAdmin, but I can't open it on any browser: I get a 301 redirect(*) if I browse to http://localhost:8080/phpmyadmin. If I add a / to the end of the addres, I get a 500 error status ...
2
votes
0answers
516 views

PHP : curl is and Not working in ubuntu10.04 and Nginx

I am running Nginx server on ubuntu 10.04 I am using the php version 5.3.2 .I installed php5-curl using apt-get install php5-curl. Unfortunately the curl package is not displaying in phpinfo() . ...
6
votes
1answer
9k views

Permissions for SSL key?

I'm trying to set up a secure connection (https) in nginx. But I'm a bit worried about the private key's permissions, which aren't mentioned in any tutorial. Should I change them? To what?
0
votes
1answer
1k views

Unable to build Awstats report - permission denied on awstats.pl

I just installed a fresh copy of Awstats 7.1 on my server running CentOS 6.3 and nginx. When I try to run this command to generate the report: /usr/local/awstats/tools/awstats_buildstaticpages.pl -...
0
votes
1answer
70 views

I need some guidance on what to do next with my server

I have a server with the following specifications: HP DL180 G6 2 x Intel Quad-Core Xeon E5620 8GB RAM 4 x 2TB Hard drives running in a RAID10 NGINX running as download webserver It is connected at ...
1
vote
1answer
637 views

How to reinstall nginx from source? (was installed with apt-get)

I want to install this module. The problem is it requires that nginx is installed from source. I have it installed via apt-get install, and it is already serving web pages. So which steps would you ...
2
votes
0answers
478 views

Raspberry Pi, Mercurial and nginx

I am posting this here, as apparently, I am unlikely to get any help at raspberry pi. Please bear with me. I have a small problem with configuring Mercurial to work with nginx using unix sockets on ...
1
vote
1answer
347 views

regex redirection to safe url

I have several thousand URL's in a CMS formatted like: /post/en/1539/A+Week+in+Paris+61.html I'm moving all of the data to wordpress. Where the URL structure will be formated as: /2011/a-week-in-...
0
votes
1answer
153 views

nginx configuration reference filename

I'm setting up nginx + uwsgi. I plan to have multiple apps with different settings running on separate subdomains (e.g. sub1.example.com, sub2.example.com). One of the nice things about uwsgi, is ...
2
votes
0answers
336 views

how do I enable debug logging in php5-ldap

I have phabricator running on Ubuntu behind nginx and php5-fpm, and now trying to figure out why ldap logins fail. Is there a way to enable verbose logging of the php-ldap code? What file is the log ...
0
votes
1answer
685 views

Rewrite a specific path in xginx

I am trying to rewrite a specific path using nginx. I have setup my server using nginx/php-fpm/php and it is working fine. I have the following server configuration: server { listen 80; ...
3
votes
1answer
11k views

nginx doesn't log anything

I'm running a FreeBSD 9-Stable server, with nginx. My configuration is here: user www www; worker_processes 5; error_log /var/log/nginx/nginx-error.log; events { worker_connections 1024; } http { ...
2
votes
0answers
1k views

How to fix the authentication error “request-digest mismatch” using cadaver and WebDAV on nginx?

I use nginx 1.3.9 with the extensions nginx-dav-ext-module and nginx-http-auth-digest. The problem seems to only occur when I try to log in with cadaver, it’s possible to access the DAV share with ...
0
votes
1answer
43 views

Nginx configuration issues

I need nginx to serve a certain location for a certain directory request, for example: localhost/this_site to serve /path/to/this_site How can I make that work?
8
votes
4answers
4k views

Mac firewall blocking nginx (port 80) from external side

I installed nginx using ports and started it with sudo. Accessing the nginx welcome page from localhost works perfectly, however accessing it from an external computer fails. Doing an nmap on the ...
0
votes
1answer
571 views

HTML5 websocket-support for NGINX

I need websockets in a project for HTML5 and PHP, but it don´t works. I read something about that NGINX is not supporting them. Is there a possibility to install a plugin that brings me the support ...
1
vote
1answer
607 views

nginx: how to allow more than one session per client

Nginx by default waits for session to be closed until it opens a new session. this is a problem if a user tries to download more than one archive at once. How to disable or upper the limit? what i'...
0
votes
1answer
442 views

Nginx doesn't rewrite correctly when redirecting to the thin cluster

This is my nginx configuration: upstream local_thin_cluster { server 127.0.0.1:3000; server 127.0.0.1:3001; } server { #listen 80; access_log /usr/share/redmine/log/nginx_access....
1
vote
1answer
459 views

Port forwarding on Ubuntu Server 12 and Virtual Box

I need advice on how to forward to port 80 and how to make my VirtualBox service accessible to outside world. I can access the web server with my host computer and with putty. I'm following a ...
2
votes
1answer
5k views

How to serve static html from arbitrary url path in nginx?

I would like to serve example.com/mypage.html from example.com/mypage. Within nginx.conf I tried putting mypage.html in designated root directory and then location /mypage} alias mypage.html; } ...
0
votes
0answers
944 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
1k 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
845 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 can'...
1
vote
2answers
709 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; ...
1
vote
2answers
655 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 ...
10
votes
1answer
15k 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
593 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: "...
1
vote
2answers
2k 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
194 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
3k 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
2k 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
295 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
3k 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
99 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 ...
4
votes
1answer
3k 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
2k 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
432 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
384 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
5k 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
820 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 ...
1
vote
1answer
755 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?
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
723 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
572 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
967 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 ...