• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 個人主頁系統在Apache上的實現方法

    發表于:2007-05-25來源:作者:點擊數: 標簽:
    結合大家的經驗和我自己的實踐,得到以下幾點[b:2a34ab9e97]在Apache上實現個人主頁系統[/b:2a34ab9e97]的方法。(注意:我的 測試環境 如下:FreeBSD4.7+Apache2.0.43) 問題:[color=red:2a34ab9e97][b:2a34ab9e97]Apache上的個人主頁系統[/b:2a34ab9e97][/col

    結合大家的經驗和我自己的實踐,得到以下幾點[b:2a34ab9e97]在Apache上實現個人主頁系統[/b:2a34ab9e97]的方法。(注意:我的測試環境如下:FreeBSD4.7+Apache2.0.43)

    問題:  [color=red:2a34ab9e97][b:2a34ab9e97]Apache上的個人主頁系統[/b:2a34ab9e97][/color:2a34ab9e97]
    目的:
    1.WEB:[b:2a34ab9e97]http://www.site.com/~username[/b:2a34ab9e97]
    2.FTP  :[b:2a34ab9e97]/www/free/username/public_html[/b:2a34ab9e97]

    方法一:使用[b:2a34ab9e97][color=red:2a34ab9e97]mod_userdir[/color:2a34ab9e97][/b:2a34ab9e97]模塊
    需要使用Apache 之中的userdir_module,
    將 
    [b:2a34ab9e97]LoadModule userdir_module libexec/apache2/mod_userdir.so[/b:2a34ab9e97]
    之前的#去掉,
    然后如下配置:

    [b:2a34ab9e97]UserDir /www/free/*/public_html/
    <Directory /www/free/*/public_html>
    DirectoryIndex index.html
    </Directory>[/b:2a34ab9e97]

    方法二:使用[color=red:2a34ab9e97][b:2a34ab9e97]rewrite[/b:2a34ab9e97][/color:2a34ab9e97]
    需要使用Apache之中的rewrite_module,
    將 
    [b:2a34ab9e97]LoadModule rewrite_module libexec/apache2/mod_rewrite.so[/b:2a34ab9e97]之前的#去掉,
    然后如下配置:

    [b:2a34ab9e97]RewriteRule   ^/~([0-9A-Za-z_\-]+)(.*)  /wwww/free/$1/public_html$2
    <Directory /www/free/*/public_html>
    DirectoryIndex index.html
    </Directory>[/b:2a34ab9e97]

    說明:
    1.用戶的FTP可以使用任何FTP系統來指定其路徑為/www/free/username

     flYROW 回復于:2003-05-10 19:26:24
    [quote:53f4547bcd="HonestQiao"]得?
    1.用戶的FTP可以使用任何FTP系統來指定其路徑為/www/free/username[/quote:53f4547bcd][color=red:53f4547bcd][/color:53f4547bcd]你好,剛來,望多關照,

     flYROW 回復于:2003-05-10 19:27:38
    什么意思,很不情愿嗎?

     flYROW 回復于:2003-05-10 19:27:54
    什么意思,很不情愿嗎?

     flYROW 回復于:2003-05-10 19:28:24
    什么意思,很不情愿嗎?

     HonestQiao 回復于:2003-05-10 19:29:34
    我不清楚你要問什么?

     海浪001 回復于:2003-05-12 11:20:02
    win2000下如何裝apache啊,
    我裝好后說服務沒啟動.
    能告訴我嗎?

    還有如何在win2000下如何裝WEB服務器.

    多謝.

     冰箱 回復于:2003-05-12 13:41:45
    UserDir /www/free/*/public_html/

    為什么不能寫成 
    UserDir public_html

    我看的資料都是這樣設的????
    (但我的不行,要設成/home/*/public_html)

     liubin5280 回復于:2003-05-13 08:00:39
    冰箱:
        咱倆設的一樣,為何當我在IE中輸入http://210.82.156.189/~linux123時,提示為You don't have permission to aclearcase/" target="_blank" >ccess /~linux123 on this server,我應在哪改權限?

     fastopen 回復于:2003-06-02 16:48:12
    老大,我的win2000+apache 可以實現個人主頁嗎,

    等待中。。。。。。。。

     fastopen 回復于:2003-06-02 16:56:39
    已經好了, 不用。。

     fastopen 回復于:2003-06-02 17:10:33
    老大,我用userdir成功,

    用rewrite 按你的方法未成功。不知道是怎么的,請指點,

     gleilei 回復于:2003-09-09 13:11:28
    [quote:034f03de7e="liubin5280"]冰箱:
        咱倆設的一樣,為何當我在IE中輸入http://210.82.156.189/~linux123時,提示為You don't have permission to access /~linux123 on this server,我應在哪改權限?[/quote:034f03de7e]     


    一樣的問題

     wuhanzhou 回復于:2003-09-10 09:28:47
    是呀是呀在在哪兒更改權限呀?

     wuhanzhou 回復于:2003-09-10 09:39:18
    哥們給我介紹一本APACHE的書吧!

     yoursmile 回復于:2003-09-10 11:57:56
    [quote:9aee6eb6ba="HonestQiao"]得?
    1.用戶的FTP可以使用任何FTP系統來指定其路徑為/www/free/username[/quote:9aee6eb6ba]     


    不錯。我收了。

     yancangcn 回復于:2003-09-10 19:43:22
    還可以吧

     rdd 回復于:2003-09-23 15:55:13
    [quote:c53d7473f5="liubin5280"]冰箱:
        咱倆設的一樣,為何當我在IE中輸入http://210.82.156.189/~linux123時,提示為You don't have permission to access /~linux123 on this server,我應在哪改權限?[/quote:c53d7473f5]     
    [code:1:c53d7473f5]
    #mkdir /home/linux123/public_html
    #chown linux123:linux123 public_html
    #cd ..
    #chmod 711 linux123
    [/code:1:c53d7473f5]

     carolson 回復于:2003-09-25 18:39:22
    本方法的局限問題?
    1. ftp 軟件 ftp 用戶與系統用戶分開時的 權限問題。
    2. php 的文件讀寫問題
    比如用戶user1 不可讀 user2 如何實現?

     JLW 回復于:2003-10-17 15:23:08
    [quote:935e82dcf5="wuhanzhou"]是呀是呀在在哪兒更改權限呀?[/quote:935e82dcf5]

    呵呵,我也剛來,沒搞過服務器,但是我想要以你運行apache進程的用戶來擁有這個權限就可以了....就好比IIS的IUSR_機器名一樣 .
    我去試一下:)

     金玄 回復于:2003-10-31 21:52:12
    有沒有支持二級域名的,而不是~username的呢.且又能通過WEB程序自動讓他實現,不知道目前的主機商都是如何實現實時開虛擬主機的.

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>