3

I 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

Max Williams
  • 32,435
  • 31
  • 130
  • 197

1 Answers1

4

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.

meder omuraliev
  • 183,342
  • 71
  • 393
  • 434