Ruined my http.conf templates

Nedra

New member
Joined
Oct 1, 2011
Messages
1
Hi all! I've been messing around to follow this guide to make sure subdomains pointed to the folder I wanted http://help.directadmin.com/item.php?id=199

Somehow along the way I messed with the actual virtual_host2_sub.conf and virtual_host2_secure_sub.conf instead of the copies, and now I ruined something. I'm not sure what, but unfortunately my subdomains are not resolving anymore, I just get the message 'Apache is working normal'. I was hoping that someone here could help me out because for the love of god, I do not know what I changed.

This is how a subdomain entry looks when I check in DirectAdmin:
HTML:
SSLEngine on
	SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
	SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
		

	ServerName www.img1.domain.com
	ServerAlias www.img1.domain.com img1.domain.com 
	ServerAdmin [email protected]
	DocumentRoot /home/user/domains/domain.com/public_html/img1
	ScriptAlias /cgi-bin/ /home/user/domains/domain.com/public_html/img1/cgi-bin/

	UseCanonicalName OFF

	SuexecUserGroup user user
	CustomLog /var/log/httpd/domains/domain.com.img1.bytes bytes
	CustomLog /var/log/httpd/domains/domain.com.img1.log combined
	ErrorLog /var/log/httpd/domains/domain.com.img1.error.log

	<Directory /home/user/domains/domain.com/public_html/img1>
		Options +Includes -Indexes

		php_admin_flag engine ON
		<IfModule !mod_php6.c>
			php_admin_flag safe_mode OFF
		</IfModule>
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


		php_admin_value open_basedir /home/user/:/tmp:/var/tmp:/usr/local/lib/php/


	</Directory>
Can anyone see the errors in this?
 
Also i suggest you to copy the template you wanna edit in custom subdirectory so whatever wrong you do you can always take the orignal back.

Regards
 
Back
Top