Tag: nbsp Represents the Connect Write Virtual/etc/tin server configuration
First, Implementing Access http jump HTTPS access (http one-way authentication)
① Modifying a configuration file
# vim/etc/httpd/conf/httpd.conf
added at the end of the file
<ifmodule ssl_module>
Sslrandomseed startup Builtin : Perform built-in functions ; internal key Directive
Sslrandomseed Connect Builtin
domain Jump
</IfModule>
Rewriteengine on
Rewritecond%{server_port}!^443$
Rewriterule (. *) https://%{server_name}/$1 [R]
: Rewrite condition, service port, not 443 set
: Rewrite rules , . * indicates that the next test is arbitrary,R is replaced, and replaced by https://% {server_name}
IP Jump
Listen 80
<virtualhost *:80>
ServerName Web
documentroot/var/www/html/
Add rewriteengine on
Add rewritecond%{server_port}!^443$
Add rewriterule ^ (. *) $ https://%{http_host}$1 [R]
</VirtualHost>
② from the service
# Service httpd Restart
③ client-side test : access to http jumps directly to HTTPS
HTTP Jump HTTPS third article