查看“沙盒”的源代码
来自Ubuntu中文
←
沙盒
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
The ''mod_ssl'' module adds an important feature to the Apache2 server - the ability to encrypt communications. Thus, when your browser is communicating using SSL, the https:// prefix is used at the beginning of the Uniform Resource Locator (URL) in the browser navigation bar. The ''mod_ssl'' module is available in ''apache2-common'' package. Execute the following command from a terminal prompt to enable the ''mod_ssl'' module:<br/><code style="background-color:lightgray">sudo a2enmod ssl</code> There is a default HTTPS configuration file in /etc/apache2/sites-available/default-ssl. In order for Apache2 to provide HTTPS, a certificate and key file are also needed. The default HTTPS configuration will use a certificate and key generated by the ssl-cert package. They are good for testing, but the auto-generated certificate and key should be replaced by a certificate specific to the site or server. For information on generating a key and obtaining a certificate see [https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html Certificates] To configure Apache2 for HTTPS, enter the following:<br/><code style="background-color:lightgray">sudo a2ensite default-ssl</code> : <span style="background-color:lightgray">The directories /etc/ssl/certs and /etc/ssl/private are the default locations. If you install the certificate and key in another directory make sure to change SSLCertificateFile and SSLCertificateKeyFile appropriately. </span> With Apache2 now configured for HTTPS, restart the service to enable the new settings: <br/><code style="background-color:lightgray">sudo service apache2 restart</code> : <span style="background-color:lightgray">Depending on how you obtained your certificate you may need to enter a passphrase when Apache2 starts. </span> You can access the secure server pages by typing https://your_hostname/url/ in your browser address bar.
返回
沙盒
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息