Merge pull request #290 from Luoxcat/master

/Install Apache With SSL in Ubuntu 13.10.md已翻译byLuox
This commit is contained in:
Xingyu.Wang 2013-10-27 21:15:17 -07:00
commit 31097c234c
2 changed files with 83 additions and 45 deletions

View File

@ -1,3 +1,4 @@
翻译中 Luox
di Disk Information Utility, Better Than df
================================================================================
If you are a Linux command line user, you would have definitely used the df command to check disk usage for file systems. Though df is a popular command but still it does not provide some advanced features like actual disk space that is available to a user, various useful display formats etc. There is another command line utility available that not only provides these advanced features but also all the features that df provides. In this article, we will discuss the disk information utility — **di**.
@ -261,4 +262,4 @@ via: http://mylinuxbook.com/di-a-disk-information-utility/
[1]:http://www.expertslogin.com/linux-command/linux-df-command/
[2]:http://www.manpagez.com/man/1/di/
[3]:http://www.gentoo.com/di/
[4]:http://freecode.com/projects/diskinfo
[4]:http://freecode.com/projects/diskinfo

View File

@ -1,97 +1,134 @@
翻译 hello world
Install Apache With SSL in Ubuntu 13.10
Ubuntu 13.10 安装Apache和SSL
================================================================================
In this short tutorial let me show you how to install Apache with SSL support. My testbox details are given below:
### The System info ###
通过这个简短的教程,让我来给你展示如何安装Apache与SSL的支持.以下是我的试验机的详细说明:
### 系统信息 ###
root@ubuntu-unixmen:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:b8:b4:87
inet addr:10.1.1.110 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feb8:b487/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1738 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:168845 (168.8 KB) TX bytes:9767 (9.7 KB)
----------
root@ubuntu-unixmen:~# cat /etc/issue
Ubuntu 13.10 \n \l
### 安装apache ###
### Install apache ###
sudo apt-get install apache2 apache2-doc apache2-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
### Test apache page ###
Open up the browser and navigate to http://ip-address/. You should see something like this.
### apache测试页面 ###
打开浏览器,转到http://ip-address/.你应该会看到类似以下的信息.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/10/apache2-ubuntu.png)
### Create diretory ###
Create a directory called **ssl**.
### 创建目录 ###
创建一个名为**ssl**的目录
sudo mkdir /etc/apache2/ssl
### Create a self-signed certificate ###
### 创建一个自签名凭证 ###
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt
Generating a 2048 bit RSA private key.......................................................................................+++....................................+++writing new private key to '/etc/apache2/ssl/apache.key'-----You are about to be asked to enter information that will be incorporatedinto your certificate request.What you are about to enter is what is called a Distinguished Name or a DN.There are quite a few fields but you can leave some blankFor some fields there will be a default value,If you enter '.', the field will be left blank.-----Country Name (2 letter code) [AU]:
### Activate Apache SSL module ###
Run the following command to enable ssl mode.
### 开启Apache SSL模块 ###
运行以下命令开启ssl模块
$ a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl
Edit **/etc/apache2/sites-enabled/default-ssl.conf** fie,
编辑 **/etc/apache2/sites-enabled/default-ssl.conf** 文件,
<VirtualHost 10.1.1.110:443>
ServerAdmin webmaster@localhost
ServerName www.unixmen.com:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
### Activate Apache default ssl virtual host: ###
### 启动Apache缺省ssl的虚拟主机: ###
a2ensite default-ssl
Enabling site default-ssl.
To activate the new configuration, you need to run:
service apache2 reload
### Restart Apache: ###
### 重启Apache: ###
sudo service apache2 restart
### Test SSL Connection ###
Open browser and navigate **to https://IP-address**.
###测试SSL连接###
打开浏览器,转到**https://IP-address**.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/10/apache-cert.png)
完成了.再见!
Youre done. Cheers!
"完成了.再见!"
--------------------------------------------------------------------------------
via: http://www.unixmen.com/install-apache-ssl-ubuntu-13-10/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
译者:[Luoxcat](https://github.com/Luoxcat) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出