enable subdomain in nginx for wordpress
===

My nginx.conf doesn't work. I need setup correctly a blog under the subdomain blog.nerto.it
The site on the main domain (nerto.it) is using rails.
Are There other settings that i need to setup out of this files?
I'm using ubuntu 10.04. Thanks mate!


        #user  nobody;
    worker_processes  1;
    
    #error_log  logs/error.log;
    #error_log  logs/error.log  notice;
    #error_log  logs/error.log  info;
    
    #pid        logs/nginx.pid;
    
    
    events {
        worker_connections  1024;
    }
    
    
    http {
        passenger_root /opt/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.7;
        passenger_ruby /opt/ruby/bin/ruby;
    
        include       mime.types;
    
        default_type  application/octet-stream;
    
        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                          '$status $body_bytes_sent "$http_referer" '
                          '"$http_user_agent" "$http_x_forwarded_for"';
    
        access_log  logs/access.log  main;
    
        sendfile        on;
        #tcp_nopush     on;
    
        #keepalive_timeout  0;
        keepalive_timeout  65;
        client_max_body_size 9m;
    
    
        #gzip  on;
        server {
          listen 80;
          server_name nerto.it;
          root /var/www/current/public;   # <--- be sure to point to 'public'!
          passenger_enabled on;
    
        }
    
       server {
        listen 80;
        server_name www.nerto.it;
        rewrite ^ http://nerto.it$uri permanent;
       }

