I'm using apache+mod_wsgi for django.
And all css/js/images are served through nginx.
For some odd, reason when others/friends/colleagues try accessing the site, jquery/css is not getting loaded for them, hence the page looks jumbled up.
My html files use code like this -
<link rel="stylesheet" type="text/css" href="http://x.x.x.x:8...
Is it possible to configure nginx to run a unix command based on a url?
For example:
http://localhost/list/usr/local
This runs:
ls /usr/local
Then returns the results?
...
Hi
I used config given in this http://www.webtatic.com/blog/2008/04/page-level-caching-with-nginx/ for page level caching of php content the problem is that the cached page is saving in gzip format and it returning same gzip content to browser.
I need the o/p like this "12:15:37 12:15:47" (Its coming for 1st time when the page is not ca...
How can I check that nginx is serving the .gz version of static files, if they exist?
I compiled nginx with the gzip static module, but I don't see any mention of the .gz version being served in my logs. (I have minified global.js and global.css files with .gz versions of them in the same directory).
The relevant part of nginx.conf loo...
Hi all,
We have nginx set up to reverse proxy to a couple of apache instances. Every so often apache takes longer than 60 seconds to respond, and then nginx pulls that server out of rotation and does not add it back in. We are using the upstream_fair plugin, as it does a nicer job of round robining, however we are clearly running into t...
I'm having a problem running Apache + Subversion with SSL behind an Nginx proxy and I'm hoping someone might have the answer. I've scoured google for hours looking for the answer to my problem and can't seem to figure it out. What I'm seeing are "502 (Bad Gateway)" errors when trying to MOVE or COPY using subversion; however, checkouts a...
I'm curious... I'm looking to have a really efficient setup for my slice for a client. I'm not an expert with servers and so am looking for good solid resources to help me set this up... It's been recommended to me that using FastCGI for PHP, Green Unicorn (gunicorn) for Django and Nginx for media is a good combination to have PHP and Dj...
My Rails app makes use of ImageMagick, but the app fails on trying to execute the ImageMagick command ("identify"). I fixed this issue in development (where I'm running Apache/Passenger) by passing the following environment variables in my Apache config:
SetEnv MAGICK_HOME /opt/local/var/macports/software/ImageMagick/6.5.9-0_0+q16
S...
I just installed Nginx listening on 8083 I can get a HTTP response when sending a HTTP request from the local machine.
eg:
curl -i localhost:8083
However, when I do the same from a remote machine, it just hangs until the ssh times out, or when the browser times out if accessed from the browser.
I pretty much have the default confi...
I use the following configuration for nginx: http://gist.github.com/340956
However, this configuration causes a No input file specified error with PHP. The only way I have been able to solve it is by altering this line:
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
Note the "/" between $document_root and $fast...
I need a nginx rewrite rule to rewrite from:
http://some-keyword.example.com to www.example.com/keyword.php?keyword=$some-keyword
while domain without www in front still rewrites to www.example.com and www isn't taken as a keyword.
Please could you help me to solve this problem, how to write these two rules?
...
Can you run some script before the uploading of a file starts in php? Example, I'm POSTing to upload.php, and in that file I want to check their $_SESSION first before I start wasting bandwidth on them and the file stats uploading to my server. I'm using php 5.2.11 on nginx.
<?php
if ($_SESSION['admin'] == 'YES') {
// do upload ...
Normal http is working fine for me with nginx and mongrel, however when i attempt to use https I am directed to the "welcome to nginx page".
http {
# passenger_root /opt/passenger-2.2.11;
# passenger_ruby /usr/bin/ruby1.8;
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $re...
Hi All,
I'm a newcomer trying to get my feet wet with Ruby and Sinatra. I followed the Slicehost articles in getting Ruby 1.9.1 setup along with Thin 1.2.7 with a reverse proxy to Nginx.
Most things were going pretty smooth until I tried to start up my thin server.
This is the output I get from my logs:
$ sudo thin -C config.yml -R c...
Hey,
I'm trying to do A/B testing and I'm using Nginx fo this purpose. My Nginx config file looks like this:
events {
worker_connections 1024;
}
error_log /usr/local/experiments/apps/reddit_test/error.log notice;
http {
rewrite_log on;
server {
listen 8081;
access_log /usr/local/experiments/apps/reddit...
Hi,
I got a problem with my Richfaces application. I am using it with JSF and GlassFish v.2 on my localhost and combination od dataTable and dataScroller works fine.
While moving the app to the VPS running Tomcat but proxied by Nginx server, everything crashes. Exactly the scroller is working, but the dataTable view is not refreshed!
...
I am planning to setup nginx as reverse proxy. I will have apache to deliver my dynamic content, and nginx will deliver the static content.
My configuration i have now is just Apache with fastCGI. This gives me no configuration problems and runs great.
After I have set up nginx I want to run some benchmarks to see if I really got some ...
I have read this article about 400% boost of your website. This is done by a combination of nginx and memcached. The how-to part of this website is quite good, but i mis the part where it says to what types of websites this applies.
I know nginx is a http engine, I need no explanation for that.
I thought memcached had something to do ...
How to configure nginx for load static ?
Static should be given only by the nginx server , everything else nginx + dev_appserver and workingon the same host (localhost or localhost: port)
Example
request html
http://localhost -> nginx -> dev_appserver
request static files
http://localhost/static/css (js,img,etc) -> ngi...
Hi at all,
I have 2 site: example.com and exampletwo.com
I want that when a user login on example.com then he is automatically authenticated also on exampletwo.com
How can I do that ?
I use Django + Nginx on first website and Tornado framework + Tornado server on second website.
Thanks ;)
.
P.S. If you don't know this platforms ( Dj...