I installed imagemagick success,
development]# convert -version
Version: ImageMagick 6.6.3-4 2010-08-11 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
and rmagick 2.13.1 success too. and I test with such script.
require 'rubygems'
require 'RMagick'
Magick::Image.new(110, 30)...
I'm using nginx as a reverse proxy in front of Tomcat ... At times dynamic request are getting cached as in if a record is added it not show on the page at first but after few refresh it comes up.
I'm having above issue in firefox only its working fine on chrome and IE.
...
My nginx.conf file is getting larger and large with dozens of vhosts repeating the same lines over and over. I was wondering if there is anyway to declare the following globally without having to repeat them for each project:
# Route all requests for non-existent files to index.php
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php...
My php script calls an url with curl very simply :
$ch = curl_init("http://192.168.0.110:8000/guess/a b c");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$r = curl_exec($ch);
With this url, i have no problem. But if change to :
$ch = curl_init("http://192.168.0.110:8000/guess/a b cd");
I have a 400 Bad Request nginx/0.7.62 error...
I need nginx to reverse- proxy GET and POST requests of the form:
/myapp/path/to/resource
to:
http://127.0.0.1:9090/path/to/resource
I'm trying the following:
location /myapp/(.*) {
rewrite $1;
proxy_pass http://127.0.0.1:9090;
}
but nginx is returning a HTTP 405 error [not allowed].
Any ideas on how to fix this ? Thanks.
...
Now I am trying to implement High web site performance following YSlow rules. In terms of Expires Header, I have configured in nginx like the following:
if ($request_uri ~* ".(ico|css|js|gif|jpe?g|png)\?[0-9]+$") {
expires max;
break;
}
Yes, I got the good result because I could not see css and javascript files followed by time...
I'm having a small problem with my setup. I'm quite new to the django world so bare with me.
A friend who is familiar has set up a VPS (Ubuntu) for my project.
I'm now on my own trying to add a new module (south) so I can use manage.py migrate
When the virtualenv was deactivated I installed the module
sudo pip -E /var/www/env/e...
I have a view in my Django application that automatically creates an image using the PIL, stores it in the Nginx media server, and returns a html template with a img tag pointing to it's url.
This works fine, but I notice an issue. For every 5 times I access this view, in 1 of them the image doesn't render.
I did some investigation and...
I make use of version numbers to cache static files, with URLs like this:
http://example.com/css/example.v123.css
Combined with a nginx config snippet like this:
# Serve static files directly
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico)$ {
root /var/www/example.com/static/;
access_log off;
if ($request_filename ~* ^(.*\....
Are there any tools that I can run on my server to monitor multiple Pylons applications?
I need to monitor the number of requests each application receives, how much memory each application is using, how much of the cpu is being used and other stats similar to those. I need to see the stats for each individual Pylons application.
All i...
Hi all, I have a problem.
My app server is nginx, on which my blog was hosted.
when i visited my sitemap with this url:
http://www.ikbear.com/sitemap.xml, it works.But when i visited my sitemap with this url:
http://ikbear.com/sitemap.xml, it doesn't work. So i want to redirect http://ikbear.com/sitemap.xml to http://www.ikbear.com/sitem...
I am getting this error in maybe one out of 50-100 requests. I am running 10 Thin instances behind nginx and I don't think that my load is high enough to max out the usage in all 10 instances.. and I would expect nginx to wait even if all instances were busy (maybe not??). Has anyone else seen this before? I am trying to figure out a ...
There's some problem with my nginx. At first, starting is OK, surfing through the proxy is fast enough. But after a while, 5 -> 10 visit later, the proxy become slower and slower. Until it stop working. Even if i try to stop the nginx using "-s stop", double check if there are any nginx.exe running, and restart nginx. It's still not work...
I've found plenty of references on the web for rotating the nginx logs under linux.. just send the USR1 signal to the process. But... unix like signals don't exist on windows and I haven't been able to find any information on this. How can I accomplish the same thing with nginx on windows??
...
How do you compare Nginx and Cherokee in terms of memory usage and performance? My VPS serves Drupal 6.16, magento 1.4.1 and CS-CART 2.0.15 with apache2 prefork-mpm. Apache2 eats my memory even though my sites are pretty low traffic profile (htop shows that each apache process eats %18 memory) . If I change apache to nginx or cherokee w...
I am using django, nginx and apache. When I access my site with a URL (e.g., http://www.foo.com/) what appears in my browser address is the IP address with admin appended (e.g., http://123.45.67.890/admin/). When I access the site by IP, it is redirected as expected by django's urls.py (e.g., http://123.45.67.890/ -> http://123.45.67.890...
I am building a PHP comet based application. Which web server should I use in the backend? Apache / nginx (this is what most forums say) or something else would be better?
...
Hi guys.
I have two sessions in PHP:
$_SESSION["session"]["key"] = md5 ($token . $userAgent . $ip);
$_SESSION["session"]["timeout"] = time ();
Just want to check that sessions with nginx, tried this code without success:
location / {
if ($request_filename ~* "index.php") {
break;
}
if ($http_cookie ~* "session")...
We have django 1.1.1 website, that works fine on development server (python manage.py runserver). But when we use nginx + wsgi, ngnix is timed out and return "504 Gateway is time out". error.log is empty.
So, probably it is environment issue but I don't know where to start because it was working fine and now its not and I have no error...
Hi, I've followed the instructions for installing phusion passenger with nginx in ubuntu. I had some issues while installing since I use rvm and I had to install as root and the installer was failing to find rake so i temporarily chmoded /opt to be owned by my user and after installation I resetted ownership to root. I can see nginx welc...