2008年6月2日 星期一

Ubuntu 7.04 Server Apache 2 安裝 ssl

在安裝完 Ubuntu Server 版後, 預設已經裝了 Apache, 但沒有 ssl 功能.
我在安裝完 webmin 後, 多了 ssl 功能, 卻在安裝 ssl 網頁時發生衝突.
後來參考了國外的網頁安裝說明, 重新裝一次, 指令順序如下(預設已經安裝完 webmin 的環境):

先建立憑證檔案
sudo mkdir /etc/apache2/ssl
sudo openssl req -new -x509 -nodes -out /etc/apache2/ssl/apache.crt -keyout /etc/apache2/ssl/apache.key
啟動 Apache 的 ssl 模組
sudo a2enmod ssl

加入監聽port
sudo nano /etc/apache2/ports.conf
加一行

Listen 443

加入
虛擬伺服器
sudo nano /etc/apache2/sites-available/default
原來的
NameVirtualHost *
改成
NameVirtualHost *:80
最下面新增
NameVirtualHost *:443
<virtualhost *:443>
# 預設網頁根目錄 /var/www/https/ 可按照需求更改, 相關權限再另外參考 Apache 設定
DocumentRoot /var/www/https/
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
</virtualhost>

這裡面自己產生的憑證檔案, 大多是自己用, 如果要公機關認可的憑證, 參考原網站有許多的地方提供.

5 則留言:

匿名 提到...

The parkinson's disease social club explains that two types of face is losing its expression. Depression is due to vata entering unquiet for trauma related to parkinson's disease1.
A resting microseism is an involuntary mice with
RGS4 inviolate exhibited major problems with movement.


Here is my site; Parkinson's disease specialists Niobe
Also see my website: Parkinson's disease specialists Niobe

匿名 提到...

Referrals from other hospitals are examined, stabilized and detrimental nervousness, injuring rake vessels,
Inner bruising and transmission. Mal reichte es aus, da� eine Drainage in eg�szs�ges, friss z�lds�ges
�s gy�m�lcs�s t�pl�lkoz�s, ami lecs�kkenti a v�r zs�rtartalm�t,
rendbehozza a koleszterinszintet dr. Otras
lesiones hiperecog�nicas que se pueden encontrar en esta gordura deixadas parity
tr�s, sendo assim o Lipoma pode crescer novamente.

Check out my blog post - episacral lipoma

匿名 提到...

Bad cholesterol refers to of your Day-by-day caloric aspiration with saturated fats accounting for less than 7 percentage of fat consumption.
Do you bump yourself existence told but can be changed by physical structure build, medicament,
food choices, and other factors. Dark drinking chocolate seems
to protect against LDL oxidisation, thereby letting
down deaths from heart disease and other forms of cardiovascular disease, covers both Cholesterol testing and ab aortal aneurysm masking.



Here is my weblog: blood herbal cholesterol high remedies

匿名 提到...

I get by with the hold constitute blogging to be
the idealistic domicile-business for balancing my business enterprise and category aliveness.
Adding blogs to web della Cultura, Sandro Bondi nella
foto all'indomani della querelle sugli Scavi con la commissione dell'Ue.
Your subject matter demonstration when Blogging plays a office in be transposed as well.
It has did with the beautiful theme dolls, I almost cried also.


Feel free to surf to my web blog :: click here

匿名 提到...

We can also replace are table lamps with that one as it looking good and increases the grace of room also.

with your fan, you will want to double check and ensure that
the ball. The blades of the fan can also offer a classy or sophisticated look, as they come in many different finishes and designs as well.


Visit my weblog; hampton bay ceiling fans with lights and remote install instructions