通信更新,配置文件备份

基础,配置文件,简化版--最小化 <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 On AuthType 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

通信更新,全站ssl化! 盲目没有计划,重新设定目标,最小化测试,完整备份,再做修改–ok!制定计划,方案,流程图!结构化思考,才有未来!

accord. 1, dsm6.5+frp+ppt 2, frp+ nginx uhttpd 443, pravite. test. + simple windows1, putty==================================== back , stop httpd stop frpc apachectl -k stop /opt/etc/init.d/S84frpc stop frpc -c /opt/etc/frpc_full.ini windows2, putty====================================== vim /etc/config/uhttpd /etc/init.d/uhttpd restart netstat -apn | grep 443 https://192.168.11.1 vim frpc.ini---> ssl frpc -c /opt/etc/frpc_full.ini vim /opt/etc/frpc_full.ini frpc -c ./ssl https://ssl-encrypted.cf ========ok! uhttpd, cert, key, ========ok! vim /opt/etc/apache/extra/httpd-ssl.conf SSLCertificateFile \"\" SSLCertificateKeyFile \"/opt/etc/apache/ssl-encrypted.cf/privkey1.pem\" option cert \'/etc/uhttpd.crt\' option key \'/etc/uhttpd.key\' option cert \'/opt/etc/apache/ssl-encrypted.cf/fullchain1.pem\' option key \'/opt/etc/apache/ssl-encrypted.cf/privkey1.pem\' https https://192.168.11.1 https://192.168.11.1 https://ssl-encrypted.cf --------simple configure httpd, ssl, localhost, test! duli, ssl, ssl, httpd , key, + cert, (uhttpd) cp /opt/etc/apache/httpd.conf /opt/etc/apache/httpd.conf--good-use cp /opt/etc/apache/extra/httpd-ssl.conf /opt/etc/apache/extra/httpd-ssl.conf--good-use vim /opt/etc/apache/httpd.conf vim /opt/etc/apache/extra/httpd-ssl.conf /etc/init.d/uhttpd stop apachectl -k stop apachectl -k start ------------------------------------------------ <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\" BrowserMatch \"MSIE \" \\ nokeepalive ssl-unclean-shutdown \\ downgrade-1.0 force-response-1.0 CustomLog \"/opt/var/log/ssl_request_log\" \\ \"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\\"%r\\\" %b\" </VirtualHost> --------------------------------------------- vim only one ssl, simple! listen 443 php ----*.php =====================only one 443 https://webdav2.com/ ====================ok! frpc -c ./ssl https://ssl-encrypted.cf ok! only one listen 443 port! webdav.com webdav2.com ssl paa.com ==> location /paa //webdav-cdn webdav.com --0> location /file //wevdav.com pan.com --->