Sites-Available/Sites-Enabled Not Here?

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

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?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.