|;Before;you;install;the;package;you;now;should;prepare;the;SSL;|;
|;certificate;system;by;running;the;"make;certificate";command.;|;
|;For;different;situations;the;following;variants;are;provided:;|;
|;|;
|;%;make;certificate;TYPE=dummy;(dummy;self-signed;Snake;Oil;cert);|;
|;%;make;certificate;TYPE=test;(test;cert;signed;by;Snake;Oil;CA);|;
|;%;make;certificate;TYPE=custom;(custom;cert;signed;by;own;CA);|;
|;%;make;certificate;TYPE=existing;(existing;cert);|;
|;CRT=/path/to/your.crt;[KEY=/path/to/your.key];|;
|;|;
|;Use;TYPE=dummy;when;you’re;a;vendor;package;maintainer,;|;
|;the;TYPE=test;when;you’re;an;admin;but;want;to;do;tests;only,;|;
|;the;TYPE=custom;when;you’re;an;admin;willing;to;run;a;real;server;|;
|;and;TYPE=existing;when;you’re;an;admin;who;upgrades;a;server.;|;
|;(The;default;is;TYPE=test);|;
|;|;
|;Additionally;add;ALGO=RSA;(default);or;ALGO=DSA;to;select;|;
|;the;signature;algorithm;used;for;the;generated;certificate.;|;
|;|;
|;Use;"make;certificate;VIEW=1";to;display;the;generated;data.;|;
|;|;
|;Thanks;for;using;Apache;&;mod_ssl.;Ralf;S.;Engelschall;|;
|;rse@engelschall.com;|;
|;www.engelschall.com;|;
----------------------------------------------------------------------- ;
現(xiàn)在你可以創(chuàng)建一個(gè)定制的證書 。該選項(xiàng)將提示輸入你的地址、公司、和其他一些東西 。關(guān)于證書,請參閱本文的結(jié)尾 。;
#;make;certificate;TYPE=custom;
現(xiàn)在安裝Apache...;
#;make;install;
如果一切正常,你應(yīng)該看到類似于以下的信息:;
---------------------------------------------------------------------------------- ;
|;You;now;have;successfully;built;and;installed;the;|;
|;Apache;1.3;HTTP;server.;To;verify;that;Apache;actually;|;
|;works;correctly;you;now;should;first;check;the;|;
|;(initially;created;or;preserved);configuration;files;|;
|;|;
|;/usr/local/apache/conf/httpd.conf;|;
|;and;then;you;should;be;able;to;immediately;fire;up;|;
|;Apache;the;first;time;by;running:;|;
|;|;
|;/usr/local/apache/bin/apachectl;start;|;
|;Or;when;you;want;to;run;it;with;SSL;enabled;use:;|;
|;|;
|;/usr/local/apache/bin/apachectl;startssl;|;
|;Thanks;for;using;Apache.;The;Apache;Group;|;
|;http://www.apache.org;/;|;
---------------------------------------------------------------------------------- ;
現(xiàn)在驗(yàn)證Apache和PHP是否正在工作 。然而,我們需要編輯srm.conf和httpd.conf保證我們把PHP類型加到了配置中 。查看httpd.conf并去掉下列行的注釋 。如果你精確地遵循了本文的指令,你的httpd.conf文件將位于/usr/local/apache/conf目錄 。文件有一行針對php4的addtype加了注釋,現(xiàn)在就去掉注釋 。httpd.conf;文件--片斷;
>
>;#;And;for;PHP;4.x,;use:;
>;#;
--->;AddType;application/x-httpd-php;.php;
--->;AddType;application/x-httpd-php-source;.phps;
>
>
現(xiàn)在我們準(zhǔn)備啟動(dòng)Apache服務(wù)器看它是否在工作 。首先我們將啟動(dòng)不支持SSL的服務(wù)器看它是否啟動(dòng)了 。我們將檢查對PHP的支持,然后我們將停止服務(wù)器并且啟動(dòng)啟用了SSL支持的服務(wù)器并檢查我們是否一切正常 。configtest;將檢查所有配置是否正確設(shè)置 。;
#;cd;/usr/local/apache/bin;
#;./apachectl;configtest;
Syntax;OK;
#;./apachectl;start;
./apachectl;start:;httpd;started;
測試我們的工作
Apache;正在工作嗎?;
如果它工作正常,當(dāng)你用Netscape連接服務(wù)器時(shí),你將看見一幅類似于這幅屏幕捕獲的屏幕 。這是基本上;是Apache缺省安裝的頁面 。;
注意:你可以用域名或機(jī)器實(shí)際的IP地址與服務(wù)器連接 。檢查這兩種情形,確保一切工作正常 。;
推薦閱讀
- apache Tomcat 服務(wù)器配置
- 四 Windows 2003服務(wù)器安全加固方案
- 三 服務(wù)器之戰(zhàn) Linux終結(jié)微軟霸權(quán)
- 男刀怎么打劫
- 二 服務(wù)器之戰(zhàn) Linux終結(jié)微軟霸權(quán)
- 一 Linux之戰(zhàn) Linux終結(jié)微軟霸權(quán)
- 二 Windows2003自帶服務(wù)也能架設(shè)共享服務(wù)器
- 一 Windows2003自帶服務(wù)也能架設(shè)共享服務(wù)器
- 裝修面積如何計(jì)算
- 鳳凰是神話傳說中的“百鳥之王”其中的雌鳥是?螞蟻莊園11.10日答案
