|
From: Jamie C. <jca...@we...> - 2006-03-31 01:41:14
|
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. > > > > > 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 |