blob: b379b9ed22b38c6b30b8329a8eab085d6cc48e04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
<!-- English Revision: 151408:791344 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manualpage metafile="public_html.xml.meta">
<parentdocument href="./">How-To / Tutorials</parentdocument>
<title>»ç¿ëÀÚº° À¥µð·ºÅ丮</title>
<summary>
<p>¿©·¯ »ç¿ëÀÚ°¡ ÀÖ´Â ½Ã½ºÅÛ¿¡¼ <directive
module="mod_userdir">UserDir</directive> Áö½Ã¾î¸¦ »ç¿ëÇϸé
°¢ »ç¿ëÀÚ´Â ÀÚ½ÅÀÇ È¨µð·ºÅ丮 ¾È¿¡ À¥»çÀÌÆ®¸¦ ¸¸µé ¼ö ÀÖ´Ù.
URL <code>http://example.com/~username/</code>¿¡ Á¢±ÙÇϸé
»ç¿ëÀÚ "<code>username</code>"ÀÇ È¨µð·ºÅ丮¿¡¼ <directive
module="mod_userdir">UserDir</directive> Áö½Ã¾î·Î ÁöÁ¤ÇÑ
ÇÏÀ§µð·ºÅ丮¿¡ ÀÖ´Â ÆäÀÌÁö¸¦ °¡Á®¿À°Ô µÈ´Ù.</p>
</summary>
<seealso><a href="../urlmapping.html">URLÀ» ÆÄÀϽýºÅÛ¿¡ ´ëÀÀ</a></seealso>
<section id="related">
<title>»ç¿ëÀÚº° À¥µð·ºÅ丮</title>
<related>
<modulelist>
<module>mod_userdir</module>
</modulelist>
<directivelist>
<directive module="mod_userdir">UserDir</directive>
<directive module="core">DirectoryMatch</directive>
<directive module="core">AllowOverride</directive>
</directivelist>
</related>
</section>
<section id="userdir">
<title>UserDir·Î ÆÄÀÏ°æ·Î ÁöÁ¤Çϱâ</title>
<p><directive module="mod_userdir">UserDir</directive>
Áö½Ã¾î´Â »ç¿ëÀÚº° ÆäÀÌÁö¸¦ °¡Á®¿Ã µð·ºÅ丮¸¦ ÁöÁ¤ÇÑ´Ù. ÀÌ
Áö½Ã¾îÀÇ »ç¿ë¹ýÀº ¿©·¯°¡Áö´Ù.</p>
<p>½½·¡½¬·Î ½ÃÀÛÇÏÁö¾Ê´Â °æ·Î¸¦ ÁöÁ¤ÇÏ¸é °¢ »ç¿ëÀÚÀÇ
Ȩµð·ºÅ丮¿¡ »ó´ëÀûÀÎ µð·ºÅ丮 °æ·Î·Î ó¸®ÇÑ´Ù. ¿¹¸¦ µé¾î,
¾Æ·¡ ¼³Á¤ÀÇ °æ¿ì:</p>
<example>
UserDir public_html
</example>
<p>URL <code>http://example.com/~rbowen/file.html</code>˼
ÆÄÀÏ °æ·Î <code>/home/rbowen/public_html/file.html</code>À»
¶æÇÑ´Ù.</p>
<p>½½·¡½¬·Î ½ÃÀÛÇÏ´Â °æ·Î¸¦ ÁöÁ¤Çϸé ÁöÁ¤ÇÑ µð·ºÅ丮¿¡
»ç¿ëÀÚ¸íÀ» ´õÇÑ µð·ºÅ丮 °æ·Î¸¦ »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ¾Æ·¡
¼³Á¤ÀÇ °æ¿ì:</p>
<example>
UserDir /var/html
</example>
<p>URL <code>http://example.com/~rbowen/file.html</code>˼
ÆÄÀÏ °æ·Î <code>/var/html/rbowen/file.html</code>À» ¶æÇÑ´Ù.</p>
<p>º°Ç¥ (*)¸¦ Æ÷ÇÔÇÑ °æ·Î¸¦ ÁöÁ¤ÇÏ¸é º°Ç¥¸¦ »ç¿ëÀÚ¸íÀ¸·Î
´ëüÇÑ °æ·Î¸¦ »ç¿ëÇÑ´Ù. ¿¹¸¦ µé¾î, ¾Æ·¡ ¼³Á¤ÀÇ °æ¿ì:</p>
<example>
UserDir /var/www/*/docs
</example>
<p>URL <code>http://example.com/~rbowen/file.html</code>˼
ÆÄÀÏ °æ·Î <code>/var/www/rbowen/docs/file.html</code>À»
¶æÇÑ´Ù.</p>
</section>
<section id="enable">
<title>±â´ÉÀ» ÀÌ¿ëÇÒ »ç¿ëÀÚ Á¦ÇÑÇϱâ</title>
<p>UserDir ¹®¼¿¡ ÀÖ´Â ¹®¹ýÀ» »ç¿ëÇÏ¿© »ç¿ëÀÚº° À¥µð·ºÅ丮
±â´ÉÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ´Â »ç¿ëÀÚ¸¦ Á¦ÇÑÇÒ ¼ö ÀÖ´Ù:</p>
<example>
UserDir enabled<br />
UserDir disabled root jro fish
</example>
<p>À§ ¼³Á¤Àº <code>disabled</code> ¹®Àå¿¡ ¿°ÅÇÑ »ç¶÷À»
Á¦¿ÜÇÏ°í ¸ðµç »ç¿ëÀÚ¿¡°Ô À¥µð·ºÅ丮 ±â´ÉÀ» Çã¶ôÇÑ´Ù. ¶Ç,
´ÙÀ½°ú °°ÀÌ ¸î¸î »ç¿ëÀÚ¸¦ Á¦¿ÜÇÏ°í ±â´ÉÀ» Çã¶ôÇÏÁö ¾ÊÀ»
¼öµµ ÀÖ´Ù:</p>
<example>
UserDir disabled<br />
UserDir enabled rbowen krietz
</example>
<p><directive module="mod_userdir">UserDir</directive>
¹®¼¿¡ ÀÖ´Â ´Ù¸¥ ¿¹µéµµ Âü°íÇ϶ó.</p>
</section>
<section id="cgi">
<title>°¢ »ç¿ëÀÚº° cgi µð·ºÅ丮 ÁöÁ¤Çϱâ</title>
<p>»ç¿ëÀÚ¸¶´Ù cgi-bin µð·ºÅ丮¸¦ ºÎ¿©ÇÏ·Á¸é <directive
module="core" type="section">Directory</directive> Áö½Ã¾î¸¦
»ç¿ëÇÏ¿© »ç¿ëÀÚ È¨µð·ºÅ丮ÀÇ Æ¯Á¤ ÇÏÀ§µð·ºÅ丮¸¦ cgi °¡´ÉÇÏ°Ô
¸¸µç´Ù.</p>
<example>
<Directory /home/*/public_html/cgi-bin/><br />
Options ExecCGI<br />
SetHandler cgi-script<br />
</Directory>
</example>
<p><code>UserDir</code>ÀÌ <code>public_html</code>À̶ó°í
°¡Á¤Çϸé, ´ÙÀ½°ú °°ÀÌ ±× ¾È¿¡ ÀÖ´Â cgi ÇÁ·Î±×·¥
<code>example.cgi</code>¸¦ ½ÇÇàÇÒ ¼ö ÀÖ´Ù.</p>
<example>
http://example.com/~rbowen/cgi-bin/example.cgi
</example>
</section>
<section id="htaccess">
<title>»ç¿ëÀÚ°¡ ¼³Á¤À» º¯°æÇÒ ¼ö ÀÖµµ·Ï ¸¸µé±â</title>
<p>»ç¿ëÀÚ°¡ ÀÚ½ÅÀÇ À¥°ø°£¿¡ ´ëÇÑ À¥¼¹ö ¼³Á¤À» ¼öÁ¤ÇÏ·Á¸é,
<code>.htaccess</code> ÆÄÀÏÀ» »ç¿ëÇÒ ¼ö ÀÖ¾î¾ß ÇÑ´Ù. <directive
module="core">AllowOverride</directive>¸¦ »ç¿ëÀÚ°¡ ¼öÁ¤ÇÒ
¼ö ÀÖ´Â Áö½Ã¾î¿¡ ÀûÇÕÇÑ °ªÀ¸·Î ¼³Á¤Ç϶ó. ¾î¶»°Ô µ¿ÀÛÇÏ´ÂÁö¿¡
´ëÇÑ ÀÚ¼¼ÇÑ Á´º¸´Â <a href="htaccess.html">.htaccess
ÅõÅ丮¾ó</a>À» Âü°íÇ϶ó.</p>
</section>
</manualpage>
|