owncloud去除ssl配置文件有点难找,好不容易配置成功,留作备份。
upstream php-handler {
server 127.0.0.1:9000;
#server unix:ar/run/php5-fpm.sock;
}
server {
listen 80;
server_name localhost;
access_log /home/pan/log/nginx/access.log;
error_log /home/pan/log/nginx/error.log;
# Path to the root of your installation
root /home/pan/www;
# set max upload size
client_max_body_size 10G;
fastcgi_buffers 64 4K;
rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;
rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;
index index.php;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README){
deny all;
}
location / {
# The following 2 rules are only needed with webfinger