做個記錄
yum install owncloud
systemctl start httpd
systemctl stop firewalld
yum install owncloud-httpd
yum install owncloud-mysql
cd /etc/httpd/conf.d/
vi owncloud.conf
修改
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
Require ip 192.168.1
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from 192.168.1
</IfModule>