Question

Sites-Available/Sites-Enabled Not Here?

Posted June 30, 2020 5.7k views
NginxLaravel

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?

1 comment
  • Dear

    I am installed apache and nginx in my magento (linux) server. i want to configure apache as primary and nginx as reverse proxy. so after nginx installation i got the same port using error. so i have changed apache port 8080 in /etc/httpd/conf/httpd.conf . so the issue is fixed . now the both services (apache & nginx) working sucessfully without any issues. but how can i check that whether nginx working as reverse proxy. i have gone through a lot articles. but i cannot understand . even some of the config paths are not seeing in my server too as per the article

    some one please help me on this please

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.

×
Submit an Answer
1 answer

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.