CentOS+postfix+ExtMail+amavisd-new+Spam_Locker+DSpam配置指南:六、配置Apache

 1、虚拟主机设置

 
编辑httpd.conf文件:
 
  
  
  
  
  1. shell 
  2. # vi /etc/httpd/conf/httpd.conf 
在最后一行加上:
 
  
  
  
  
  1. NameVirtualHost *:80 
  2. Include conf/vhost_*.conf 
编辑 vhost_extmail.conf
 
  
  
  
  
  1. shell 
  2. # vi /etc/httpd/conf/vhost_extmail.conf 
里面定义虚拟主机的相关内容:
 
 
  
  
  
  
  1. # VirtualHost for ExtMail Solution 
  2. <VirtualHost *:80> 
  3. ServerName mail.extmail.org 
  4. DocumentRoot /var/www/extsuite/extmail/html/ 
  5.  
  6. ScriptAlias /extmail/cgi/ /var/www/extsuite/extmail/cgi/ 
  7. Alias /extmail /var/www/extsuite/extmail/html/ 
  8.  
  9. ScriptAlias /extman/cgi/ /var/www/extsuite/extman/cgi/ 
  10. Alias /extman /var/www/extsuite/extman/html/ 
  11.  
  12. # Suexec config 
  13. SuexecUserGroup vuser vgroup 
  14. </VirtualHost> 
设置apache开机启动
 
  
  
  
  
  1. shell 
  2. # chkconfig httpd on 

你可能感兴趣的:(centos,postfix,安装配置,dspam,ExtMail,Amavisd-new)