POSTFIX+Extmail邮件系统搭建(完整版)系列之五

 第五部分:配置Apache

1、虚拟主机设置

编辑httpd.conf文件:

# vi /etc/httpd/conf/httpd.conf

 

在最后一行加上:

NameVirtualHost *:80

Include conf/vhost_*.conf

 

编辑 vhost_extmail.conf

# vi /etc/httpd/conf/vhost_extmail.conf

 

里面定义虚拟主机的相关内容:

# VirtualHost for ExtMail Solution

<VirtualHost *:80>

ServerName mail.extmail.org

DocumentRoot /var/www/extsuite/extmail/html/

 

ScriptAlias /extmail/cgi/ /var/www/extsuite/extmail/cgi/

Alias /extmail /var/www/extsuite/extmail/html/

 

ScriptAlias /extman/cgi/ /var/www/extsuite/extman/cgi/

Alias /extman /var/www/extsuite/extman/html/

 

# Suexec config

SuexecUserGroup vuser vgroup

</VirtualHost>

 

设置apache开机启动

# chkconfig httpd on

你可能感兴趣的:(职场,休闲,poxfix,Linux邮件)