if is evil. (and not needed)<br><br><div class="gmail_quote">On Wed, Jun 15, 2011 at 11:11 PM, muhfiasbin <span dir="ltr">&lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I get the same problem with TECK<br>
The difference is my homepage is work well, but when I tried to click a<br>
link on my homepage, it&#39;s get me 500 Internal Server Error.<br>
<br>
Here my configuration:<br>
<br>
if (-f $document_root/maintenance.html) {<br>
        rewrite  ^(.*)$  /maintenance.html last;<br>
        break;<br>
    }<br>
<br>
    location / {<br>
        error_page 404 = //index.php?q=$uri;<br>
        try_files $uri $uri/ /index.php?q=$request_uri;<br>
    }<br>
<br>
    location /administrator/ {<br>
        rewrite  ^(.*)$  <a href="https://www.domain.com" target="_blank">https://www.domain.com</a>$1 permanent;<br>
    }<br>
<br>
    if ($request_uri ~* &quot;com_login&quot;) {<br>
        rewrite  ^(.*)$  <a href="https://www.domain.com" target="_blank">https://www.domain.com</a>$1 permanent;<br>
    }<br>
<br>
    location /en/ {<br>
        index index.php;<br>
        error_page 404 = //index.php?q=$uri;<br>
        if (!-e $request_filename) {<br>
            rewrite ^/en/(.*)$ /en/index.php?$1 last;<br>
            break;<br>
        }<br>
    }<br>
<br>
    location /en/administrator/ {<br>
        rewrite  ^(.*)$  <a href="https://www.domain.com" target="_blank">https://www.domain.com</a>$1 permanent;<br>
    }<br>
<br>
    location ~ \.php {<br>
        fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
        fastcgi_index index.php;<br>
        fastcgi_param  SCRIPT_FILENAME<br>
$document_root$fastcgi_script_name;<br>
        include /usr/local/nginx/conf/fastcgi_params;<br>
<br>
and some output from error_log :<br>
<br>
2011/06/15 19:41:54 [error] 1985#0: *208 rewrite or internal redirection<br>
cycle while internal redirect to &quot;//index.php&quot;, client: 66.249.72.65,<br>
server: <a href="http://www.domain.com" target="_blank">www.domain.com</a>, request: &quot;GET /agenda.html HTTP/1.0&quot;, upstream:<br>
&quot;fastcgi://<a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>&quot;, host: &quot;<a href="http://www.domain.com" target="_blank">www.domain.com</a>&quot;<br>
2011/06/15 19:41:55 [error] 1985#0: *213 rewrite or internal redirection<br>
cycle while internal redirect to &quot;//index.php&quot;, client: 203.130.206.49,<br>
server: <a href="http://www.domain.com" target="_blank">www.domain.com</a>, request: &quot;GET /diploma.html HTTP/1.0&quot;, upstream:<br>
&quot;fastcgi://<a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>&quot;, host: &quot;<a href="http://www.domain.com" target="_blank">www.domain.com</a>&quot;, referrer:<br>
&quot;<a href="http://www.domain.com/" target="_blank">http://www.domain.com/</a>&quot;<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,199260,207142#msg-207142" target="_blank">http://forum.nginx.org/read.php?2,199260,207142#msg-207142</a><br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://thewarezscene.org" target="_blank">Warez Scene</a> <a href="http://www.nexusddl.com" target="_blank">Free Rapidshare Downloads</a><br><br>