Diberdayakan oleh Blogger.

Sabtu, 13 Oktober 2012

Nginx not automatically load index.php

by Joielechong sipayung  |  in Sistem Informasi at  Sabtu, Oktober 13, 2012

If you're facing error "403 forbidden" in url that definitely having an index.php, it could be because you don't add index.php in nginx configuration file. Adding index.php will solving the problem.
Find the following line in nginx.conf:

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

then change it to:


        location / {
            root   html;
            index  index.php index.html index.htm;
        }


for another nginx "403 Forbidden" problem, you can read it in http://nginxlibrary.com/403-forbidden-error/.


Have a good time.... :D ;)

0 comments:

Silahkan tinggalkan komentar anda: