《求助》apache上的User和Group功能是怎樣設定的...



贊助商連結


ELIJAHY
2003-08-21, 12:49 PM
apache上的User和Group功能是怎樣設定的...
還有這兩種功能有什麼分別呢...

贊助商連結


luckyboys
2003-08-21, 05:38 PM
apache可以設定user和Group?
那是什麼啊?

使用者不是要在linux或freebsd系統底下設定嗎?

ELIJAHY
2003-08-21, 06:07 PM
應該可以的.因http.conf有下列設定
而我不會設...
所以便問問

#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
# Under Win32, we do not currently try to determine the home directory of
# a Windows login, so a format such as that below needs to be used. See
# the UserDir documentation for details.
#
<IfModule mod_userdir.c>
UserDir "D:/Program Files/Apache Group/Apache/users/"
</IfModule>

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory "D:/Program Files/Apache Group/Apache/users">
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>

iamdc
2003-08-21, 11:24 PM
我建議您去了解一下您貼出來這段英文的意義,只要稍微翻一下字典相信您就的看的懂了!
多讀讀英文會對您很有幫助的,且裡面的英文實在都不難∼

大意是

例如 您的網域是 123.com 放在 使用者內的目錄名稱是 test

指定 users 的目錄是這一行 UserDir "D:/Program Files/Apache Group/Apache/users/"
在裡面建一個 test 的目錄

這樣使用者就在瀏覽器上輸入 http://123.com/~test 就可以到指定的網頁,這樣您了解嗎?

ELIJAHY
2003-08-22, 01:09 AM
謝謝
但每次要新增user時也要自行到這個目錄D:/Program Files/Apache Group/Apache/users/
新增目錄給user嗎

jason523
2003-08-24, 12:35 AM
沒錯!