<-
Apache > HTTP Server > Documentation > Version 2.4 > How-To / Tutorials

ȝ~ں 丮

݋b _ _ Ɯ”. ٿ ~@ ݋ O[.

\ ȝ~ڰ b Czۿ݋ UserDir C ȝ~[R ȝ~ھb _ 丮 ȿ ȝh ] . URL http://example.com/~username/ ٸ[R ȝ~ "username" 丮݋ UserDir C r [丮 b ȴ.

Support Apache!

O

top

ȝ~ں 丮

top

UserDir Hϰ r[

UserDir Cb ȝ~ں 丮 rѴ. C ȝ~^@ \.

E{ C۸[ʾb θ r[R ȝ~ 丮 丮 η QѴ. 齁, E r :

UserDir public_html

URL http://example.com/~rbowen/file.html@ H /home/rbowen/public_html/file.html@ Ѵ.

E{ C۸[b θ r[R r 丮 ȝ~ڸ@ 丮 θ ȝ~Ѵ. 齁, E r :

UserDir /var/html

URL http://example.com/~rbowen/file.html@ H /var/html/rbowen/file.html@ Ѵ.

F (*) ` θ r[R F ȝ~ڸڷ ü θ ȝ~Ѵ. 齁, E r :

UserDir /var/www/*/docs

URL http://example.com/~rbowen/file.html@ H /var/www/rbowen/docs/file.html@ Ѵ.

top

@ ƃ~ ȝ~ Ѹ[

UserDir ݋ b ^@ ȝ~[ ȝ~ں 丮 @ ƃ~ ] b ȝ~ڸ ] :

UserDir enabled
UserDir disabled root jro fish

r@ disabled 忡 P ȝ@ ܸ[O ȝ~ڿ 丮 @ AѴ. , ٞ ȝ~ڸ ܸ[O @ A[ @ ]n :

UserDir disabled
UserDir enabled rbowen krietz

UserDir ݋ b ٸ n O[.

top

ȝ~ں cgi 丮 r[

ȝ~ڸ cgi-bin 丮 ο[R <Directory> C ȝ~[ ȝ~ 丮 Ưr [丮 cgi ɸ[ 늴.

<Directory /home/*/public_html/cgi-bin/>
Options ExecCGI
SetHandler cgi-script
</Directory>

UserDir public_htmlƶO r[R, ٞ ȿ b cgi α׷ example.cgi ] .

http://example.com/~rbowen/cgi-bin/example.cgi

top

ȝ~ڰ r@ ] nU

ȝ~ڰ _ ݋L r@ ]r[R, .htaccess H@ ȝ~ ] Ѵ. AllowOverride ȝ~ڰ ]r ] b C J @ڷ r[. ۸[b ڼ 机b .htaccess 丮@ O[.

:  en  |  es  |  fr  |  ja  |  ko  |  tr 

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.
С͸