Nginx выдает ошибку 403 для файлов CSS / JS

Я установил nginx 0.7.67 на Ubuntu10.10 вместе с php-cli. Я пытаюсь запустить PHP-фреймворк на основе фронт-контроллера, но все страницы, кроме index.php, выдают ошибку 403.

Пример:

  1. http://mysite.com/styles/style.css - 403 Запрещено
  2. http://mysite.com/scripts/script.css - 403 Запрещено
  3. http://mysite.com/index. php - Работает

Мой / etc / nginx / sites-enabled / default выглядит следующим образом

server {
    listen          80;
    server_name     mysite.com;

    access_log      /var/log/nginx/access.log;
    error_log       /var/log/nginx/error.log warn;

    index           index.php index.html;
    root        /full/path/to/public_html;

    location ~* \.(js|css|png|jpg|jpeg|gif|ico|html)$ {
            expires max;
    }


    location ~ index.php {
            include     /etc/nginx/fastcgi_params;
            keepalive_timeout 0;
            fastcgi_param   SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            fastcgi_pass    127.0.0.1:9000;
    }

}

Есть предложения по исправлению вышеуказанного?

PS: Это запись из журнала ошибок

2010/10/14 19:56:15 [error] 3284#0: *1 open() "/full/path/to/public_html/styles/style.css" 
failed (13: Permission denied), client: 127.0.0.2, server: quickstart.local, 
request: "GET /styles/style.css HTTP/1.1", host: "mysite"

10
задан Adil 14 October 2010 в 16:00
поделиться