user www www; ## Default: nobody
worker_processes 5; ## Default: 1
error_log logs/error.log;
pid logs/;
worker_rlimit_nofile 8192;

events {
worker_connections 4096; ## Default: 1024

https {
include conf/mime.types;
include /etc/nginx/proxy.conf;
include /etc/nginx/fastcgi.conf;
index index.html index.htm index.php;

default_type application/octet-stream;
log_format main ‘$remote_addr – $remote_user [$time_local] $status ‘
‘”$request” $body_bytes_sent “$https_referer” ‘
‘”$https_user_agent” “$https_x_forwarded_for”‘;
access_log logs/access.log main;
sendfile on;
tcp_nopush on;
server_names_hash_bucket_size 128; # this seems to be required for some vhosts

server { # php/fastcgi
listen 80;
access_log logs/domain1.access.log main;
root html;

location ~ \.php$ {

server { # simple reverse-proxy
listen 80;
access_log logs/domain2.access.log main;

# serve static files
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
root /var/www/virtual/;
expires 30d;

# pass requests for dynamic content to rails/turbogears/zope, et al
location / {

upstream big_server_com {
server weight=5;
server weight=5;

server { # simple load balancing
listen 80;
access_log logs/big.server.access.log main;

location / {
proxy_pass https://big_server_com;


proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;


fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
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_index index.php;

fastcgi_param REDIRECT_STATUS 200;


types {
text/html html htm shtml;
text/css css;
text/xml xml rss;
image/gif gif;
image/jpeg jpeg jpg;
application/x-javascript js;
text/plain txt;
text/x-component htc;
text/mathml mml;
image/png png;
image/x-icon ico;
image/x-jng jng;
image/vnd.wap.wbmp wbmp;
application/java-archive jar war ear;
application/mac-binhex40 hqx;
application/pdf pdf;
application/x-cocoa cco;
application/x-java-archive-diff jardiff;
application/x-java-jnlp-file jnlp;
application/x-makeself run;
application/x-perl pl pm;
application/x-pilot prc pdb;
application/x-rar-compressed rar;
application/x-redhat-package-manager rpm;
application/x-sea sea;
application/x-shockwave-flash swf;
application/x-stuffit sit;
application/x-tcl tcl tk;
application/x-x509-ca-cert der pem crt;
application/x-xpinstall xpi;
application/zip zip;
application/octet-stream deb;
application/octet-stream bin exe dll;
application/octet-stream dmg;
application/octet-stream eot;
application/octet-stream iso img;
application/octet-stream msi msp msm;
audio/mpeg mp3;
audio/x-realaudio ra;
video/mpeg mpeg mpg;
video/quicktime mov;
video/x-flv flv;
video/x-msvideo avi;
video/x-ms-wmv wmv;
video/x-ms-asf asx asf;
video/x-mng mng;

64 thoughts on “Full configuration Example”

  1. You really make it seem so easy with your presentation but I find this matter to be
    really something which I think I would never understand.

    It seems too complicated and extremely broad for
    me. I’m looking forward for your next post, I’ll try to get
    the hang of it!

  2. Hello there! This is kind of off topic but I need some
    help from an established blog. Is it very difficult to set up your own blog?
    I’m not very techincal but I can figure things out pretty quick.
    I’m thinking about making my own but I’m not sure where to begin. Do you have any tips or suggestions?
    Thank you

  3. I liҝe the heⅼpful information you provide in your
    articles. I’ll bookmark your weblog аnd check again here reɡularly.

    I’m quite sure I will leаrn lots of new stuff right here!
    Good luck for the next!

  4. Wonderful website you have here but I was wanting to know if you knew of any community forums
    that cover the same topics talked about in this article?
    I’d really like to be a part of online community where I can get feedback from other experienced individuals that share the same interest.
    If you have any recommendations, please let me know.

  5. Pretty nice post. I just stumbled upon your weblog and wished to
    say that I’ve really enjoyed surfing around your
    blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!

  6. Hi! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing several
    weeks of hard work due to no back up. Do you have any solutions to protect against hackers?

  7. Although it is expected that manual transmissions will work better available in the market, the consulting
    firm predicts that it will experience decreasing sales
    because lifetime of time given. Noise reduction looks like it’s
    the target in the redesigning in the interior of the
    Mariner. In spite of fears because of episodes with comparable preceding technology, Ford warrants that
    their creation will run nicely.

  8. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something.
    I think that you could do with a few pics to drive the message home a little bit,
    but other than that, this is fantastic blog. A fantastic read.
    I will definitely be back.

  9. I loved as much as you’ll receive carried out right here.
    The sketch is tasteful, your authored subject matter stylish.
    nonetheless, you command get got an nervousness over that you wish be
    delivering the following. unwell unquestionably come further formerly again as exactly the same nearly very often inside case you shield this increase.

  10. Does your site have a contact page? I’m having a tough time locating it but, I’d like to send you an email.
    I’ve got some recommendations for your blog you might be interested in hearing.
    Either way, great blog and I look forward to seeing it grow over time.

  11. There is usually a large number of quality cars, trucks, and SUVs to decide on from.
    Noise reduction appears to be the target from the redesigning of the interior of
    the Mariner. In spite of fears as a consequence of episodes with comparable preceding technology, Ford warrants that their creation will run nicely.

  12. I loved as much as you will receive carried out right here.
    The sketch is tasteful, your authored material stylish.
    nonetheless, you command get got an nervousness over that you wish be delivering the following.
    unwell unquestionably come further formerly again since exactly the
    same nearly very often inside case you shield this hike.

  13. What’s up every one, here every one is sharing these kinds
    of experience, thus it’s fastidious to read this blog, and I used to visit this
    weblog every day.

  14. Write more, thats all I have to say. Literally, it seems as though
    you relied on the video to make your point. You definitely know what youre talking
    about, why throw away your intelligence on just posting videos to your site
    when you could be giving us something enlightening to read?

  15. Hmm it looks like your website ate my first comment (it
    was extremely long) so I guess I’ll just sum it up what I wrote and say, I’m thoroughly enjoying your blog.

    I too am an aspiring blog writer but I’m still new to everything.
    Do you have any tips for newbie blog writers?
    I’d certainly appreciate it.

  16. Greetings from Carolina! I’m bored at work so I decided to check
    out your site on my iphone during lunch break.

    I really like the info you present here and can’t
    wait to take a look when I get home. I’m amazed at how fast your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyhow, awesome site!

  17. Hello there, just became alert to your blog through Google,
    and found that it’s truly informative. I’m gonna watch out for brussels.
    I’ll appreciate if you continue this in future. Numerous people will be benefited from your writing.


  18. Hi I am so delighted I found your web site, I really found
    you by accident, while I was researching on Askjeeve for something else,
    Anyways I am here now and would just like to say kudos for a incredible post
    and a all round entertaining blog (I also love the theme/design),
    I don’t have time to read through it all at the moment but I have bookmarked
    it and also added in your RSS feeds, so when I have time I will be back to read more,
    Please do keep up the fantastic job.

  19. Hey there! This is my first comment here so I just wanted to give a quick shout out and say I genuinely enjoy reading
    your blog posts. Can you recommend any other blogs/websites/forums that cover the same topics?

    Many thanks!

  20. hey there and thank you for your info – I’ve certainly picked up anything new from right here.
    I did however expertise several technical issues using this web site, since I experienced to reload the web site a lot of
    times previous to I could get it to load
    properly. I had been wondering if your hosting is OK?
    Not that I am complaining, but slow loading instances times will sometimes affect your placement in google and
    can damage your quality score if advertising and marketing with Adwords.
    Well I’m adding this RSS to my e-mail and could look
    out for much more of your respective intriguing content.

    Make sure you update this again soon.

  21. Websites offer beneficial concerning nationally contests, on-line eureka in conjunction with
    lotto scientific studies. It is possible to also decide to attempt out sites that supply you zero
    cost reward bingo codes which you can use to perform for cost-free.

    Other deposit options include Pay Pal, Neteller, Visaw, Master – Card, UKash, Click2Pay, Skrill
    containing merged with Moneybookers, Ecocard, Visa electron, Western Union,
    Web money and a whole lot more.

  22. Heya! I just wanted to ask if you ever have any problems with hackers?

    My last blog (wordpress) was hacked and I ended up losing several weeks of hard work due to no back up.

    Do you have any solutions to prevent hackers?

  23. Thanks for the marvelous posting! I really enjoyed
    reading it, you can be a great author. I will be sure to bookmark
    your blog and definitely will come back very
    soon. I want to encourage one to continue your great writing,
    have a nice day!

  24. My spouse and I stumbled over here different web page and thought I should check things out.
    I like what I see so now i’m following you.
    Look forward to checking out your web page yet again.

  25. Hi, i read your blog occasionally and i own a similar one and i was just
    curious if you get a lot of spam remarks? If so how do you prevent it, any
    plugin or anything you can suggest? I get so much lately it’s driving me mad so
    any support is very much appreciated.

  26. I’ll right away grasp your rss as I can’t to find your email
    subscription link or e-newsletter service. Do you’ve any?
    Kindly permit me understand so that I may just
    subscribe. Thanks.

  27. hello!,I love your writing so so much! share we be in contact extra approximately your post on AOL?

    I need an expert on this area to solve my problem.
    Maybe that is you! Looking forward to see you.

  28. Wow, wonderful weblog format! How lengthy have you been running a blog for?

    you made blogging glance easy. The entire glance of your site is fantastic, let alone the content

  29. Thanks for evеrʏ other wоnderful post. Where else may anyߋne gеt that type of information in such an іdeal means of wrіting?
    I’ve a presentation neⲭt week, and I’m
    at the look for such info.

  30. Ⲣrettу section of content. I just stumbled upon your ѕite
    and in accession capitɑl to ɑssert that I acquіre actually enjoyed account your blog posts.
    Any way I’ll ƅe subscribing to your feeds and
    even I achievement үou access consistently rapidly.

  31. Good day very cool web site!! Guy .. Excellent .. Superb
    .. I’ll bookmark your web site and take the feeds additionally?
    I’m glad to find a lot of helpful info right here in the publish, we need develop more strategies on this regard, thanks for sharing.
    . . . . .

  32. Magnificent goods from you, man. I have understand your stuff previous to and you’re just extremely
    fantastic. I actually like what you have acquired here, really like what you’re stating and the way in which you say it.

    You make it entertaining and you still take care
    of to keep it sensible. I can’t wait to read much more from you.
    This is really a tremendous web site.

  33. Hello, I think your blog might be having browser compatibility issues.
    When I look at your blog in Ie, it looks fine but when opening
    in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, great blog!

  34. Spot օn with this write-up, I honestly believe that this website
    needs much mⲟre attention. I’lⅼ probably be back ɑgain to read through more, thanks
    foг tһe advice!

  35. I’ve гead some good stսff here. Certainly ѵalᥙe
    bookmaгking for rеvisiting. I sᥙrprise how much ɑttempt you set to make the
    sort of excellent informative site.

Leave a Reply

Your email address will not be published. Required fields are marked *