1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Buying Please fix this nginx conf

Discussion in 'Services' started by Axcell, Nov 24, 2010.

  1. #1
    I'm using Nginx Memcached and PHP-FPM for my server and this configuration is not working.
    I'll pay $5 via paypal if someone could fix it.

    Thanks
    
    server{
            listen 80;
            server_name www.mywebsite.net;
            access_log /var/log/nginx/mywebsite.net.access_log;
            error_log /var/log/nginx/mywebsite.net.error_log;
    
    		root /home/mywebsite/public_html/;
    
    	location / {
    		set $memcached_key $uri;
    		memcached_pass     127.0.0.1:11211;
    		default_type       text/html;
    		error_page         404 405 = @fallback;
    	}
      
    	location ~* \.(gif|jpg|jpeg|png|css|js|ico)$ {
    		expires 30d;
    		access_log off;
    	}
    
    	location @fallback {
    		rewrite ^ /index.php?q=$uri last;
         }
    
    	location ~ \.php$ {
    		fastcgi_pass    127.0.0.1:9000;
    		fastcgi_index   index.php;
    		fastcgi_param   SCRIPT_FILENAME /home/mywebsite/public_html/$fastcgi_script_name;
    		include         fastcgi_params;
    	}
    }
    
    Code (markup):

     
    Axcell, Nov 24, 2010 IP
  2. Martindale

    Martindale Well-Known Member

    Messages:
    440
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    108
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    What kinds of errors are you getting?
     
    Martindale, Feb 5, 2013 IP