Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SSI stub include 200


  • To: nginx-ru@xxxxxxxxx
  • Subject: SSI stub include 200
  • From: <tumanov@xxxxxxxxx>
  • Date: Thu, 06 Feb 2014 16:01:41 +0600
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=info74.ru; s=mail; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=iX1TMC3r/FSlJFV4CbqyEx/79HzagbEemKSV4FiyGtk=; b=n8+Wodz5FJqCnzA4hrv/KXcOSCt0zrfRxU/KMVhyM/atcABT2nRWqpFj52btDPsCtEHplKEtVudJJo3IhUwHRi/u27m8tI9SmMbXzP9/ywZ4JLk4oxHufx2eZz3y3cDstBackt1ova2+NIYofC6x4PGuV8gM25i4n2k0V4cte8A=;

.

/var/local/www/ssi_stub_memcahed/index.html SSI :

<html>
<body>
<h1>SSI STUB MEMCACHED</h1>
<p>Start include with stub</p>
<!--# block name="one" -->!STUB!<!--# endblock -->
<!--# include virtual="/ssi_stub_memcahed/include.html" stub="one" -->
<p>End include with stub</p>
<hr/>
<p>Start include without stub</p>
<!--# include virtual="/ssi_stub_memcahed/include.html" -->
<p>End include without stub</p>
</body>
</html>

http://localhost/ssi_stub_memcahed/index.html :

<html>
<body>
    <h1>SSI STUB MEMCACHED</h1>
    <p>Start include with stub</p>
    
    !STUB!
    <p>End include with stub</p>
    <hr/>
    <p>Start include without stub</p>
    included successfully
    <p>End include without stub</p>
</body>
</html>

/var/local/www/ssi_stub_memcahed/include.html :

included successfully

:

server {
listen 80;
server_name localhost;

location / {
root /etc/nginx/html;
index index.html index.htm;
}

location /nginx-status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}

location /ssi_stub_memcahed/ {
default_type text/html;
error_log /var/log/nginx/ssi_stub_memcahced.error debug;
access_log /var/log/nginx/ssi_stub_memcahced.access;
error_page 404 502 504 = @fallback;

set $memcached_key "test|$uri";
memcached_connect_timeout 2;
memcached_read_timeout 5;
memcached_send_timeout 5;
memcached_pass 127.0.0.1:11211;
}

location @fallback {
root /var/local/www;
error_log /var/log/nginx/ssi_stub_memcahced_fallback.error debug;
access_log /var/log/nginx/ssi_stub_memcahced_fallback.access;
ssi on;
}
}

, 200?
-- 
 ,  
-- 
 ,  
    .
74.RU
jabber: tumanov@xxxxxxxxx
email: tumanov@xxxxxxxxx
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.