Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9247361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:42:29+00:00 2026-06-18T09:42:29+00:00

nginx.conf file content as follow: http { include mime.types; default_type application/octet-stream; # configure cache

  • 0

nginx.conf file content as follow:

http {
include       mime.types;
default_type  application/octet-stream;

# configure cache log
log_format cache '$remote_addr - $host [$time_local]  '
             '"$request" $status $upstream_cache_status $body_bytes_sent '
             '"$http_referer" "$http_user_agent"';

fastcgi_cache_path  /data0/nginx-cache  levels=1:2
                   keys_zone=nginx_fastcgi_cache:1m
                   inactive=1d;

                   fastcgi_temp_path /data0/nginx-cache/temp;

server {
    listen       8080;
    server_name  outofmemory.cn localhost;

    access_log /data0/nginx-1.2.6/logs/cache.log cache;

    #charset koi8-r;


    fastcgi_cache_key "$scheme$request_method$host$request_uri";
    fastcgi_cache   nginx_fastcgi_cache;
    fastcgi_cache_min_uses  1;
    fastcgi_ignore_headers Cache-Control Expires;
    fastcgi_cache_use_stale error  timeout invalid_header http_500;
    #add_header X-Cache cached;

    fastcgi_cache_valid  60m;

    location / {
      root /www/outofmemory.cn;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;
      fastcgi_param REMOTE_PORT $remote_port;
      fastcgi_param SERVER_ADDR $server_addr;
      fastcgi_param SERVER_PORT $server_port;
      fastcgi_param SERVER_NAME $server_name;
      fastcgi_param SERVER_PROTOCOL $server_protocol;
      fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
      fastcgi_param PATH_INFO $fastcgi_script_name;
      fastcgi_pass 127.0.0.1:9002;

      fastcgi_cache_key "$scheme$request_method$host$request_uri";
      fastcgi_cache   nginx_fastcgi_cache;
      fastcgi_cache_valid  60m;
    }

    }
}

any help would be appreciated.

thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T09:42:30+00:00Added an answer on June 18, 2026 at 9:42 am

    I have resolved this question.

    I wrote an artile to explain how to configure nginx + webpy + fastcgi cache.

    http://outofmemory.cn/code-snippet/2154/nginx-webpy-fastcgi-cache-configuration-explain-in-detail

    thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in nginx conf file,i use: location ~ \.jsp { proxy_pass http://127.0.0.1:86; } to parse
I'm a little bit lost here. In my nginx conf file I want a
My nginx.conf file is getting larger and large with dozens of vhosts repeating the
Using rails nginx with passenger. I put the following in the nginx.conf file for
I have set up my nginx.conf file to use proxy caching from tutorials I
I am new to nginx and I have been hacking up my nginx.conf file
I have a chef cookbook which installs nginx and install a custom nginx.conf file.
I have two paths: /etc/nginx/sites-enabled /opt/nginx/conf/nginx.conf Both contain an .conf file, is it possible
With nginx.conf including the following location /beta/ { proxy_pass http://otherhost/; } then both of
I am using nginx + unicorn in linode. This is my nginx.conf upstream unicorn

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.