<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]ownCloud7 ， 28 如何在LNMP上搭建ownCloud个人云存储系统,Nginx+ownloud重写及https搭建成功步骤。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 12 Dec 2012 06:39:06 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：这块主要是nginx的配置，网上一堆，但真正能用的是少之又少，再加https加入，相对门槛还是有的，在此，我就以我的xdxp.cn搭建成功为例，遇到各种错，一个是样式不对，第二个是重写不对，第三个是扫描webdav有可能会不对，总之不好搞，国内的网友想用，估计没有自己的vps，用虚拟机是不行的，上配置<br/>迁移时注意日志：/data/htdocs/xdxp.cn/data/owncloud.log&nbsp;&nbsp;Seesion目录需要建立：Failed to write session data (files). Please verify that the current setting of session.save_path is correct (&#92;/data&#92;/session) at &#92;/data&#92;/htdocs&#92;/xdxp.cn&#92;/lib&#92;/private&#92;/session&#92;/internal.php#77&quot;,&quot;level&quot;:3,&quot;time&quot;:&quot;2015-05-07T09:14:10+00:00&quot;&#125;&nbsp;&nbsp;chown -R www:www /data/session&nbsp;&nbsp;，chmod -R 777 /data/session 。777必须否则，还是不行。<br/><br/>如下：<br/><textarea name="code" class="php" rows="15" cols="100">
server &#123;
&nbsp;&nbsp;listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;
&nbsp;&nbsp;server_name&nbsp;&nbsp;xdxp.cn;
&nbsp;&nbsp;rewrite ^/(.*) https://xdxp.cn/$1 permanent; #关键代码
&#125;

server &#123;
&nbsp;&nbsp;ssl on;
&nbsp;&nbsp;listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 443 ssl;
&nbsp;&nbsp;ssl_certificate&nbsp;&nbsp;&nbsp;&nbsp; ssl/xdxp.crt;
&nbsp;&nbsp;ssl_certificate_key ssl/xdxp.key;
&nbsp;&nbsp;ssl_protocols&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SSLv3 TLSv1 TLSv1.1 TLSv1.2;
&nbsp;&nbsp;ssl_ciphers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MEDIUM:!aNULL:!MD5;
&nbsp;&nbsp;ssl_prefer_server_ciphers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on;
&nbsp;&nbsp;server_name xdxp.cn;
&nbsp;&nbsp;root /data/htdocs/xdxp.cn;
&nbsp;&nbsp;
&nbsp;&nbsp;if ($http_host != &quot;xdxp.cn&quot;) &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^ https://xdxp.cn$request_uri permanent;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;index index.php index.html;
&nbsp;&nbsp;
&nbsp;&nbsp;location = /favicon.ico &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log_not_found off;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; access_log off;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;location = /robots.txt &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; allow all;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log_not_found off;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; access_log off;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
&nbsp;&nbsp;location ~ /&#92;. &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deny all;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; access_log off;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log_not_found off;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;client_max_body_size 10G; # set max upload size
&nbsp;&nbsp;location ~ ^/remote.php(/.*)$ &#123;
&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_split_path_info ^(.+&#92;.php)(/.*)$;
&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_pass unix:/tmp/php-cgi.sock;
&nbsp;&nbsp;&nbsp;&nbsp;include fastcgi_params;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;error_page 403 = /core/templates/403.php;
&nbsp;&nbsp;error_page 404 = /core/templates/404.php;
&nbsp;&nbsp;
&nbsp;&nbsp;location ~ ^/(data&#124;config&#124;&#92;.ht&#124;db_structure&#92;.xml&#124;README) &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;deny all;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;location / &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rewrite ^(/core/doc/[^&#92;/]+/)$ $1/index.html;
&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try_files $uri $uri/ @webdav;
&nbsp;&nbsp;&#125;

&nbsp;&nbsp;# owncloud WebDAV
&nbsp;&nbsp;location @webdav &#123;
&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_split_path_info ^(.+&#92;.php)(/.*)$;
&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_pass&nbsp;&nbsp;unix:/tmp/php-cgi.sock;
&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_param HTTPS $https;
&nbsp;&nbsp;&nbsp;&nbsp;include fastcgi_params;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;location ~ ^(.+?&#92;.php)(/.*)?$ &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try_files $1 =404;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;include fastcgi_params;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_param SCRIPT_FILENAME $document_root$1;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_param PATH_INFO $2;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_param HTTPS $https;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_pass&nbsp;&nbsp;unix:/tmp/php-cgi.sock;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_intercept_errors on;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_index index.php;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fastcgi_buffers 64 4K;
&nbsp;&nbsp;&#125;
&nbsp;&nbsp;
&nbsp;&nbsp;location ~* ^.+&#92;.(jpg&#124;jpeg&#124;gif&#124;bmp&#124;ico&#124;png&#124;css&#124;js&#124;swf)$ &#123;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;expires 30d;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;access_log off;
&nbsp;&nbsp;&#125;
&#125;

</textarea><br/><br/>#owncloud cron<br/>*/5 * * * * /usr/local/php/bin/php -f /data/htdocs/xdxp.cn/cron.php<br/><br/>这个文章给我的帮助挺大：<br/>http://303i.com/article/2013/02/28/831.html<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>不用花钱，直接下载：http://geekpi.cn/Downloads/owncloud_client/<br/><br/><br/>桌面客户端：http://owncloud.org/sync-clients/<br/><br/>ownCloud 是一个来自 KDE 社区开发的免费软件，提供私人的 Web 服务。当前主要功能包括文件管理（内建文件分享）、音乐、日历、联系人等等，可在PC和服务器上运行。http://owncloud.org/<br/><br/>简单来说就是一个基于Php的自建网盘。基本上是私人使用这样，因为直到现在开发版本也没有暴露注册功能。<br/><br/>ownCloud 4 引入了文件版本话和操作回滚功能，增强了加密功能，新的 API以及更快速和方便的浏览 ODF 文件。此外，ownCloud 4.0 还引入对文件拖放上传、共享日历等功能。<br/><br/>国内有一个：<br/>http://wiki.miniyun.cn/index.php?title=%E8%BF%B7%E4%BD%A0%E4%BA%91%E7%94%A8%E5%A4%84--%E5%8A%9E%E5%85%AC%E6%96%87%E6%A1%A3%E5%90%8C%E6%AD%A5%E5%88%A9%E5%99%A8<br/>http://www.xtit.net/post/Bdrive/<br/>http://sparkleshare.org/<br/><br/>Nginx配置：<br/>http://303i.com/article/2013/02/28/831.html<br/>官方nginx配置：<br/>http://doc.owncloud.org/server/4.5/admin_manual/installation.html#nginx-configuration<br/><br/>Install ownCloud with SSL and Nginx in CentOS 6.5：<br/>http://www.tuicool.com/articles/QFJB7z<br/><br/>安装实践：<br/>http://303i.com/article/2013/02/28/831.html<br/>找不到：<br/>http://xdxp.cn/index.php/apps/firstrunwizard/wizard.php<br/><br/>Install ownCloud with SSL and Nginx in CentOS 6.5:<br/>http://www.howtoforge.com/centos-owncloud-nginx<br/><br/><br/>Nginx Conf ：<br/>http://www.howtoforge.com/running-owncloud-5.0-on-nginx-lemp-on-debian-wheezy<br/>Https:<br/>http://lanbing.org/post/the-nginx-configuration-ssl-and-forced-http-to-jump-to-the-https.html<br/><br/><br/>界面remote找不到样式的情形：<br/>http://303i.com/article/2013/02/28/831.html
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]ownCloud7 ， 28 如何在LNMP上搭建ownCloud个人云存储系统,Nginx+ownloud重写及https搭建成功步骤。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>