]> git.pld-linux.org Git - packages/nginx.git/commitdiff
- perl config
authorsardzent <sardzent@pld-linux.org>
Sun, 16 Dec 2007 16:25:07 +0000 (16:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nginx-perl.conf -> 1.3

nginx-perl.conf

index 5ae286812e4b2598d1cc631b76da7218cec1668c..8a1486e9fb926d9b92908245f43e6ddeb9d795b3 100644 (file)
@@ -27,6 +27,22 @@ http {
        limit_zone      test-limit      $binary_remote_addr     10m;
        #gzip   on;
 
+#      perl_modules    perl/lib;
+#      perl_require    /home/services/nginx/perl/example-hello-01.pm;
+       
+       perl_set  $msie6  '
+       sub {
+               my $r = shift;
+               my $ua = $r->header_in("User-Agent");
+               return "" if $ua =~ /Opera/;
+               return "1" if $ua =~ / MSIE [6-9]\.\d+/;
+               return "";
+       }
+       ';
+
+       #       For more visit
+       #       http://wiki.codemongers.com/NginxEmbeddedPerlModule
+
        server {
                listen          80;
                server_name     localhost;
@@ -34,9 +50,7 @@ http {
                client_max_body_size    10M;
 
                location / {
-                       autoindex       on;
-                       root    /home/services/nginx/html;
-                       index   index.html index.htm index.php;
+                       perl    example-hello-01::handler;
                        limit_conn      test-limit      15;
                }
 
@@ -57,13 +71,6 @@ http {
 #                      root    /home/services/http/error-pages;
 #              }
 
-#              location ~ \.php$ {
-#                      include         /etc/nginx/fastcgi.params;
-#                      fastcgi_pass    127.0.0.1:1026;
-#                      fastcgi_index   index.php;
-#                      fastcgi_param   SCRIPT_FILENAME /home/services/nginx/html$fastcgi_script_name;
-#              }
-
        }
 
 }
This page took 0.316248 seconds and 4 git commands to generate.