custombuild httpd.conf problem

metalzone82

New member
Joined
Apr 16, 2014
Messages
2
Hello there,
I have a problem with my server. I try to explain as better as I can. I have a 'primaryhost' and 2 "pointed" hosts ('host2 and host3).
When I recieve an email to host2 or host3, the message arrives in 'primaryhost' predefinite mailbox.
Does anyone have an idea about why it happens?

Apache 2.4.7
DirectAdmin 1.45.0
Exim 4.82
MySQL 5.5.27
Named 9.8.2rc1
sshd Running
dovecot 2.2.12
pure-ftpd 1.0.36
Php 5.5.11

custombuild2.0 options.conf

Code:
#PHP settings.
php1_release=5.5
php2_release=no
php1_mode=mod_php
php2_mode=php-fpm
htscanner=yes
php_ini=no
php_timezone=CET
#Possible values - production or development
php_ini_type=production
ioncube=yes
x-mail-header=yes
zend=no

#HTTP server. Possible values: apache, nginx, nginx_apache
webserver=apache

#Apache settings
#Possible value: 2.4
apache_ver=2.4
mod_ruid2=yes
secure_htaccess=no
harden-symlinks-patch=yes
use_hostname_for_alias=auto
redirect_host=xx.xalumboxxx.net
redirect_host_https=no

#Possible values - 5.1, 5.5, 5.6
mysql=5.5
mysql_inst= no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Web applications
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes

#Mail options
exim=yes
eximconf=yes
clamav=no
spamassassin=yes
dovecot=yes
pigeonhole=no

#Statistics
awstats=no
webalizer=yes

#FTP options - possible values: proftpd, pureftpd
ftpd=pureftpd

#Jailed shell
jail=no

#Autoconf/automake/libtool options
autoconf=yes
automake=yes
libtool=yes
curl=yes

#versions of zlib, apr_util and libxml2 (experts only)
zlib=no
new_zlib=no
new_xml2=yes
new_pcre=no
new_suphp=no
old_apr_util=no

#Custombuild options
custombuild=2.0
autover=no
bold=yes
clean=yes
cleanapache=yes
clean_old_tarballs=yes
clean_old_webapps=yes
downloadserver=files.directadmin.com

#Cron settings
cron=no
cron_frequency=daily
[email protected]
notifications=yes
da_autoupdate=no
updates=no
webapps_updates=yes

#Cloudlinux settings
cloudlinux=no
cagefs=no
harden_symlinks_patch=yes
x_mail_header=yes

my usr/local/directadmin/data/users/primaryhost -httpd.conf-

Code:
<Directory "/home/primaryhost/public_html">
	<IfModule mod_ruid2.c>
		RMode config
		RUidGid primaryhost primaryhost
		#RGroups apache access
		RGroups @none
	</IfModule>
</Directory>

<VirtualHost XX.58.172.XX:80 >
	ServerName www.primaryhost.it
	ServerAlias www.primaryhost.it primaryhost.it  host2.com www.host2.com host3.com www.host3.com
	ServerAdmin [email protected]
	DocumentRoot /home/primaryhost/domains/primaryhost.it/public_html
	ScriptAlias /cgi-bin/ /home/primaryhost/domains/primaryhost.it/public_html/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup primaryhost primaryhost
	</IfModule>
	<IfModule mod_ruid2.c>
		RMode config
		RUidGid primaryhost primaryhost
		#RGroups apache access
		RGroups @none
	</IfModule>
	CustomLog /var/log/httpd/domains/primaryhost.it.bytes bytes
	CustomLog /var/log/httpd/domains/primaryhost.it.log combined
	ErrorLog /var/log/httpd/domains/primaryhost.it.error.log
	<Directory /home/primaryhost/domains/primaryhost.it/public_html>
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/primaryhost/.php/php-mail.log
		php_admin_value open_basedir /home/primaryhost/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/
	</Directory>
	RewriteEngine on
	RewriteOptions inherit
</VirtualHost>

<VirtualHost XX.58.172.XX:443 >
	SSLEngine on
	SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
	SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
	ServerName www.primaryhost.it
	ServerAlias www.primaryhost.it primaryhost.it  host2.com www.host2.com host3.com www.host3.com
	ServerAdmin [email protected]
	DocumentRoot /home/primaryhost/domains/primaryhost.it/private_html
	ScriptAlias /cgi-bin/ /home/primaryhost/domains/primaryhost.it/public_html/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup primaryhost primaryhost
	</IfModule>
	<IfModule mod_ruid2.c>
		RMode config
		RUidGid primaryhost primaryhost
		#RGroups apache access
		RGroups @none
	</IfModule>
	CustomLog /var/log/httpd/domains/primaryhost.it.bytes bytes
	CustomLog /var/log/httpd/domains/primaryhost.it.log combined
	ErrorLog /var/log/httpd/domains/primaryhost.it.error.log
	<Directory /home/primaryhost/domains/primaryhost.it/private_html>
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/primaryhost/.php/php-mail.log
		php_admin_value open_basedir /home/primaryhost/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/
	</Directory>
	RewriteEngine on
	RewriteOptions inherit
</VirtualHost>


host2 http.conf

Code:
<Directory "/home/host2/public_html">
	<IfModule mod_ruid2.c>
		RMode config
		RUidGid host2 host2
		#RGroups apache access
		RGroups @none
	</IfModule>
</Directory>

<VirtualHost XX.58.172.XX:80 >
	ServerName www.host2.it
	ServerAlias www.host2.it host2.it 
	ServerAdmin [email protected]
	DocumentRoot /home/host2/domains/host2.it/public_html
	ScriptAlias /cgi-bin/ /home/host2/domains/host2.it/public_html/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup host2 host2
	</IfModule>
	<IfModule mod_ruid2.c>
		RMode config
		RUidGid host2 host2
		#RGroups apache access
		RGroups @none
	</IfModule>
	CustomLog /var/log/httpd/domains/host2.it.bytes bytes
	CustomLog /var/log/httpd/domains/host2.it.log combined
	ErrorLog /var/log/httpd/domains/host2.it.error.log
	<Directory /home/host2/domains/host2.it/public_html>
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/host2/.php/php-mail.log
		php_admin_value open_basedir /home/host2/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/
	</Directory>
	RewriteEngine on
	RewriteOptions inherit
</VirtualHost>

<VirtualHost XX.58.172.XX:443 >
	SSLEngine on
	SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
	SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
	ServerName www.host2.it
	ServerAlias www.host2.it host2.it 
	ServerAdmin [email protected]
	DocumentRoot /home/host2/domains/host2.it/private_html
	ScriptAlias /cgi-bin/ /home/host2/domains/host2.it/public_html/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup host2 host2
	</IfModule>
	<IfModule mod_ruid2.c>
		RMode config
		RUidGid host2 host2
		#RGroups apache access
		RGroups @none
	</IfModule>
	CustomLog /var/log/httpd/domains/host2.it.bytes bytes
	CustomLog /var/log/httpd/domains/host2.it.log combined
	ErrorLog /var/log/httpd/domains/host2.it.error.log
	<Directory /home/host2/domains/host2.it/private_html>
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/host2/.php/php-mail.log
		php_admin_value open_basedir /home/host2/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/
	</Directory>
	RewriteEngine on
	RewriteOptions inherit
</VirtualHost>
 
Back
Top