From: RYAN M. v. G. <lu...@co...> - 2006-03-31 04:53:12
|
----- Jamie Cameron <jca...@we...> wrote: > On 30/Mar/2006 18:13 RYAN M. vAN GINNEKEN wrote .. > > > > ----- Jamie Cameron <jca...@we...> wrote: > > > On 29/Mar/2006 00:12 RYAN vAN GINNEKEN wrote .. > > > > First of i am getting really close to making my life alot > easier > > > through > > > > the uses of your great program. Hoping all the time i put in > now > > > will > > > > save me time in the near future. > > > > > > > > When virtualmin adds a zone it always adds it to the > > > > /usr/local/etc/named.conf directory this does not work for me i > need > > > it > > > > to be added to the /usr/local/etc/namedb/webmin/zones.file. I > have > > > made > > > > the adjustment in the dns server module config by checking the > Add > > > new > > > > zones to file and adding this to the dialog box > > > > /usr/local/etc/namedb/webmin/zones.file. > > > > > > So is Webmin/Virtualmin doing the right thing after you make this > > > change? > > > > NO the change does not seem to have any effect. It still adds this > to > > the bottom of my /usr/local/etc/named.conf file instead of > /usr/local/etc/namedb/webin/zones.file > > > > > > zone "test210.com" { > > type master; > > file "/usr/local/etc/namedb/webmin/pz/test210.com.hosts"; > > }; > > That looks like a Virtualmin bug.. > I will fix it in the next release though. Really i found a bug lucky me do i win something? hmmmm a workaround for now is to copy and paste into the correct file. That sounds like to much messing around i want this whole thing to be automated that is the point of webmin right? My main problem with adding to the named.conf is that i use views and webmin does not seem to be able to add to the correct view.......................................................................................yep i tested it and might just be me but the 'Create new domains in view' setting does not seem to stick. It seemed to work once but now it is not i even tried restarting webmin. between this and the bug mentioned ealrier in this mail i am unsure how to make this work. Also where are the automatic zone records coming from i have turned them off for now and am just using the below for the template file will webmin still be able to update serial #'s and the like if it has not created the file? What about the slave server how do i add the correct zone entry to the named.conf on the remote slave server? ;========================================================== ; ${DOM} Webmin generated zone file ;========================================================== $TTL 3600 ${DOM}. IN SOA ns1.computerking.ca. root.computerking.ca. ( 2006030501 ; SERIAL 1200 ; SOA REFRESH 120 ; SOA RETRY 1209600 ; SOA EXPIRE 3600 ) ; SOA MINIMUM TTL ;---------------------------------------------------------- ; NAME SERVERS (the name @ is implied) ;---------------------------------------------------------- ${DOM}. IN NS ns1.computerking.ca. ${DOM}. IN NS ns2.computerking.ca. ;---------------------------------------------------------- ; MAIL EXCHANGERS ;---------------------------------------------------------- ${DOM}. IN MX 10 shoemasters.com. ${DOM}. IN MX 20 canmail.org. ${DOM}. IN MX 30 mail1.computerking.ca. ;---------------------------------------------------------- ; ADDRESSES FOR THE CANOCICAL NAMES ( A records) ;---------------------------------------------------------- ${DOM}. IN A 68.146.204.152 ${DOM}. IN A 68.144.188.169 www.${DOM}. IN A 68.146.204.152 www.${DOM}. IN A 68.144.188.169 logs.${DOM}. IN A 68.146.204.152 logs.${DOM}. IN A 68.144.188.169 ftp.${DOM}. IN A 68.146.204.152 ftp.${DOM}. IN A 68.144.188.169 mail.${DOM}. IN A 68.146.204.152 mail.${DOM}. IN A 68.146.204.152 extra.${DOM}. IN A 68.146.204.152 extra.${DOM}. IN A 68.144.188.169 > > > > > > > > When creating the apache site webmin seems to do a great job > adding > > > the > > > > apache web directives to to new file > > > /usr/local/etc/apache/vhost.conf > > > > but adds the below. I would like to see *:80 rather than an ip > > > address > > > > also it seems to leave behind a bunch of these enteries when i > > > delete > > > > virtual servers. > > > > > > > > <VirtualHost 68.146.204.152:80> > > > > </VirtualHost> > > > > <VirtualHost 68.146.204.152:80> > > > > </VirtualHost> > > > > > > > > I have added these directives to the apache directive box is > that > > > the > > > > best/only way seems alittle messy? can i use a template file or > > > something. > > > > > > Do you mean you added the actual <Virtualhost> lines to the > template? > > > That > > > is not needed, as they are added automatically .. in fact, adding > them > > > could > > > cause problems deleting. > > > > No or yes you are talking about the Edit Server Template page right? > On > > the Edit Server Template page under the section Directive and > settings > > for new websites sections. I have checked off the apache directives > below > > button, and filled in the box with the following content. > > > > # ============ This the ${DOM} virtual host file ========== > > > > ServerName ${DOM} > > ServerAlias www.${DOM} > > DocumentRoot ${HOME}/public_html > > ErrorLog ${HOME}/logs/error_log > > CustomLog ${HOME}/logs/access_log common > > ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/ > > <Directory ${HOME}/public_html> > > Options Indexes IncludesNOEXEC FollowSymLinks > > allow from all > > </Directory> > > > > # SuexecUserGroup rmvg rmvg > > # <Directory /home/site.com/public_html/cgi > > > # Options +ExecCGI +Indexes > > # AddHandler cgi-script .cgi > > # </Directory> > > > > </VirtualHost> > > > > <VirtualHost *:80> > > > > ServerName mail.${DOM} > > ErrorLog ${HOME}/logs/error_log > > CustomLog ${HOME}/logs/access_log common > > Redirect permanent / http://www.canmail.org/ > > > > </VirtualHost> > > > > <VirtualHost *:80> > > > > ServerName logs.${DOM} > > DocumentRoot ${HOME}/public_html/stats > > ErrorLog ${HOME}/logs/error_log > > CustomLog ${HOME}/logs/access_log common > > > > THEREFORE YES I HAVE ADDED SEVERAL <VirtualHost *:80> ENTERIES BUT > LET > > WEBMIN TAKE CARE OF THE TOP AND BOTTOM ONE. It took me some > experementing > > but i got pretty much the output i want from webmin in vhost.conf > file. > > However it use my ip address rather than a *:80 here is what webmin > adds > > to the vhost.conf file. > > > > <VirtualHost 68.146.204.152:80> > > # ============ This the test209.com virtual host file ========== > > > > ServerName test209.com > > ServerAlias www.test209.com > > DocumentRoot /home/test209.com/public_html > > ErrorLog /home/test209.com/logs/error_log > > CustomLog /home/test209.com/logs/access_log common > > ScriptAlias /cgi-bin/ /home/test209.com/cgi-bin/ > > <Directory /home/test209.com/public_html> > > Options Indexes IncludesNOEXEC FollowSymLinks > > allow from all > > </Directory> > > > > # SuexecUserGroup rmvg rmvg > > # <Directory /home/site.com/public_html/cgi > > > # Options +ExecCGI +Indexes > > # AddHandler cgi-script .cgi > > # </Directory> > > > > </VirtualHost> > > > > <VirtualHost *:80> > > > > ServerName mail.test209.com > > ErrorLog /home/test209.com/logs/error_log > > CustomLog /home/test209.com/logs/access_log common > > Redirect permanent / http://www.canmail.org/ > > > > </VirtualHost> > > > > <VirtualHost *:80> > > > > ServerName logs.test209.com > > DocumentRoot /home/test209.com/public_html/stats > > ErrorLog /home/test209.com/logs/error_log > > CustomLog /home/test209.com/logs/access_log common > > </VirtualHost> > > > > I JUST DELETED THE ABOVE SITE AND IT LEFT THE VHOST.CONF FILE CLEAN > THIER > > IS ONE PROBLEM SOLVED ITSELF THANKS WEBMIN. > > Ok, I can see why those extra virtual servers aren't being deleted - > putting > them into the template like that is kind of a hack! > Which Apache version do you run there? Whether or not it uses * or the > IP in > the <Virtualhost> depends on the Apache version .. > > - Jamie > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list -- Computer King/CaNMail http://www.computerking.ca http://www.canmail.org Sales, Service, and Hosting Email, Data, and Web Packages Ask about web design specials Affiliates http://www.computerking.ca/pages/links/affiliates/affiliates.htm Maybe Computer Science should be in the College of Theology. -- R. S. Barton |