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

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

  • <strong id="5koa6"></strong>
  • redhat9下使用apache2.0實現個人主頁空間的方法1

    發表于:2007-05-25來源:作者:點擊數: 標簽:
    系統平臺:redhat9.0 基本要求:有一個apache2.0的安裝。并且包含了mod_userdir模塊。默認的安裝包含該模塊。 ./configure--disable-all--enable-module=alias--enable-module=access--enable-module=auth--enable-module=log_config--enable-module=dir--en

    系統平臺:redhat9.0
    基本要求:有一個apache2.0的安裝。并且包含了mod_userdir模塊。 默認的安裝包含該模塊。
    ./configure --disable-all --enable-module=alias --enable-module=aclearcase/" target="_blank" >ccess --enable-module=auth --enable-module=log_config --enable-module=dir --enable-module=mime --enable-module=userdir
    make
    make install
    ###編輯httpd.conf。添加內容如下
    UserDir sites
    UserDir enabled testuser   #只給這個用戶開啟個人空間
    ###使每個用戶都擁有各自的cgi腳本目錄
    <Directory /home/*/cgi-bin>
       Options ExecCGI
       SetHandler cgi-script
    </Directory>
    ########結束##########
    說明:用UserDir dir指定目錄時,dir可以有三種表示方法
    <1>UserDir dir      目錄前沒有“/”,此時指該dir在用戶的主目錄里.
    既http://localhost/~test----->/home/test/dir     test用戶的個人主頁空間
    <2>UserDir /var/web       此時用戶主頁存放在/var/html/username目錄里
    httpd://localhost/~testuser----->/var/web/testuser
    <3>UserDir /var/*/html      此時的用戶的主頁存放在/var/username/html目錄里
    httpd://localhost/~testuser------->/var/testuser/html

    2、準備目錄
    cd /etc/skel
    mkdir sites
    echo "this is user homepage" >> sites/index.html
    3、添加實驗用戶
    useradd testuser
    4、測試
    http://domainname/~testuser

     carolson 回復于:2003-09-26 14:56:09
    問題!
    php 如何限制呢?
    是否可以將 
    .../user1/public_html 設置為不可執行就可以呢?似乎測試不通過。

    目的: 
    user1 的php 不可以 讀user2的文件(或者其他權限)
    即如何為mass users 設置 php成apache那樣的
    /home/*/use... ...
    就是user1的php 只可以在user1目錄下執行。

    謝謝

    原文轉自: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>