nginx

Nginx - Treats PHP as binary

We are running Nginx+FastCgi as the backend for our Drupal site. Everything seems to work like fine, except for this one url. http:///sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/smimage/index.php (We use TinyMCE module in Drupal, and the url above is invoked when user tries to upload an image) When we were using Apache,...

cakephp & nginx rewrite rules

Hi somebody please help me out, I’m trying to setup a cakephp environment on a Centos server running Nginx with Fact CGI. I already have a wordpress site running on the server and a phpmyadmin site so I have PHP configured correctly. My problem is that I cannot get the rewrite rules setup correct in my vhost so that cake renders pages ...

How can I reuse server configurations in nginx?

When configuring nginx with a site that has ssl, the examples I find online basically duplicate the location settings. Most examples only have the default root location so it's not that big of a deal, but when you have a few locations and rewrite rules in place duplicating this configuration gets messy to maintain. I've considered proxy...

Nginx Proxy for a GitHub Page?

We have a blog that we host on github with Jekyll; it is there : http://blog.superfeedr.com Ideally, I want it to be at http://superfeedr.com/blog/ because we need to add some AJAX and we need to avoid the "Same Origin Policy" problems. We use Nginx on our "main" webserver, and I have the following setup : location /blog/ { proxy_pa...

How to set the allowed url length for a nginx request (error code: 414, uri too large)

I am using Nginx in front of 10 mongrels. When I make a request with size > 2900 I get back an "error code 414: uri too large". Does anyone know the setting in the nginx conf file which determines the allowed uri length ? Thanks, Prakash Raman ...

Pylons: address already in use when trying to serve

I'm running pylons and I did this: paster server development.ini It's running on :5000 But when I try to run the command again: paster serve development.ini I get this message: socket.error: [Errno 98] Address already in use Any ideas? ...

Deploying Pylons with Nginx reverse proxy?

Is there a tutorial on how to deploy Pylons with Nginx? I've been able to start nginx and then serve pylons to :8080 with paster serve development.ini However, I can't seem to do other stuff as pylons locks me into that serve mode. If I try to CTRL+Z out of pylons serving to do other stuff on my server, pylons goes down. There must b...

How do i configure nginx to redirect to a url for robots.txt & sitemap.xml

I am running nginx 0.6.32 as a proxy front-end for couchdb. I have my robots.txt in the database, reachable as http://www.mysite.com/prod/_design/mydesign/robots.txt. I also have my sitemap.xml which is dynamically generated, on a similar url. I have tried the following config: server { listen 80; server_name mysite.com; location...

nginx + passenger FAILSAFE dispatch error

I'm having a very strange issue with a freshly deployed Rails app on a staging server. Up until this point all development has been done locally. I just setup the staging server and pushed the code to the staging server today, and have been getting strange errors that I can't seem to track down. My server is a debian Lenny box and I'm...

The Current State Of Serving a PHP 5.x App on the Apache, LightTPD & Nginx Web Servers?

Being stuck in a MS stack architecture/development position for the last year and a half has prevented me from staying on top of the world of open source stack based web servers recent evolution more than I would have liked to. However I am now building an open source stack based application/system architecture and sadly I do not have th...

Enable php5-curl on OpenSuse with Nginx

Hello, I have OpenSuse Server 10.3 with nginx for web server. I need to enable php5-curl. Installed it successfully. Then restarted web server, but nothing changed. Any ideas? Thank you ...

Should I use passenger on Apache or Nginx?

What are the pros and cons between deploying passenger on top of Apache and Nginx? ...

How do I configure nginx to match a query parameter in the location directive?

By default it only seems to match the path. ...

nginx proxy to comet

I need some help from some linux gurus. I am working on a webapp that includes a comet server. The comet server runs on localhost:8080 and exposes the url localhost:8080/long_polling for clients to connect to. My webapp runs on localhost:80. I've used nginx to proxy requests from nginx to the comet server (localhost:80/long_polling prox...

What web server to use for Lua web development

What web server (and why) should I use for Lua web development? ...

setting up subdomains on nginx

Hi there, I'm trying to set a subdomain on nginx. My setup is a Pylons app running on port 8080 and using proxy from nginx. The reason why I'm trying to get subdomains to work is to eventually set up dev and staging servers. Here is my nginx.conf file: worker_processes 2; events { worker_connections 1024; } http { inclu...

nginx rewrite rules with Passenger

Hi, I'm trying to migrate to nginx from Apache using Passenger in both instances to host a Rails app. The app takes a request, which is for an image- if the image exists at /system/logos/$requestedimage then it should get served, or it should be allowed to hit the Rails app to generate it if needed (where it is then cached to /system/lo...

A question about java web apps and X-REAL-IP header.

I'm setting up a demo of a project for a client. On my server I have a lot of sites built with different technologies that are running under different servers on different ports. I'm using nginx as a reverse proxy for all of them. This particular application is built with java (spring MVC / Blazeds) and will be deployed under tomcat 6 fo...

how to write Nginx module ?

Hello all im trying to find tutorials on how to build module/plugin for Nginx web server can someone please help me here .. i just can't find it any where Thanks ...

Using a static Index page with Django and Nginx

I'm building a website using Django + Apache and Nginx to serve my static content. My site's index does not require any backend Django coding, so what would I need to change in nginx.conf to send requests for location / { } to some index.html in my static-content, while still allowing my urls.py to handle patterns appropriately? upstrea...