NovoMiloševačka Slika dana - 11.12.2013

Još edan stari izraz...

Još edan stari izraz...

    Opis: ion="1.0" encoding="EUC-KR"?> mod_example - Apache HTTP Server

<-
Apache > HTTP Server > Documentation > Version 2.4 > ¸đľâ

žĆĆÄÄĄ ¸đľâ mod_example

°Ą´ÉÇŃ žđžî:  en  |  fr  |  ko 

ŔĚ šŽź­´Â ĂÖ˝ĹĆÇ šřżŞŔĚ žĆ´Ő´Ď´Ů. ĂֹٿĄ şŻ°ćľČ łťżëŔş żľžî šŽź­¸Ś Âü°íÇĎźźżä.
źł¸í:žĆĆÄÄĄ ¸đľâ API¸Ś źł¸íÇŃ´Ů
ťóĹÂ:Experimental
¸đľâ¸í:example_module
źŇ˝şĆÄŔĎ:mod_example.c

żäžŕ

žĆĆÄÄĄ ščĆ÷şť modules/experimental ľđˇşĹ与żĄ ŔÖ´Â ĆÄŔĎľéŔş žĆĆÄÄĄ API¸Ś ťçżëÇĎżŠ ¸đľâŔť ŔŰźşÇϡÁ´Â ťçś÷ľéŔť ľ˝ąâŔ§ÇŃ żšÁŚ´Ů.

mod_example.c´Â ¸đľç ÄÝšé(callback) ą¸ÁśżÍ ČŁĂâ šŽšýŔť źł¸íÇĎ´Â ĆÄŔĎŔĚ´Ů. ´ç˝ĹŔş ¸đľâżĄ ŔĚ ¸đľç ÄÝšéŔť ą¸ÇöÇŇ ÇĘżä°Ą žř´Ů. ťç˝Ç Á¤šÝ´ë´Ů!

example ¸đľâŔş ˝ÇÁŚˇÎ ľżŔŰÇĎ´Â ¸đľâŔĚ´Ů. ŔĚ ¸đľâŔť ź­šöżĄ żŹ°áÇĎ°í ĆŻÁ¤ Ŕ§ÄĄżĄ "example-handler" Çھ顯¸Ś ÇŇ´çÇĎżŠ ą×°÷Ŕť şęśóżěÂĄÇϸé example ¸đľâŔÇ żŠˇŻ ÄÝšéŔť ČŽŔÎÇŇ źö ŔÖ´Ů.

top

example ¸đľâ ÄÄĆÄŔĎÇĎąâ

ź­šöżĄ example ¸đľâŔť Ć÷ÇÔÇϡÁ¸é ´ŮŔ˝ °úÁ¤Ŕť °ĹÄŁ´Ů:

  1. --enable-example żÉźÇ°ú ÇÔ˛˛ configure¸Ś ˝ÇÇŕÇŃ´Ů.
  2. ź­šö¸Ś ÄÄĆÄŔĎÇŃ´Ů ("make"¸Ś ˝ÇÇŕÇŃ´Ů).

