nginx를 사용하여 Owncloud 4 인스턴스를 웹 서버로 설정하려고 합니다. 호스트 장치는 Debian 6이 사전 설치된 Raspberry Pi입니다. 브라우저에서 Owncloud 설치의 URL을 열려고 하면 No input file specified
.Installation was located at /var/www/owncloud/owncloud
.I am using it for spawn_fcgi
cgi입니다.
내 nginx 구성 파일은 /etc/nginx/sites-available/default
다음과 같습니다.
server {
listen 80; ## listen for ipv4
#listen [::]:80 default ipv6only=on; ## listen for ipv6
server_name raspberrypi;
access_log /var/log/nginx/localhost.access.log;
root /var/www/owncloud/owncloud/;
index index.php;
# deny direct access
location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
deny all;
}
# default try order
location / {
try_files $uri $uri/ @webdav;
}
# owncloud WebDAV
location @webdav {
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_pass 127.0.0.1:9000; # or use php-fpm with: "unix:/var/run/php-fpm/php-fpm.sock;"
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# enable php
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000; # or use php-fpm with: "unix:/var/run/php-fpm/php-fpm.sock;"
}
location /doc {
root /usr/share;
autoindex on;
allow 127.0.0.1;
deny all;
}
location /images {
root /usr/share;
autoindex on;
}
}
내 /etc/nginx/nginx.conf
모습은 다음과 같습니다.
user www-data;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
http {
include /etc/nginx/mime.types;
access_log /var/log/nginx/access.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
잘못된 구성을 파악하는 데 도움을 주실 수 있나요?