This is a third part of the Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) . In this post, I'm going to prepare the server for Laravel application deployment. Let's create a folder for our Laravel application. By default, NginX will look at the /var/www/ path to serve the files. In this folder let's create a folder called app. Open the following file to update the new path. Run the following command in your terminal. sudo nano /etc/nginx/sites-available/default Let's change the root line and add the public folder path. Change the following location section to add /index.php?$query_string; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. ...