[NTLUG:Discuss] adding domain without restart the servers
brad angelcyk
bradangelcyk at gmail.com
Fri Jan 14 13:10:01 CST 2005
You shouldn't have to restart networking when you add a new web site.
Just bind and apache.
http://httpd.apache.org/docs/vhosts/name-based.html
On Fri, 14 Jan 2005 12:24:18 -0600, Kenneth Loafman <ken at lt.com> wrote:
> m m wrote:
> > All:
> >
> > How do I adding a new domain without restart http, dns, network... server?
> >
> > I host my web site on the hosting company, I notice that when I add a
> > domain,
> > they don't need to restart their servers. but if I add a new domain to
> > my linux box, I have to modify the http.conf, dns files, etc/hosts...
> > and restart these services.
> >
> > Can some show/point me out the scripts/sources?
>
> Take a look into /etc/init.d. Scripts there have a start, stop, and
> restart command. Some have reload and other options. The system uses
> these during init and shutdown.
>
> /etc/init.d/network restart
>
> will restart the network, however, if all you change is /etc/hosts, that
> is not at all necessary. The software will notice the change and reload
> as needed.
>
> Restarting apache will not cause loss of data, so that's safe.
>
> Bind can be refreshed without incident with 'rndc'.
>
> Essentially everything except the kernel can be restarted in Linux
> without having to reboot. Remember, its not Windows.
>
> ...Ken
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list