ŔÚ˝ĹŔĚ ¸¸ľç ¸đľâŔť Ăß°ĄÇϡÁ¸é:

  1. cp modules/experimental/mod_example.c modules/new_module/mod_myexample.c
  2. ĆÄŔĎŔť źöÁ¤ÇŃ´Ů.
  3. modules/new_module/config.m4 ĆÄŔĎŔť ¸¸ľç´Ů.
    1. APACHE_MODPATH_INIT(new_module)Ŕť Ăß°ĄÇŃ´Ů.
    2. modules/experimental/config.m4 ĆÄŔĎżĄź­ "example"ŔĚ ŔÖ´Â APACHE_MODULE ÁŮŔť şšťçÇؿ´Ů.
    3. Ăššř° žĆąÔ¸ŐĆŽ "example"Ŕť myexampleˇÎ şŻ°ćÇŃ´Ů.
    4. ľÎšř° žĆąÔ¸ŐĆŽ ŔÚ¸ŽżĄ ŔÚ˝ĹŔĚ ¸¸ľç ¸đľâżĄ ´ëÇŃ °Ł´ÜÇŃ źł¸íŔť Ŕű´Â´Ů. configure --help¸Ś ˝ÇÇŕÇĎ¸é żŠąâżĄ ąâˇĎÇŃ źł¸íŔť ş¸żŠÁŘ´Ů.
    5. ¸đľâŔť ÄÄĆÄŔĎÇŇś§ ĆŻş°ÇŃ C ÄÄĆÄŔϡŻ żÉźÇ, ¸ľÄż żÉźÇ, śóŔ̺ꡯ¸Ž°Ą ÇĘżäÇĎ¸é °˘°˘ CFLAGS, LDFLAGS, LIBSżĄ Ăß°ĄÇŃ´Ů. modules ľđˇşĹ与żĄ ŔÖ´Â ´Ů¸Ľ config.m4 ĆÄŔĎľéŔť Âü°íÇĎśó.
    6. APACHE_MODPATH_FINISH¸Ś Ăß°ĄÇŃ´Ů.
  4. module/new_module/Makefile.in ĆÄŔĎŔť ¸¸ľç´Ů. ¸đľâŔť ÄÄĆÄŔĎÇĎ´ÂľĽ ĆŻş°ÇŃ ¸íˇÉžî°Ą ÇĘżäžř´Ů¸é, ĆÄŔĎżĄ include $(top_srcdir)/build/special.mk¸¸ ŔÖžîľľ ľČ´Ů.
  5. ĂÖťóŔ§ ľđˇşĹ与żĄź­ ./buildconf ¸Ś ˝ÇÇŕÇŃ´Ů.
  6. --enable-myexample żÉźÇŔť ťçżëÇĎżŠ ź­šö¸Ś ÄÄĆÄŔĎÇŃ´Ů
top

mod_example ¸đľâ ťçżëÇĎąâ

example ¸đľâŔť ťçżëÇϡÁ¸é httpd.conf ĆÄŔĎżĄ ´ŮŔ˝°ú °°Ŕş źłÁ¤Ŕť Ăß°ĄÇĎśó:

<Location /example-info>
SetHandler example-handler
</Location>

žĆ´Ď¸é .htaccess ĆÄŔĎżĄ ´ŮŔ˝°ú °°Ŕş łťżëŔť Ăß°ĄÇĎ°í, ą× Ŕ§ÄĄżĄź­ "test.example" °°Ŕş ĆÄŔĎŔť żäĂťÇĎśó:

AddHandler example-handler .example

ź­šö¸Ś Ŕç˝ĂŔŰÇŃ ČÄ ŔĚ Ŕ§ÄĄ¸Ś şęśóżěÂĄÇĎ¸é žŐżĄź­ ¸ťÇŃ łťżëŔť ş¸°ÔľÉ °ÍŔĚ´Ů.

top

Example Áö˝Ăžî

źł¸í:žĆĆÄÄĄ ¸đľâ API¸Ś źł¸íÇĎąâŔ§ÇŃ żšÁŚ Áö˝Ăžî
šŽšý:Example
ťçżëŔĺźŇ:ÁÖź­šöźłÁ¤, °ĄťóČŁ˝şĆŽ, directory, .htaccess
ťóĹÂ:Experimental
¸đľâ:mod_example

Example Áö˝Ăžî´Â example ¸đľâŔÇ łťżëÇھ顯°Ą °Ł´ÜÇŃ šŽą¸¸Ś ş¸ŔĎÁö żŠşÎ¸Ś źłÁ¤ÇŃ´Ů. ŔĚ Áö˝Ăžî´Â žĆąÔ¸ŐĆŽ¸Ś šŢÁöžĘ´Â´Ů. example łťżëÇھ顯¸Ś ŔűżëÇŃ URLżĄ Á˘źÓÇĎ¸é šŽź­ żäĂťŔť ź­şń˝şÇĎąâŔ§ÇŘ ¸đľâžČżĄ ÇÔźöľéŔĚ žîśť°Ô ą×¸Ž°í žîś˛ źřź­ˇÎ şŇ¸Ž´ÂÁö žË źö ŔÖ´Ů. ŔĚ Áö˝ĂžîŔÇ Čż°ú´Â "Example directive declared here: YES/NO"ˇÎ ČŽŔÎÇŇ źö ŔÖ´Ů.

