|
From: RYAN M. v. G. <lu...@co...> - 2006-03-31 00:12:53
|
----- 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"; }; > > > 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. > > > Lastly when the zone file gets created it goes where is should and > > contains some of what it should. However when i add additionally > needed > > records to the dialog box for virtual servers it adds nothing to my > zone > > file. I tried adding zone info into the dns module but it only > allows > > room for two entries and the format of the template file is unclear > to > > me. > > You need to add extra records in the BIND zone file format to the > 'BIND DNS > records for new domains' field in the template, like > > foo IN A ${IP} > I added this line to the 'BIND DNS records for new domains' test IN A ${IP} Here is my newly created zone file the test A record has been added yaaaahah that works too. $ttl 38400 @ IN SOA computerking.ca. root.computerking.ca. ( 2006033000 10800 3600 604800 38400 ) @ IN NS computerking.ca. @ IN A 68.146.204.152 www IN A 68.146.204.152 ftp IN A 68.146.204.152 test IN A 68.146.204.152 > These will then be added to the zone file for a new domain, but only > when it is created. > > - Jamie > In conclusion All i really need solved is having webmin add the zone to the correct file and the * instead of the ipaddress issue in the vhost.conf file. Thanks in adavance 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 -- 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 |