Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2001 13:34:09 -0500
From:      Daniel Frazier <dfrazier@magpage.com>
To:        ben@cahostnet.net
Cc:        questions@freebsd.org
Subject:   Re: virtual hosting
Message-ID:  <3A916721.C2A877EE@magpage.com>
References:  <20010217161653.667722753@sitemail.everyone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Benjamin,

sorry for the delay in replying...  

Now I understand what you're looking for.  My company uses something 
like this for a multitude of tasks, including adding virt hosts. (IMHO
this is one of unix's greatest strengths, the ability to script just
about anything.)  The only gotcha is that these scripts were developed
in house and are so customized that they aren't very portable.  The 
script we've made to add virt hosts does much more than just adding 
the virt host entry in httpd.conf... it adds billing info to mysql,
creates a zone file for the domain, adds the domain to sendmail.cw,
etc.  The fact that apache, mysql and sendmail are all running on
different servers goes to illustrate how customised these scripts have
to be.  

My suggestion is this:  learn perl.  Perl is a great first language 
and is excellently suited to these kind of tasks.  It won't take much
'till you'd be able to write your own perl scripts to accomplish many
of your routine administrative jobs.  There may be some scripts out
there that are somewhat portable that may fit your needs(if I run 
across any I'll be sure to let you know), but trust me... in the long
run you'll be better off and a more capable sys admin if you learn
perl.

-- 
----------------------------------------------------------------------
Daniel Frazier  <dfrazier@magpage.com>   Tel:  302-239-5900 Ext. 231
Systems Administrator                     Fax:  302-239-3909
MAGPAGE, We Power the Internet           WWW:  http://www.magpage.com/

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
        - Benjamin Franklin, Historical Review of Pennsylvania, 1759.

Benjamin Ossei wrote:
> 
> Setting up a vhost envolves several steps.  Creating the directory, user, modifications to httpd.conf and permissions.  I want to kinda automate this and was looking for something that will allow me to on a fly to create these vhosts.  I found one link that was helpful and was wondering if anyone else had some ideas.  I will rather not do this manually.
> 
> Oh, I'm not a programmer even though I can make modifications to some.
> 
> Thanks....
> 
> --- Daniel Frazier <dfrazier@magpage.com>
> > wrote:
> >cgi scripts??  try http://httpd.apache.org/docs/howto/cgi.html
> >if you're looking for something else give me an example of what you
> >want to do...
> >
> >--
> >----------------------------------------------------------------------
> >Daniel Frazier  <dfrazier@magpage.com>   Tel:  302-239-5900 Ext. 231
> >Systems Administrator                     Fax:  302-239-3909
> >MAGPAGE, We Power the Internet           WWW:  http://www.magpage.com/
> >
> >"They that can give up essential liberty to obtain a little temporary
> >safety deserve neither liberty nor safety."
> >        - Benjamin Franklin, Historical Review of Pennsylvania, 1759.
> >
> >Ben wrote:
> >>
> >> Tried it but didn't find anything on scripts etc.  I have an Apache
> >> book so I don't need how to's.  I have it setup.  In the real world
> >> there are always better ways of doing things and short cuts that you
> >> can't always find in books or even the manufactures site.
> >>
> >> ----- Original Message -----
> >> From: "Daniel Frazier" <dfrazier@magpage.com>
> >> To: "Ben" <ben@cahostnet.com>
> >> Cc: <questions@FreeBSD.ORG>
> >> Sent: Friday, February 16, 2001 1:59 PM
> >> Subject: Re: virtual hosting
> >>
> >> > Ben wrote:
> >> > >
> >> > > Anyone knows of a good place (site) that I can find some good
> >> > > practices on using bsd or unix with Apache doing virtual hosting?
> >> > > Setting up multiple accounts, sites using scripts etc.  Any
> >> > > information will be helpful.
> >> > >
> >> >
> >> > ummm, apache.org?
> >> >
> >> > --
> >> > --------------------------------------------------------------------
> >> --
> >> > Daniel Frazier  <dfrazier@magpage.com>   Tel:  302-239-5900 Ext. 231
> >> > Systems Administrator                     Fax:  302-239-3909
> >> > MAGPAGE, We Power the Internet           WWW:
> >> http://www.magpage.com/
> >> >
> >> > "They that can give up essential liberty to obtain a little
> >> temporary
> >> > safety deserve neither liberty nor safety."
> >> >         - Benjamin Franklin, Historical Review of Pennsylvania,
> >> 1759.
> >> >
> 
> _____________________________________________________________
> ========GET YOUR FREE E-MAIL============
> http://freemail.cahostnet.net
> Web Hosting http://www.cahostnet.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A916721.C2A877EE>