I don't have a2ensite on my ubuntu server

I have an ubuntu server with nginx. I just tried turning on vhost configuration and found that I do not have a2ensite command. I searched with find and whereis, and it looks like I don't have one. I understand that I can drop my symbolic link from sites available on sites - but I would rather use a2ensite / a2dissite to control this. How to install it?

thanks -max

+3
source share
1 answer

a2ensitefor Apache2, therefore a2. I am sure that you can make a script by calling its functionality, making it ln -sbased on the parameter that you supply, which it will look for in the directory sites-available, and then call lnon.

+4
source

Source: https://habr.com/ru/post/1756541/


All Articles