a2ensite from script path

前端 未结 1 2133
深忆病人
深忆病人 2021-02-20 06:31

I\'m trying to automate some new site deployment in my testing environment. My script auto generates the apache vhost file in

/etc/apache2/sites-available/tests         


        
1条回答
  •  梦谈多话
    2021-02-20 07:08

    a2ensite's man page doesn't mention it explicitly, but you actually should supply just a name of the site to be enabled, like...

    a2ensite testsite.com
    

    ... and not the whole path to it.

    0 讨论(0)
提交回复
热议问题