Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: http://www.arcetri.astro.it/manual/ko/howto/public_html.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013 Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 07:47:30 2014 Êîäèðîâêà: ISO8859-5 Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï |
Apache HTTP Server Version 2.2
Ï?Ç? Ë÷ÏûÐêÀÅ ÐæÄÒ ÍÓÍÊÕëÏÅÌ- UserDir
Ñ?ÍÓÎþÈ? Ë÷Ïû×ßÈù
À? Ë÷ÏûÐêÄÒ ÐêÍÕÐ× Ø?Å?ÇÊÕôÈ? ÎØÏÅ Ð?Ë÷ÐÜÖ?È? ÈÈÅù Ì? ÐæÄé.
URL http://example.com/~username/
ÏÅ Ñ?Áé×ßÈù
Ë÷ÏûÐê "username
"Ð× Ø?Å?ÇÊÕôÈ?ÏÅÌ- UserDir
Ñ?ÍÓÎþÇÞ Ñ?Ñ?×á
×ßÐ?Å?ÇÊÕôÈ?ÏÅ ÐæÄÒ ÖôÐÜÑ?È? ÀÅÑ?ÏÐÀä ÅØÄé.
À?ÇÓÅØ È?Åò | À?ÇÓÅØ Ñ?ÍÓÎþ |
---|---|
UserDir
Ñ?ÍÓÎþÄÒ Ë÷ÏûÐêÊÀ ÖôÐÜÑ?È? ÀÅÑ?ÏÓ Å?ÇÊÕôÈ?È? Ñ?Ñ?×áÄé. ÐÜ
Ñ?ÍÓÎþÐ× Ë÷ÏûÉÐÊ Ï?Ç?ÀÅÑ?Äé.
ÍÍÇÅÍ?ÇÞ ÍÓÐë×ßÑ?ÎÚÄÒ ÀöÇÞÈ? Ñ?Ñ?×ßÈù À? Ë÷ÏûÐêÐ× Ø?Å?ÇÊÕôÈ?ÏÅ Ë?ÄûÐ?ÐÞ Å?ÇÊÕôÈ? ÀöÇÞÇÞ ÓÃÈ?×áÄé. ÏÉÈ? ÅùÎþ, ÎÖÇÅ ÌÃÑ?Ð× ÀöÏü:
UserDir public_html
URL http://example.com/~rbowen/file.html
ÐÊ
ÖÔÐß ÀöÇÞ /home/rbowen/public_html/file.html
ÐË
Æö×áÄé.
ÍÍÇÅÍ?ÇÞ ÍÓÐë×ßÄÒ ÀöÇÞÈ? Ñ?Ñ?×ßÈù Ñ?Ñ?×á Å?ÇÊÕôÈ?ÏÅ Ë÷ÏûÐêÈýÐË Ä?×á Å?ÇÊÕôÈ? ÀöÇÞÈ? Ë÷Ïû×áÄé. ÏÉÈ? ÅùÎþ, ÎÖÇÅ ÌÃÑ?Ð× ÀöÏü:
UserDir /var/html
URL http://example.com/~rbowen/file.html
ÐÊ
ÖÔÐß ÀöÇÞ /var/html/rbowen/file.html
ÐË Æö×áÄé.
ÊÀ×? (*)È? Ö?×ä×á ÀöÇÞÈ? Ñ?Ñ?×ßÈù ÊÀ×?È? Ë÷ÏûÐêÈýÐÈÇÞ ÄûÓÌ×á ÀöÇÞÈ? Ë÷Ïû×áÄé. ÏÉÈ? ÅùÎþ, ÎÖÇÅ ÌÃÑ?Ð× ÀöÏü:
UserDir /var/www/*/docs
URL http://example.com/~rbowen/file.html
ÐÊ
ÖÔÐß ÀöÇÞ /var/www/rbowen/docs/file.html
ÐË
Æö×áÄé.
UserDir É?Ì-ÏÅ ÐæÄÒ É?ÉÐË Ë÷Ïû×ßÏ? Ë÷ÏûÐêÊÀ Ð?Å?ÇÊÕôÈ? ÁòÄÙÐË ÐÜÏû×â Ì? ÐæÄÒ Ë÷ÏûÐêÈ? Ñ?×á×â Ì? ÐæÄé:
UserDir enabled
UserDir disabled root jro fish
Ð? ÌÃÑ?ÐÊ disabled
É?ÐõÏÅ Ï-ÀÕ×á Ë÷Æ?ÐË
Ñ?Ïì×ßÀý È?Å÷ Ë÷ÏûÐêÏÅÀä Ð?Å?ÇÊÕôÈ? ÁòÄÙÐË ×óÆ?×áÄé. Æ×,
ÄéÐÍÀ? ÀÀÐÜ ÈþÈþ Ë÷ÏûÐêÈ? Ñ?Ïì×ßÀý ÁòÄÙÐË ×óÆ?×ßÑ? ÎÚÐË
Ì?ÅÅ ÐæÄé:
UserDir disabled
UserDir enabled rbowen krietz
UserDir
É?Ì-ÏÅ ÐæÄÒ ÄéÈ? ÏÉÅùÅÅ Ò?Àý×ßÆ?.
Ë÷ÏûÐêÈÆÄé cgi-bin Å?ÇÊÕôÈ?È? ÊÞÏ?×ßÇÑÈù <Directory>
Ñ?ÍÓÎþÈ?
Ë÷Ïû×ßÏ? Ë÷ÏûÐê Ø?Å?ÇÊÕôÈ?Ð× Ö?Ñ? ×ßÐ?Å?ÇÊÕôÈ?È? cgi ÀÅÄÙ×ßÀä
ÈÈÅ÷Äé.
<Directory /home/*/public_html/cgi-bin/>
Options ExecCGI
SetHandler cgi-script
</Directory>
UserDir
ÐÜ public_html
ÐÜÆ?Àý
ÀÅÑ?×ßÈù, ÄéÐÍÀ? ÀÀÐÜ Áç ÎØÏÅ ÐæÄÒ cgi ×ÑÇÞÁçÇ?
example.cgi
È? Í××ð×â Ì? ÐæÄé.
http://example.com/~rbowen/cgi-bin/example.cgi
Ë÷ÏûÐêÀÅ ÐêÍÕÐ× Ð?À?À?ÏÅ Äû×á Ð?Ì-É? ÌÃÑ?ÐË Ì?Ñ?×ßÇÑÈù,
.htaccess
ÖÔÐßÐË Ë÷Ïû×â Ì? ÐæÎþÎï ×áÄé. AllowOverride
È? Ë÷ÏûÐêÀÅ Ì?Ñ?×â
Ì? ÐæÄÒ Ñ?ÍÓÎþÏÅ Ð?×å×á À?ÐÈÇÞ ÌÃÑ?×ßÆ?. ÎþÆËÀä ÅÏÐë×ßÄÒÑ?ÏÅ
Äû×á ÐêÌÌ×á ÑÄÊÈÄÒ .htaccess
Õ?ÕôÈ?Î?ÐË Ò?Àý×ßÆ?.