Hi, all
rewrite ^/index\.asp /index.php last;
rewrite ^/index\.asp\?boardid=([0-9]+)$ /forum-$1-1.html last;
rewrite ^/index\.asp\?boardid=([0-9]+)(.*)$ /forum-$1-1.html last;
rewrite ^/index_([0-9]+)(.*)$ /forum-$1-1.html last;
rewrite ^/dispbbs\.asp\?boardID=([0-9]+)&ID=([0-9]+)$ /thread-$2-1-1.html last;
I have try out rewrite rule...
Nginx uses epoll, or other multiplexing techniques(select) for its handling multiple clients, i.e it does not spawn a new thread for every request unlike apache.
I tried to replicate the same in my own test program using select. I could accept connections from multiple client by creating a non-blocking socket and using select to decide ...
Hi, all
Recently, I altered my web server lighty to nginx. And now, Struggling with some problems.
First, I have a site in nginx which only rewrites urls and redircts them to a new domain, and this site has exactly no file in its root directory.
I put some rewrite rules (just string rules, no querystring) in my nginx.conf
list 1
rewr...
I need to run my development through nginx due to some complicated subdomain routing rules in my pylons app that wouldn't be handled otherwise.
I had been using lighttpd + paster + Flup#scgi_thread and the nice error reporting by Pylons had been working fine in that environment.
Yesterday I recompiled Python and MySQL for 64bit, and al...
Hi,all
My PHP with FastCGI has some unexpected logs, and works slowly.
In php-fpm.log, i find tons of NOTICE, as follows,
...
Mar 31 15:26:21.964563 [NOTICE] fpm_children_bury(), line 215: child 59658 (pool default) exited with code 0 after 568.697496 seconds from start
Mar 31 15:26:21.966770 [NOTICE] fpm_children_make(), line 352: c...
I'm looking into the various methods of rate limiting the Django admin login to prevent dictionary attacks.
One solution is explained here: simonwillison.net/2009/Jan/7/ratelimitcache/
However, I would prefer to do the rate limiting at the web server side, using Nginx.
Nginx's limit_req module does just that - allowing you to specify ...
I have the following rewrite rule
rewrite ^/ab(.*)/(.*)$ /repo/ab$1/rtest/$2 break;
When the request file is /abname/index.php it gets rewritten to /abname/rtest/index.php
But if the request is of the form /abname/dir1/index.php it gets rewritten as /abname/dir1/rtest/index.php but I would want it to be rewritten as /abname/rtest/dir...
I run Django on Windows Server 2k3 under Nginx using FastCGI.
Nginx is is running as Windows service and is easy to manage and autostart.
Nginx is running using WINSW tool.
I want to make the same for Django app and need to find a way to do it.
Django should be started as separate FCGI application using this command:
python manage.py...
I have been trying for some time to serve & cache static files for my rails app using nginx. the rails app server runs mongrel_cluster and is deployed on a different host than that of nginx.
following many of the available discussions I tried the following
server {
listen 80;
server_name www.myappserver.com;
...
Hello I asked this question to superuser but I did not get a good question there and i really need the answer. I know some of you here can answer this question.
I have installed nginx via yum. Now I want to add a module, but I have to compile the source again and include the the new module.
But i can't find the source. Does someone kno...
There are many security reasons why one would want to drop an HTTP connection with no response (eg. OWASP's SSL best practices). When these can be detected at the server level then it's no big deal. However, what if you can only detect this condition at the application level?
Does Rails, or more generally Rack, have any standard way o...
Does anyone know off a way or maybe think its possible to connect Node.js with Nginx http push module to maintain a persistent connection between client and browser.
I am new to comet so just don't understand the publishing etc maybe someone can help me with this.
What i have set up so far is the following. I downloaded the jQuery.come...
I am trying to set up multiple virtual hosts on the same server with Nginx and Apache and have run into a curious configuration issue.
I have nginx is configured with a generic upstream to apache.
upstream backend {
server 1.1.1.1:8080;
}
I'm trying to set up multiple subdomains in nginx that hit different mountpoints in apache. E...
I have nginx(0.7.64) with passenger(2.2.9) over ruby(1.8.7) Enterprise Edition.
When I operate from script/console, log behaves normal, but whenever nginx receives a request, it is logged twice.
I have two different rails apps in separate vhosts (like the one bellow) and it happens in both (one is in development and one in production)....
Tornadoweb and Nginx are popular web servers for the moment and many benchmarkings show that they have a better performance than Apache under certain circumstances. So my question is:
Is 'epoll' the most essential reason that make them so fast? And what can I learn from that if I want to write a good socket server?
...
Hello there i need to set the proxy_cache value to off when the user user agent is from a mobile browser.
I've already did the if and it's working perfectly but i can't put the proxy_cache off directive inside. Could someone please help me ?
Is there a workaround ? I would like to serve ever the cached version to every user except for ...
Hi,
Common situation: I have a client on my server who may update some of the code in his python project. He can ssh into his shell and pull from his repository and all is fine -- but the code is stored in memory (as far as I know) so I need to actually kill the fastcgi process and restart it to have the code change.
I know I can grace...
I'm trying to serve Django static media through nginx, Here's my nginx.conf
server {
listen 7777;
listen localhost:7777;
server_name example.com;
location / {
proxy_pass http://localhost:7777;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote...
Hello.
I've been developing my first rails application on my windows computer.
But now i have been setting up a debian server with nginx and passanger.
I've been using Github to keep track of my application and now i am wondering how i can get the Github version of my application to the debian server and put it in production mode?
Anybo...
On my VDS I use nginx, django and tornado. I had just one project, Now i gonna deploy another one project with a different domain name. I want to use different databases and folders.
I know how to configure nginx for serving static resourses , but what about tornado?
Should i run separeted instance of tornado for each project or is there...