Create VHost and add created VHost to listener from script

Discussion in 'General' started by SoreGUms, Mar 16, 2008.

  1. SoreGUms

    SoreGUms Active Member

    I'm automating the creation of a website.
    I have the directory structure all done and the vhconf.xml creation done.

    All I need to do now is insert the relevant lines into /opt/lsws/conf/httpd_config.xml
    How do I do this from a bash script - or at all?

    Thanks :)
  2. mistwang

    mistwang LiteSpeed Staff

    I think you should use PHP or perl script to update the XML configuration instead of using shell script.

Share This Page