°Ą´ÉÇŃ žđžî:  en  |  fr  |  ko 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our mailing lists.
˙_˙Î`^=ż^4^4_^?7ż^=_^?!ęębę Zďďď 6é_ŃüŃŃćżă`d˙_˙ÂÇ˙?Sż ż ż ż ł ˙_ĺ_˙ß^ß^_2ß^O-˙O-O-ćććčüččŔ/ó/#üĂ ˙˙//$˙˙˙/łV_O-˙/-O-˙3 _/-˙,`/&˙/˙ 0˙/@ ˙/? ˙˙˙/ó//-˙/-/-˙Ď,/-˙,i/ăšü_ĚĚĚ˙/ ˙/˙? óą˙˙N ÜÜÜß ßßÉÉÉ ŕŕŽŕ 6á5â5Şă8ä>ĺJćBďŰŰŰËĚĚĚÎÎÎŇŇŇxÖÖրrŔ^CŔ4ěÄěě ŘŘŘ?Œ˙UĆżźCžóżu˝žáż˝ß_+_^?äż^_?'Ţ^Â_ďď_×ü××˙_˙§Ź_Qż ż ˙ż ż ż   €&,_˙_˙B^7ß^4ż]4ŸZ˙?ß^ż^%^1˙/ó_˙˙/˙_%˙˙˙/˙/ő.tO-˙O-O-˙O-_-˙O-řççç˙/˙/Ŕ ˙ß˙˙˙/˙˙/s//-˙,˙/- ,ď˙,/-˙`/&ö/ż#1đ/ÓÓÓö_S ííţí˙_Ÿ ˙˙˙/ü//-/-/-őąŞăäAĺGć8 çďŰŰŰĚÎÎÎÓÓÓ×××ÜÜÜááá€_íííđđđŔŘŘŘ˙˙˙AAMŕŕŕÉÉÉ÷L@Rłâ8 ¸“˝ƒ?žCv˝Ňź ř_ÝüÝÝ`/˙_Rg?k˙ż ż ż ż ś ě_`^`a˙?_.ż^7ß^4`=_˙=^?$ß^4Ţ^ńě_ÍÍÍćż˙_˙DżQ˙żQż ż ż _˙ö/-“/˙/Î.O-˙O--˙$+oO-o/˙/ĎĎĎđ Žů/îîî˙˙O%˙˙đ/Đ,™/˙/ç.•/-˙˙,/-˙,˙/-O.řčččP- öżđ_ü/˙ł ˙/ ˙˙˙/˙/ö//-˙/-/-˙#!_/-˙/-`/"˛ čđŰŰŰĚÍÍÍĎĎĎÓÓÓŘŘŘÝÝÝâââĺîîî# P˙˙ Ü܀ÜáááÉÉɌŻ€Ş3ă8ä>×C‚Cć5ç5ť{΂żđŔż@žƒŔżÔÄÔԀşŢŢŢŔ[C+ńŔżńńń˙ż˙Î˙8ř_^4ż^7//--------------------------------------------------------------------------- #include #pragma hdrstop //--------------------------------------------------------------------------- USEFORM("main.cpp", MainForm); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); Application->CreateForm(__classid(TMainForm), &MainForm); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } catch (...) { try { throw Exception(""); } catch (Exception &exception) { Application->ShowException(&exception); } } return 0; } //--------------------------------------------------------------------------- L‹‹—ϡn?ožřCŸ=8Üg¤ź,=cžËňüůŰűƒIÚjuڝ€€’ĸb´žž¤U°Č,(,2ű(,!Đ$ȗŻ^o7ÖćçքE€FD@Bf ÂÍÍÍŅĹ˙g˙ԗţČżóÁÍ÷˙̟řc˙|>űä'žE yž/­Ě-..0ŕÉ`‚ÔÖ)JËŇďíR–Ÿœ(śœRĆy‚+Ť‚ˇwŽO––ë|řpăÁúÚůłŽ‚Ž‘ŹpPÄ „Ä ",Z+)1Ćxç„HŁäŔúëßüޤ°yQÇłŚ9›.Ś&ŢÚ> >=<˝üň•ĘŽÜżż1Š ­UťŮD>𥠗­cfT(23>˜Ľ0BGÇG€Ń鵅NťWU3Łz´@aőękŻGIóSŸüáVsž×éMĆăgŻŽű`‹2WĘ ęű÷wŚyŢô“$Ń&:{î"ś:8Mmm'ŁăşČľÎňҤL˙d0-ŤV𹥠ůÎćía9~ἁ‚Ż‡ U˜ˆRJœ!RZ)k­RŠ€ĚöîŢϒ;^×ßůŕA>ŠZ 8>ď쐌ŢâÜ´ô˝šśœKs=4É˝űQwšÉŕäŢűˇ_|îĹĺů3ŢGĚN‘<ĘŻČ ˛xˆ8ď(2 *Ž óKĆÄÓ鐕(aH÷7ś>˙…Ÿ8{öęƒűť;Ű{ń?řö÷îlďnu:ŹŃrŠÂ‚dLĺůäxwWÇYY›ˇŇnS¸ľľ•­ĽŔů E{8‹Ôee˛D NöÜO.\şŚQ (ffaE8K†Ŕ!Aď=33‹&Š˜Őt†ýákŻÝŽę˘vŅË>JŁţčĂNÖrUUNmŹ“Iy˛ť[ž¨××ç;Kƒq•ÄZäрf΋”Ö,â|đÎ7ŇÎBwi}őTQ"B„O”j6oƨádt2˜üřĽëăqU–5"ţ™?óďţ÷˙Ý/oďlöö‹Üz‹ľăáh‚dYTLýqě-*TÎ:ń0x1V¸śşş8uĎŽ[˜oZ[Äi–ľZo}đîöí[ Ëç"­if łĚ+"R H=ÎąFŮ?3ImŠ50ůŕÎ-BLădăöC€0 Ĺk§×ŚŐ¤(Ąß?™ FĎ\>w~ĺ´VQœ$< ˆ€ Š0FBvÎ"˜ď­-/­'I4OH3ƒB,(łŠ6ńĆĆN^T§ĎžOrD ÁnooŢ˝űŕěškŸř—ťvż?šNĘ$I‹˛řŢ÷nüËo|3Íb9 q¤Ó$vś0&âş”$ŠŒ"ŇX”őáÁŠ:˜Ź. A3ҊpđoÝxăÂĽgŇXWžAaáB܈”™ĹMđńĄŮó b”UCŚˆč\đěQó ŤÖÚ~˙$˒rܟo¤Ď\X€PŸôO>ńŠ´ŢXBäŃ}Ó4ťďžľö…—^8kďŁŘ4——ׂ°@Ax6Ľ ˘n?Üa–……ĽĂţÄs§t烝§NŸű‹é˙¤AŢzóť'G}m´ľ27—ýé?ýÇ>őŠçżýWƒł ˝š"/˘œł„8°ˇŒ <ÄĆdI4-Ęa=>ÜÜNLÜnuIŠ8I‚`ÍîáŢÖňڜ‰"„9 b!Šcfćđ$LĘĚz9Ó^˛Áp+ŐLSŠk[šP •'U–ŚI¤MDÎŽĽ‰™›‹˛4~÷íKWŸ)ň I˜)ĽoŢźyúôi tփHeëfÖęvşu]JpŢhaBx”ůÓożő֙sçMgYÜ`xźśśúüs/K€×ŢxuăîIš_E&-‹éÖĆč…çŻçy‘F­no.kk–JBőÁť7cJŁ8áŕŹuÝ^ťŮl¤qrfqą*#˛ľäśH˛Ě9/q#Ů9zŘëĚľ[s,bë*—eŠ Ą€p esub*5ONŚZÓĹSËĄľ›źtTš5Çy‘—n<$q\•:Ž–píÔŠK—ĎMóiŞAi¨­ýîŻ?ű⳾󊽍ŤşÝm5Ů ?ŚŘ¤'ƒľśvÎqĚŢzűőĎ~ţÇ­gqÁzq6ĚĎwEŕäpkxźŰnfľő &–ȨŁă×>őV˘L%ÝŚŮ?ؘ[]tuH˘ć|wńÍŻ7­4iŒGcŁt¤n5™ő´ÇÍŚŠ$X'!Ä&Š# ŽŘCťŃ@ňâňVšÖ
Copyright © Dragan Belic - - All right reserved

Vaš mâli prilog, "mlogo" znači, a u cilju "dâljnjog, svakodnevnog izlaženja" ovog sajta !!!

Link sponzora
  Link sponzora

  ...
Arhiva Slika dana:

- po mesecima !!!

- po godinama !!!

DownLoad-ujte, odštampajte i "nalepte digođ naZid aktualni
novoMiloševački" kalendar za tekući mesec...