SOURCES: nginx-perl.conf - perl config
sardzent
sardzent at pld-linux.org
Sun Dec 16 17:25:12 CET 2007
Author: sardzent Date: Sun Dec 16 16:25:12 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- perl config
---- Files affected:
SOURCES:
nginx-perl.conf (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/nginx-perl.conf
diff -u SOURCES/nginx-perl.conf:1.2 SOURCES/nginx-perl.conf:1.3
--- SOURCES/nginx-perl.conf:1.2 Sat Dec 15 20:30:13 2007
+++ SOURCES/nginx-perl.conf Sun Dec 16 17:25:07 2007
@@ -27,6 +27,22 @@
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 @@
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 @@
# 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;
-# }
-
}
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/nginx-perl.conf?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list