#1  
Old 23rd July 2009, 16:27
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default ISPconfig + Apache

Hi Falko / and all the others,

my questions are pretty simple:

a) How does monthly http / eMail traffic counting work? Since Quoata doesn't tell me anything about used <Traffic> only about used <DiskSapce>. Do you use apache User's access.log for that?

b) How do you manage to add/modify/remove Virtual Hosts in the Apache conf with the help of ISPconfigs Webinterface? Do you use "sed"? It would be nice if I could get an example of how to add/modify/remove a single Virtual Host in the config.


Thanks,

Leander
Reply With Quote
Sponsored Links
  #2  
Old 23rd July 2009, 17:04
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 242
Thanks: 2
Thanked 22 Times in 22 Posts
Default

For B if all settings, etc. are stored in a database its a simple matter of adding/removing record (or flagging as removed) and then dump it all out to the file, replacing the file each time.
Reply With Quote
  #3  
Old 23rd July 2009, 18:41
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

This SQL soluten makes sences, but to be honest it doesn't sound like a nice way how to put it into a script. I thought more of something like sed, but I could give it a try if you would have me an example of how and with what commands you do the mentioned SQL solution.

Thanks,

Leander
Reply With Quote
  #4  
Old 24th July 2009, 15:49
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

... thought about that idea of always replacing the whole vhosts.conf ... but I'm still not the best friend of this database solution ... it just locks like to much effort ...

Therefore I found a script which is originally responsible for a awstat conf creation ...

###############
# Create the virtual host awstats.conf
cat /etc/awstats/awstats.model.conf | \
sed -e "s/\\\$DOMAIN/$DOMAIN/g" | \
sed -e "s/\\\$USERNAME/$WUSERNAME/g" | \
sed -e "s/\\\$ALIASES/$ALIASES/g" > \
"/etc/awstats/awstats.$DOMAIN.conf"
###############

Think I'll try do modify that somehow ...

But I'm still open to OTHER solutions - Please share your ideas!


AND still ... what about TRAFFIC CALCULATION ... where to get the Data from how much Apache used? The Apache access.log? Any other ideas?
Please share ideas ... - anything helpful is wanted )


Best regards,

Leander
Reply With Quote
  #5  
Old 17th August 2009, 21:43
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

Is there no way to put the vhosts.conf part in a SQL Table and make Apache read the information out of this table?
Reply With Quote
  #6  
Old 18th August 2009, 13:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

No. I think there once was a project that tried to build such an Apache module, but I guess it's dead...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can i run nginx with an ispconfig setup along with apache? steve51184 Tips/Tricks/Mods 5 25th July 2009 10:38
enable mod rewrite for the ISPconfig apache web server blocker General 3 18th April 2009 17:14
ISPConfig Killed My Apache rasterburn Installation/Configuration 1 19th February 2007 12:19
server with Apache2 / Apache 1.3 (and ISPConfig) akaiser Server Operation 3 8th February 2007 21:26
ispconfig breaks php5 in apache ? Randy Installation/Configuration 2 28th October 2006 13:20


All times are GMT +2. The time now is 02:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.