Linode Pastebin


Posted by rwky on Thu 26th Jan 07:24

(modification of post by Anonymous view diff)
diff | download | new post

  1. server {
  2.  
  3.             listen   80;
  4.             root /var/www/drupal;
  5.                 server_name www.example.com example.com;
  6.                 index index.php;
  7.                 expires max;
  8.                        
  9.                         location ~ /\. {
  10.                 deny  all;
  11.                         }
  12.  
  13.  
  14.                       location ~ \.php$ {
  15.                              if (!-f $request_filename)
  16.                              {
  17.                                     return 404;
  18.                              }
  19.                                 expires 0;     
  20.                                 fastcgi_pass   127.0.0.1:8000;
  21.                           include fastcgi_config;
  22.           include fastcgi_params;
  23.             }
  24.            
  25.             location /
  26.             {
  27.                 try_files $uri $uri/ /index.php?$args;
  28.             }
  29.  
  30. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me


Home | Members | Contact Us | Terms of Service | ™ © 2003-2008 Linode, LLC. All rights reserved.