Custom HTTPD Modification

tgo316

Verified User
Joined
May 4, 2005
Messages
61
hello,
I've been using directadmin to add my sub-domains and with the 3 servers i have, and thousands of sub-domains on each server, it's really a pita to constantly work through direct-admin.

I downloaded the custom httpd directory and i know this is what DA writes to it.


<VirtualHost 00.000.000.00:80>


ServerName www.mysubdomain.mydomain.com
ServerAlias www.mysubdomain.mydomain.com mysubdomain.mydomain.com
ServerAdmin [email protected]
DocumentRoot /home/tgo316/domains/mydomain.com/public_html/mysubdomain
ScriptAlias /cgi-bin/ /home/tgo316/domains/mydomain.com/public_html/mysubdomain/cgi-bin/

UseCanonicalName OFF

User tgo316
Group tgo316
CustomLog /var/log/httpd/domains/mydomain.com.|.bytes bytes
CustomLog /var/log/httpd/domains/mydomain.com.|.log combined
ErrorLog /var/log/httpd/domains/mydomain.com.|.error.log
<Directory /home/tgo316/domains/mydomain.com/public_html/mysubdomain>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode OFF
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
</Directory>



#php_admin_value open_basedir /home/tgo316/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>


Now ofcourse am not calling the stats for my sub-domains and just the domain, but out of the above, which lines can i skip and modify?

What i mean to say is, am not really interested in keeping track of how many visitors came to my site and other stuff, just interested in the visitors visiting without any problem (i have other ways to keep a track of whose visiting my site)

So out of the above, if i skip any lines, will it help in improving efficiency?
I am not sure, but let's say if i skip
CustomLog /var/log/httpd/domains/mydomain.com.|.bytes bytes
CustomLog /var/log/httpd/domains/mydomain.com.|.log combined
ErrorLog /var/log/httpd/domains/mydomain.com.|.error.log


Would it be okay?
And since i've never done this manually, does DA only write to this file while adding a sub-domain? or do i have to create entries in files elsewhere...if yes, which other files :confused:


Best Regards
Amit
 
Back
Top