通信更新,配置文件备份
- Wordpress建设
- 2018-10-03
- 89热度
- 0评论
基础,配置文件,简化版--最小化
<VirtualHost *:443>
ServerName webdav.com
ServerAlias file.ssl-encrypted.cf
DocumentRoot "/home/upload"
DavLockDB "/opt/share/htdocs/DavLock"
<Directory "/home/upload">
DirectoryIndex disabled
Order Allow,Deny
Allow from all
Dav On
AuthType Basic
AuthName DAV
AuthUserFile "/opt/user.basic"
<LimitExcept GET POST OPTIONS>
Require user admin
</LimitExcept>
</Directory>
</VirtualHost><VirtualHost *:443>
ServerName huawei.webdav2.com
ServerAlias huawei.ssl-encrypted.cf
ProxyRequests off
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://192.168.8.1/
ProxyPassReverse / http://192.168.8.1/
ProxyPass /html/ http://192.168.8.1/html/
ProxyPassReverse /html/ http://192.168.8.1/html/
ProxyPass "/css/" "http://192.168.8.1/css/"
ProxyPassReverse "/css/" "http://192.168.8.1/css/"
ProxyPass "/js/" "http://192.168.8.1/js/"
ProxyPassReverse "/js/" "http://192.168.8.1/js/"
ProxyPass "/lib/" "http://192.168.8.1/lib/"
ProxyPassReverse "/lib/" "http://192.168.8.1/lib/"
ProxyPass "/res/" "http://192.168.8.1/res/"
ProxyPassReverse "/res/" "http://192.168.8.1/res/"
</VirtualHost><VirtualHost *:443>
ServerName webdav2.com
ServerAlias ssl-encrypted.cf
DocumentRoot "/opt/share/htdocs"
SSLEngine on
SSLCertificateFile "/opt/etc/apache/ssl-encrypted.cf/fullchain1.pem"
SSLCertificateKeyFile "/opt/etc/apache/ssl-encrypted.cf/privkey1.pem"
<Directory "/opt/share/htdocs">
DirectoryIndex index.php index.htm index.html
Require all granted
</Directory>
ErrorLog "/opt/var/log/error_log"
TransferLog "/opt/var/log/access_log"
</VirtualHost>
=======================================================
全站 ssl化的 之前的 完整文件
=========================================
<VirtualHost *:100>
ServerName webdav.com
ServerAlias file.ssl-encrypted.cf
DocumentRoot "/home/upload"
DavLockDB "/opt/share/htdocs/DavLock"
#<Directory "/opt/share/htdocs">
<Directory "/home/upload">
# DirectoryIndex none 这样的方法也是可以生效的!
# 不接受 index。php 等等文件的索引!
DirectoryIndex disabled
Order Allow,Deny
Allow from all
Dav OnAuthType Basic
AuthName DAV
AuthUserFile "/opt/user.basic"<LimitExcept GET POST OPTIONS>
Require user admin
</LimitExcept>
</Directory>
</VirtualHost><VirtualHost *:100>
ServerName webdav2.com
ServerAlias ssl-encrypted.cf
DocumentRoot "/opt/share/htdocs"
<Directory "/opt/share/htdocs">
DirectoryIndex index.php index.htm index.html
Require all granted
</Directory>
</VirtualHost><VirtualHost *:100>
ServerName huawei.webdav2.com
ServerAlias huawei.ssl-encrypted.cf
ProxyRequests off
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://192.168.8.1/
ProxyPassReverse / http://192.168.8.1/
ProxyPass /html/ http://192.168.8.1/html/
ProxyPassReverse /html/ http://192.168.8.1/html/
ProxyPass "/css/" "http://192.168.8.1/css/"
ProxyPassReverse "/css/" "http://192.168.8.1/css/"
ProxyPass "/js/" "http://192.168.8.1/js/"
ProxyPassReverse "/js/" "http://192.168.8.1/js/"
ProxyPass "/lib/" "http://192.168.8.1/lib/"
ProxyPassReverse "/lib/" "http://192.168.8.1/lib/"
ProxyPass "/res/" "http://192.168.8.1/res/"
ProxyPassReverse "/res/" "http://192.168.8.1/res/"
</VirtualHost>
