简体   繁体   中英

aws ec2 lighsail nginx not pointing to laravel

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM