举例说明手工修改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
<VirtualHost 180.178.50.13:80 >
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
<IfModule !mod_ruid2.c>
SuexecUserGroup ryan ryan
</IfModule>
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
<Directory /home/ryan/domains/ryan.vip.gotoip.com/public_html>
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/
</Directory>
</VirtualHost>
---
转载请注明本文标题和链接:《手工修改linux系统下DA面板绑定的域名》
发表评论