Shell Script Adding Domain

Discussion in 'General' started by zoom, Sep 14, 2007.

  1. zoom

    zoom Well-Known Member

    I currently using a vhost template to add domains to the server as needed via the web interface. However, in the past when I was running Apache I had a nice little shell script that would add the site to Apache's config and gracefully restart the service. Does litespeed have script available?

    I noticed that when you have vhost template and add a domain it doesn't create a template file for each domain. Instead it seems to just add the template entry to httpd_config.xml. I'm I correct in this assumption?

  2. mistwang

    mistwang LiteSpeed Staff

    You can instantiate the template member to generate a vhost configuration file for you.
  3. zoom

    zoom Well-Known Member

    Yes I knew about the ability to instantiate a vhost template domain. If I instantiate the domain in the vhost template it defeats the power of using the template. Instead I would rather just be able to add the entry to the httpd_config.xml

Share This Page