DA Webalizer Quit after Virtual Host ServerName Change

nightcrawler99

New member
Joined
Aug 14, 2007
Messages
2
I have a virtual host that was created that has been working fine for a year:

From my httpd.conf file:

Code:
LogFormat "%b \"%r\"" homedir
#The default site for the server.
<VirtualHost 72.249.100.45:80>
        ServerAdmin webmaster@localhost
        AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
        DocumentRoot /home/admin/domains/romhacking.net/public_html
        ServerName www.romhacking.net
        ScriptAlias /cgi-bin/ /var/www/cgi-bin/
	CBandRemoteSpeed 30kb/s 3 3

        CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

The 'ServerName' used to be 'localhost' when it was created. The other day, I changed this to 'www.romhacking.net' to work with mod_cband, a newly installed apache module. This was the ONLY parameter changed for this virtual host.

Everything works fine after this change except, webalizer is no longer updated automatically via DirectAdmin. The Direct Admin log shows the tally and update executes 10 minutes after midnight as it's supposed to without errors, but the actual webalizer output is not updated.

It seems clear to me that the problem is probably something to do with the logs somehow, however I'm unsure how to fix this with DA.

Can anybody help with this issue? Was there another way through DirectAdmin that I should have changed the 'ServerName' of the virtual host instead of via the httpd.conf file directly? I didn't think it would make much difference. Any assistance would be appreciated.
 
I believe I have figured this all out. For anybody interested:

I had to make a custom virtual host template:

http://help.directadmin.com/item.php?id=2

I had to do this so I could move the |CUSTOM| token after the ServerName directive (for mod_cband to work correctly).

Then, I had to edit the Virtual Host settings via DirectAdmin rather than httpd.conf itself.

http://help.directadmin.com/item.php?id=3

Now, after restarting httpd, everything works correctly including webalizer.

Unfortunately, I lost 4 days worth of stats it seems. I'm not sure exactly where the log information went, but it seems the logs were cleared and restarted each time I attempted to mess with the virtual host settings.

So, thankfully, it's all up and working fine now. So, maybe one day someone who is having the same problem will run into this post and not have a 4 day headache. :)
 
Thanks nightcrawler99 for sharing your solution, i wasnt able to get it work since the ServerName value was loaded after the custom cband valued added via DA Interface.

This made my day definitly!

Thanks a lot for share the solution!

Best regards
 
Back
Top