Don't have a2ensite on my ubuntu server [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this questionI have an ubuntu server running nginx. I just tried to enable a vhost config and discovered that i don't have the a2ensite command. I searched with find and whereis and it looks like i just don't have it. I realise i could hand-roll my own symbolic link from sites-enabled to sites-available but i'd rather use a2ensite/a2dissite to manage this. How can i install it?
thanks -max
a2ensite
is for Apache2 hence the a2
. I'm sure you can make a script mimicing its functionality by making it ln -s
based on the parameter you feed, which it will look in the sites-available
directory and then invoke ln
on.
精彩评论