<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - Problem with .htaccess and lighttpd]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=6496&amp;type=atom"/>
	<updated>2008-12-01T06:47:40Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=6496</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: Problem with .htaccess and lighttpd]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=32386#p32386"/>
			<content type="html"><![CDATA[<div class="codebox"><pre><code>RewriteEngine On
RewriteBase /tc/
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(cache)+/+(.+[^/])\.(cache|xml|txt|log)$ - [NC,F,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(thumbnail)/([0-9]+/.+)$ cache/$1/$2 [L]
RewriteRule ^(.*)$ rewrite.php [L,QSA]</code></pre></div><p>위 룰을 lighttpd 웹 서버에도 적용해 보고 싶은데 잘 안되어서 여기까지 오게되었습니다. (__)</p><p>lighttpd rewrite 써서 비슷하게 룰은 지정 하였지만 특정 URL 을 찾지 못하네요 T_T<br />페이징 문제도 있구요 -0-</p><p>Apache 웹 서버를 많이 사용 하지만 리소스 점유률이 낮은 Lighttpd 웹 서버도 공식으로 지원해 주셨으면 합니다. 물론 rewrite 기능을 끄고 사용은 가능 하지만 URL 깔끔하게 하고 싶어서 이렇게 글 남깁니다.</p>]]></content>
			<author>
				<name><![CDATA[단풍]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=83</uri>
			</author>
			<updated>2008-12-01T06:47:40Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=32386#p32386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Problem with .htaccess and lighttpd]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=29947#p29947"/>
			<content type="html"><![CDATA[<p>Hello.<br />I know. This is not forum for user frm other countries but I have question about rewrite rules for Ligghtpd server. I want to have rules to make URLs like /blogname/owner etc. Ive made something like this:<br /></p><div class="codebox"><pre><code>$HTTP[&quot;remoteip&quot;] == &quot;127.0.0.2&quot; {
    server.document-root = &quot;/var/www/tc/&quot;
    url.rewrite-once = (
        &quot;^(thumbnail)/([0-9]+/.+)$&quot; =&gt; &quot;cache/$1/$2&quot;,
        &quot;^(cache)+/+(.+[^/])\.(cache|xml|txt|log)$&quot; =&gt; &quot;$0&quot;,
        &quot;^(.*[^/])$&quot; =&gt; &quot;$1/&quot;,
        &quot;^(.*)$&quot; =&gt; &quot;rewrite.php&quot;
    )
}</code></pre></div><p>It works only when adress looks like <a href="http://127.0.0.2/grom/owner/">http://127.0.0.2/grom/owner/</a> but dont work if I have URL like <a href="http://127.0.0.2/grom/owner">http://127.0.0.2/grom/owner</a> so as I think problem is with &quot;^(.*[^/])$&quot; =&gt; &quot;$1/&quot; but how to correct that? Any suggestions? Any advice? If someone knows how to resolve that then please tell me ;P</p><p>Best regards, Grom.</p>]]></content>
			<author>
				<name><![CDATA[Grom]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=1631</uri>
			</author>
			<updated>2008-08-28T00:56:43Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=29947#p29947</id>
		</entry>
</feed>
