close
作者: peicheng () 看板: P_peicheng
標題: [網管]httpd.conf
時間: Thu Jan 18 00:39:09 2007


為了要使自己的網頁顯示出來而不是

Forbidden
You don't have permission to access /~peicheng/ on this server.

在httpd.conf做了以下設定

Apache 的設定檔位於 /usr/local/etc/apache2/httpd.conf

----------------------------------------------------


UserDir public_html

UserDir disabled root toor daemon ..... pop www nobody mailnull smmsp

#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order allow,deny
Allow from all


Order deny,allow
Deny from all




---------------------------------------------

Alias 設定別名


我們可以為一個目錄或連線的 URI 設定別名,以簡化目錄名稱。例如,您可以將
/home/alex/mp3/ 取一個別名為 /mp3/,讓使用者在連線到
http://www.example.com/mp3/ 時,指向 /home/alex/mp3/。


Alias /mp3/ /home/alex/mp3/

------------------------------

重新啟動

# /usr/local/etc/rc.d/apache2.sh restart
--
夫兵者不祥之器物或惡之故有道者不處君子居則貴左用兵則貴右兵者不祥之器非君子
之器不得已而用之恬淡為上勝而不美而美之者是樂殺人夫樂殺人者則不可得志於天下
矣吉事尚左凶事尚右偏將軍居左上將軍居右言以喪禮處之殺人之眾以哀悲泣之戰勝以
喪禮處之道常無名樸雖小天下莫能臣侯王若能守之萬物將自賓天地相合以降甘露民莫
之令而自均始制有名名亦既有夫亦將知止知止可以不殆譬道之在天140.128.194.78海
arrow
arrow
    全站熱搜

    peicheng 發表在 痞客邦 留言(0) 人氣()