![安全linux網(wǎng)絡(luò)嵌入架構(gòu)工程師培訓(xùn)班第二十三課之下源碼搭建php論壇apache安裝配置_第1頁](http://file4.renrendoc.com/view/e9bafb454384cdb5e3b4f31f3d692fa3/e9bafb454384cdb5e3b4f31f3d692fa31.gif)
![安全linux網(wǎng)絡(luò)嵌入架構(gòu)工程師培訓(xùn)班第二十三課之下源碼搭建php論壇apache安裝配置_第2頁](http://file4.renrendoc.com/view/e9bafb454384cdb5e3b4f31f3d692fa3/e9bafb454384cdb5e3b4f31f3d692fa32.gif)
![安全linux網(wǎng)絡(luò)嵌入架構(gòu)工程師培訓(xùn)班第二十三課之下源碼搭建php論壇apache安裝配置_第3頁](http://file4.renrendoc.com/view/e9bafb454384cdb5e3b4f31f3d692fa3/e9bafb454384cdb5e3b4f31f3d692fa33.gif)
![安全linux網(wǎng)絡(luò)嵌入架構(gòu)工程師培訓(xùn)班第二十三課之下源碼搭建php論壇apache安裝配置_第4頁](http://file4.renrendoc.com/view/e9bafb454384cdb5e3b4f31f3d692fa3/e9bafb454384cdb5e3b4f31f3d692fa34.gif)
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
Linux網(wǎng)絡(luò)嵌入架構(gòu)工程師培訓(xùn)班二十三1WebWeb還可以提供與客戶之間的信息交互,提本節(jié)課詳細(xì)講解Apache的源代碼安裝以及基本配置2、說明tar-zxvfhttpd-2.2.9.tar.gz //現(xiàn)在是2.2.9 ./configuremake##ThisisthemainApacheHTTPserverconfigurationfile. Itcontainsthe#configurationdirectivesthatgivetheserveritsinstructions.#See<URL:>fordetailedinformation.#Inparticular,see#<URL:#foradiscussionofeachconfigurationdirective.#DoNOTsimplyreadtheinstructionsinherewithout#whattheydo. They'rehereonlyashintsorreminders. Ifyouareunsure#consulttheonlinedocs.Youhavebeenwarned.##Configurationandlogfilenames:Ifthefilenamesyouspecifyformany#oftheserver'scontrolfilesbeginwith"/"(or"drive:/"forWin32),the#serverwillusethatexplicitpath. Ifthefilenamesdo*not*begin#with"/",thevalueofServerRootisprepended--so"logs/foo_log"#withServerRootsetto"/usr/local/apache"willbeinterpretedbythe#serveras"/usr/local/apache/logs/foo_log".##ServerRoot:Thetopofthedirectorytreeunderwhichtheserver's#configuration,error,andlogfilesarekept.##Donotaddaslashatofthedirectory Ifyou#ServerRootatanon-localdisk,besuretopointtheLockFiledirective#atalocaldisk. IfyouwishtosharethesameServerRootformultiple#httpddaemons,youwillneedtochangeatleastLockFileandPidFile.ServerRoot##Listen:AllowsyoutobindApachetospecificIPaddressesand/or#ports,insteadofthedefault.Seealsothe<VirtualHost>#directive.#ChangethistoListenonspecificIPaddressesasshownbelowto#preventApachefromglommingontoallboundIPaddresses.##ListenListen##DynamicSharedObject(DSO)##TobeabletousethefunctionalityofamodulewhichwasbuiltasaDSOyou#havetoplacecorresponding`LoadModule'linesatthislocationsothe#directivescontainedinitareactuallyavailable_before_theyareused.#Staticallycompiledmodules(thoselistedby`httpd-l')donotneed#tobeloadedhere.##LoadModulefoo_modulemodules/mod_foo.so<IfModule<IfModule!mpm_winnt_module>#Ifyouwishhttpdtorunasadifferentuserroup,youmustrun#httpdasrootinitiallyanditwillswitch.##User/Group:Thename(or#number)oftheuser/grouptorunhttpdas.#Itisusuallygoodpracticetocreateadedicateduserandgroupfor#runninghttpd,aswithmostsystemservices.UserdaemonGroupdaemon#'Main'serverconfiguration#Thedirectivesinthissectionsetupthevaluesusedbythe'main'#server,whichrespondstoanyrequeststhataren'thandledbya#<VirtualHost>definition. Thesevaluesalsoprovidedefaultsfor#any<VirtualHost>containersyoumaydefinelaterinthefile.##Allofthesedirectivesmayappearinside<VirtualHost>containers,#inwhichcasethesedefaultsettingswillbeoverriddenforthe#virtualhostbeingdefined.##ServerAdmin:Youraddress,whereproblemswiththeservershouldbe ed.Thisaddressappearsonsomeserver-generatedpages,such#aserror s.e.g.adm###ServerNamegivesthenameandportthattheserverusestoidentify#Thiscanoftenbedeterminedautomatically,butwe mendyouspecify#itexplicitlytopreventproblemsduringstartup.##Ifyourhostdoesn'thavearegisteredDNSname,enteritsIPaddresshere.# Root:Thedirectoryoutofwhichyouwillserve s.Bydefault,allrequestsaretakenfromthisdirectory,but#symboliclinksandaliasesmaybeusedtopointtootherlocations.#Root##EachdirectorytowhichApachehasaccesscanbeconfiguredwithrespect#towhichservicesandfeaturesareallowedand/ordisabledinthat#directory(anditssubdirectories).#,weconfigurethe"default"tobeaveryrestrictivesetof#features.#<DirectoryOptionsFollowSymLinksAllowOverrideNoneOrderdeny,allowDenyfrom##Notethatfromthispointforwardyoumustspecifically#particularfeaturestobeenabled-soifsomething'snotworkingas#youmightexpect,makesurethatyouhavespecificallyenabledit#below.###Thisshouldbechangedtowhateveryouset Rootto.<Directory##PossiblevaluesfortheOptionsdirectiveare"None","All",#oranycombinationof: IndexesIncludesFollowSymLinksSymLinksifOwnerMatchExecCGIMultiViews#Notethat"MultiViews"mustbenamed*explicitly*"OptionsAll"#doesn'tgiveittoyou.##TheOptionsdirectiveisbothcomplicatedandimportant. Pleasesee##formoreinformation.OptionsIndexes##AllowOverridecontrolswhatdirectivesmaybeplacedin.htaccessfiles.#Itcanbe"All","None",oranycombinationofthekeywords: OptionsFileInfoAuthConfigLimit##Controlswhocangetstufffromthisserver.Orderallow,denyAllowfromall#DirectoryIndex:setsthefilethatApachewillserveifadirectory#isrequested.#<IfModuleDirectoryIndexindex.html##Thefollowinglinesprevent.htaccessand.htpasswdfilesfrombeing#viewedbyWebclients.#<FilesMatch"^\.ht">Orderallow,denyDenyfromall##ErrorLog:Thelocationoftheerrorlog#IfyoudonotspecifyanErrorLogdirectivewithina<VirtualHost>#container,errormessagesrelatingtothatvirtualhostwillbe#loggedhere. Ifyou*do*defineanerrorlogfilefora<VirtualHost>#container,thathost'serrorswillbeloggedthereandnothere.#ErrorLog##LogLevel:Controlthenumberofmessagesloggedtotheerror_log.#Possiblevaluesinclude:debug,info,notice,warn,error,crit,#alert,emerg.LogLevel<IfModulelog_config_module>#Thefollowingdirectivesdefinesomeformatnicknamesforusewith#aCustomLogdirective(seebelow).#LogFormat"%h%l%u%t\"%r\"%>s%b\"%{Referer}i\"\"%{User-Agent}i\""combinedLogFormat"%h%l%u%t\"%r\"%>s%b"common<IfModule#Youneedtoenablemod_logio.ctouse%IandLogFormat"%h%l%u%t\"%r\"%>s%b\"%{Referer}i\"\"%{User-Agent}i\"%I%O"##Thelocationandformatoftheaccesslogfile(CommonLogfileFormat).#Ifyoudonotdefineanyaccesslogfileswithina<VirtualHost>#container,theywillbeloggedhere. Contrariwise,ifyou*do*#defineper-<VirtualHost>accesslogfiles,transactionswillbe#loggedthereinand*not*inthisfile.CustomLog"logs/access_log"##Ifyoupreferalogfilewithaccess,agent,andrefererinformation#(CombinedLogfileFormat)youcanusethefollowing##CustomLog"logs/access_log"<IfModulealias_module>#Redirect:Allowsyoutolclientsabout sthatusedto#existinyourserver'snamespace,butdonotanymore.Theclient#willmakeanewrequestforthe atitsnewlocation.##Redirectpermanent/foo ##Alias:Mapswthsintofilesystempathsandisusedto#accesscontentthatdoesnotliveunderthe #Example:#Alias/wth/full/filesystem/path#Ifyouincludeatrailing/on/wththentheserverwill#requireittobepresentintheURL. Youwillalsolikely#needtoprovidea<Directory>sectiontoallowaccessto#thefilesystempath.##ScriptAlias:Thiscontrolswhichdirectoriescontainserverscripts.#ScriptAliasesareessentiallythesameasAliases,exceptthat#sinthedirectoryaretreatedasapplications#runbytheserverwhenrequestedratherthanasssenttothe#client. Thesamerulesabouttrailing"/"applytoScriptAlias#directivesastoAlias.<IfModulecgid_module>#ScriptSock:Onthreadedservers,designatethepathtotheUNIX#socketusedtocommunicatewiththeCGIdaemonofmod_cgid.#Scriptsock#"/usr/local/apache/cgi-bin"shouldbechangedtowhateveryourScriptAliased#CGIdirectoryexists,ifyouhavethatconfigured.#<Directory"/usr/local/apache/cgi-bin">AllowOverrideNoneOptionsNoneOrderallow,denyAllowfromall##DefaultType:thedefaultMIMEtypetheserverwillusefor#ifitcannototherwisedetermineone,suchasfromfilenameextensions.#IfyourservercontainsmostlytextorHTML s,"text/plain"is#agoodvalue. Ifmostofyourcontentisbinary,suchasapplications#orimages,youmaywanttouse"application/octet-stream"insteadto#keepbrowsersfromtryingtodisplaybinaryfilesasthoughtheyare#text.#<IfModulemime_module>#TypesConfigpointstothefilecontainingthelistofmapsfrom#filenameextensiontoMIME-type.###AddTypeallowsyoutoaddtooroverridetheMIMEconfiguration#filespecifiedinTypesConfigforspecificfiletypes.##AddTypeapplication/x-gzip.tgz#AddEncodingallowsyoutohavecertainbrowsers #informationonthefly.Note:Notallbrowserssupportthis.# press.Z#AddEncodingx-gzip.gz.tgz#IftheAddEncodingdirectivesabovearecommented-out,thenyou#probablyshoulddefinethoseextensionstoindicatemediatypes:# press##AddHandlerallowsyoutomapcertainfileextensionsto"handlers":#actionsunrelatedtofiletype.Thesecanbeeitherbuiltintotheserver#oraddedwiththeActiondirective(seebelow)##TouseCGIscriptsoutsideofScriptAliased#(Youwillalsoneedtoadd"ExecCGI"tothe"Options"directive.)#AddHandlercgi-script#Fortypemaps(negotiated#AddHandlertype-map##Filtersallowyoutoprocesscontentbeforeitissenttotheclient.#Toparse.shtmlfilesforserver-sideincludes#(Youwillalsoneedtoadd"Includes"tothe"Options"directive.)#AddTypetext/html.shtml#AddOutputFilterINCLUDES.shtml##Themod_mime_magicmoduleallowstheservertousevarioushintsfromthe#contentsofthefileitselftodetermineitstype. TheMIMEMagicFile#directivelsthemodulewherethehintdefinitionsarelocated.#MIMEMagicFile##Customizableerrorresponsescomeinthreeflavors:#1)plaintext2)localredirects3)externalredirects##Some#Error500"Theservermadeaboo 404 404"/cgi- 402http ##EnableMMAPandEnableSendfile:Onsystemsthatsupportit,#memory-maporthesendfilesyscallisusedtodeliver#files. Thisusuallyimprovesserverperformance,butmust#beturnedoffwhenservingfrom
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 礦山機(jī)械設(shè)備加工、維修項目建議書(立項報告)
- 2025年人造草坪足球場施工合同
- 2025年度建造師工勞動合同標(biāo)準(zhǔn)范本
- 2025年度大型企業(yè)年會活動承辦合同書
- 2025年度灰口鐵精密加工及定制服務(wù)合同
- 貴州2025年貴州省大數(shù)據(jù)發(fā)展管理局所屬事業(yè)單位招聘5人筆試歷年參考題庫附帶答案詳解
- 聊城2025年山東聊城大學(xué)人才招聘筆試歷年參考題庫附帶答案詳解
- 漯河2024年河南漯河市港澳臺僑和留學(xué)人員服務(wù)中心引進(jìn)高層次人才筆試歷年參考題庫附帶答案詳解
- 漯河2024年河南漯河醫(yī)學(xué)高等??茖W(xué)校人才引進(jìn)5人筆試歷年參考題庫附帶答案詳解
- 輸卵管結(jié)核免疫干預(yù)策略-詳解洞察
- 2024-2030年中國免疫細(xì)胞存儲行業(yè)發(fā)展模式及投資戰(zhàn)略分析報告
- 家庭清潔課件教學(xué)課件
- 湖南財政經(jīng)濟(jì)學(xué)院《常微分方程》2023-2024學(xué)年第一學(xué)期期末試卷
- 2011年公務(wù)員國考《申論》真題卷及答案(地市級)
- 《籃球體前變向運球技術(shù)》教案(共三篇)
- 多元化評價體系構(gòu)建
- 部編版六年級下冊道德與法治全冊教案教學(xué)設(shè)計
- DBJ04∕T 290-2012 袖閥管注漿加固地基技術(shù)規(guī)程
- GB/T 17775-2024旅游景區(qū)質(zhì)量等級劃分
- 燈籠彩燈安裝合同范本
- 物流無人機(jī)垂直起降場選址與建設(shè)規(guī)范
評論
0/150
提交評論