同台主機配置雙 Deki wiki

    內容表格
    沒有標頭

    版本為 15:12, 26 Dec 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    一、配置 DNS server ,可以正确解析出域名!
        
          我使用的IP为:192.168.0.106  
          解析的测试域名分别为: wiki.test.com      osslab.test.com
       

    二、复制一份dekiwiki的主目录到自定义的目录下
     
          # cd /home
          # mkdir dekiwiki
          # chown dekiwiki:apache dekiwiki
          # cp -ap /var/www/dekiwiki/* /home/dekiwiki


    三、按照下列修改dekiwiki配置文件(红色部分需要修改,其他默认即可)

          # vi /etc/httpd/conf.d/deki-apache.conf

    <VirtualHost *>
            ServerName wiki.test.com
            ServerAlias  wiki
     
            ErrorLog /var/log/httpd/error-dekiwiki.log
            CustomLog /var/log/httpd/access-dekiwiki.log common

            DocumentRoot "/var/www/dekiwiki"

            <Proxy *>
              AddDefaultCharset off
              Order deny,allow
              Deny from all
              Allow from all
            </Proxy>
    </VirtualHost>

    <Directory "/var/www/dekiwiki">

             Options None
             AllowOverride All
             Order allow,deny
            Allow from all
    </Directory>
     


    <VirtualHost *>
            ServerName osslab.test.com
            ServerAlias  osslab
     
            ErrorLog /var/log/httpd/error-dekiwiki.log
            CustomLog /var/log/httpd/access-dekiwiki.log common

            DocumentRoot "/home/dekiwiki"

            <Proxy *>
              AddDefaultCharset off
              Order deny,allow
              Deny from all
              Allow from all
            </Proxy>
    </VirtualHost> 

    <Directory "/home/dekiwiki">

             Options None
             AllowOverride All
             Order allow,deny
            Allow from all
    </Directory>
          
     

     

    Powered by MindTouch Core