alarm2016-03-30 faceyejinmo
所要准备的东西及前提
*本文所用apache版本为apache2,OS为ubuntu 14.04
a2enmod ssl
mkdir /etc/apache2/ssl
打开FileZilla,连接,协议选择SFTP,将wosign下发的证书(三个文件)上传至之前创建的SSL目录(/etc/apache2/ssl)
cd /etc/apache2/sites-available vim default-ssl.conf
...... <VirtualHost *:443> ...... ServerAdmin webmaster@localhost ServerName 此处替换成自己的域名:443 SSLEngine on SSLCertificateKeyFile /etc/apache2/ssl/你的对应文件名.key SSLCertificateFile /etc/apache2/ssl/你的对应文件名.crt SSLCACertificateFile /etc/apache2/ssl/你的对应文件名.crt ...... </VirtualHost> ......
service apache2 restart
https://www.你的域名.com
cd /etc/apache2 vim apache2.conf
...... <Directory /var/www/> ...... </Directory> ......
cd /var/www vim .htaccess
<IfModule mod_rewrite.c>^M RewriteEngine On^M RewriteBase /^M RewriteCond %{SERVER_PORT} 80^M RewriteRule ^(.*)$ https://www.你的域名.com/$1 [R=301,L]^M </IfModule>
(#context[\”xwork.MethodAccessor.denyMethodExecution\”]=new java.lang.Boolean(false),#_memberAccess[\”allowStaticMethodAccess\”]=new java.lang.Boolean(true),#_memberAccess.excludeProperties={},#a_str=’814F60BD-F6DF-4227-‘,#b_str=’86F5-8D9FBF26A2EB’,#[email protected]@getResponse(),#a_resp.getWriter().println(#a_str+#b_str),#a_resp.getWriter().flush(),#a_resp.getWriter().close())(meh)
Youmustbe loggedin to post a comment.