Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
alias issue again
- To: nginx-ru@xxxxxxxxx
- Subject: alias issue again
- From: "yokodzun" <nginx-forum@xxxxxxxx>
- Date: Tue, 29 Nov 2011 16:49:53 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=C87NjV8jieDy0WSmMHvZEFRcScCdQhskuycnKqwVKko=; b=RKu0AxSpRr7cKemh0gayv+9wvY8AeBspI5u5+so0Em9kpCxaNmDmfpYrREaRMCw2LCI1eRaVJ9/YHdE38rx26xd05wyuoBWrTBOM4WWEQ7sUxm1kwOmJukdgVLzjKBit;
Нарисовал следующую конструкцию для
добавления алиаса для pma
location / {
root /usr/local/www;
index index.html index.htm index.php;
}
location ~ \.php$ {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param DOCUMENT_ROOT /usr/local/www;
fastcgi_param SCRIPT_FILENAME
/usr/local/www$fastcgi_script_name;
include fastcgi_params;
}
location /pma/ {
alias /usr/local/www/phpMyAdmin;
index index.php;
}
location ~ ^/pma/(.*\.php)$ {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param DOCUMENT_ROOT
/usr/local/www/phpMyAdmin;
fastcgi_param SCRIPT_FILENAME
/usr/local/www/phpMyAdmin$fastcgi_script_name;
include fastcgi_params;
}
}
но при обращении к странице, получаю:
[error] 77500#0: *6 directory index of "/usr/local/www/phpMyAdmin" is
forbidden, client: 2.2.2.2, server: localhost, request: "GET /pma/
HTTP/1.1", host: "1.1.1.1"
Я не так использую alias-ы?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,219314,219314#msg-219314
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|