手工修改linux系统下DA面板绑定的域名
    文章作者:恒爱云[恒爱网络] 阅读次数:6426 发布时间:2014-12-25

    举例说明手工修改DA面板下虚拟主机ryan绑定的域名,只需要 vi /usr/local/directadmin/data/users/ryan/httpd.conf

    代码如下:

    # Auto generated apache config file by DirectAdmin version 1.46.3
    # Modifying this file is not recommended as any changes you make will be
    # overwritten when the user makes any changes to his/her website

    # For global config changes that affect all Users, see this guide:
    #http://help.directadmin.com/item.php?id=2
    # For local config changes that only affect one User, see this guide:
    #http://help.directadmin.com/item.php?id=3



            ServerName www.ryan.vip.gotoip.com
            ServerAlias www.ryan.vip.gotoip.comrya.vip.gotoip.com www.test.com
            ServerAdmin webmaster@ryan.vip.gotoip.com
            DocumentRoot /home/ryan/domains/ryan.vip.gotoip.com/public_html
            UseCanonicalName OFF
            
                    SuexecUserGroup ryan ryan
            
            CustomLog /var/log/httpd/domains/ryan.vip.gotoip.com.bytes bytes
            CustomLog /var/log/httpd/domains/ryan.vip.gotoip.com.log combined
            ErrorLog /var/log/httpd/domains/ryan.vip.gotoip.com.error.log
            
                    AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
                    Options -ExecCGI
                    php_admin_flag safe_mode OFF
                    php_admin_flag engine ON
                    php_admin_value sendmail_path '/usr/sbin/sendmail -t -i-fryan@ryan.vip.gotoip.com'
                    php_admin_value mail.log /home/ryan/.php/php-mail.log
                    php_admin_value open_basedir /home/ryan/:/tmp:/var/tmp:/usr/local/lib/php/