Report this

What is the reason for this report?

Sites-Available/Sites-Enabled Not Here?

Posted on June 30, 2020

Connected Tutorial(This question is a follow-up to this tutorial):

How To Install and Configure Laravel with Nginx on Ubuntu (LEMP Stack)

When I followed the tutorial and went to create my .conf file for my laravel project. Nginx did not have a sites-available or sites-enabled directory?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @alexgq3,

This is because you have installed Nginx from the Nginx repository. Instead of the sites-available/sites-enabled directory, you get conf.d directory. Navigate the conf.d directory and disable the default configuration.

sudo mv default.conf default.conf.disbaled 
sudo nginx -s reload

Now you can create a new configuration file for your web. Don’t worry all the procedure is similar.

If anything else, please let me know.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.