Reputation: 13
I'm very new to deploying on server. I followed this tutorial to deploy my laravel project from github and successfully completed all steps.
But when I point to my instance ip on browser, it loads nginx homepage rather than laravel.
check 1: sudo nano /etc/php-fpm.d/www.conf
; Note: This value is mandatory.
listen = 127.0.0.1:8080
I suppose this means the instance should listen to laravel instead of any other?
What I suspect is, sudo nano /etc/nginx/sites-available/myapp.site
the myapp.site is empty. It suppose to create symlinks I suppose. How can I solve this issue?
This is what I see on browser for my instance ip: nginx welcome page
Upvotes: 1
Views: 49
Reputation: 35238
The contents of /etc/nginx/sites-available/myapp.site
should contain the value of this file according to this tutorial.
Once it contains these contents perform the following actions:
sudo ln -s /etc/nginx/sites-available/myapp.site /etc/nginx/sites-enabled/myapp.site
sudo service nginx restart
Assuming the remaining parts of the tutorial are followed you should now be able to see your site.
Upvotes: 1