Laravel forge is one of the best cloud management tools for PHP websites and websites in general. I use it all the time and it’s a time saver.
When you provision a new server it creates a default site with an index.php that displays your php information. I rather not have that exposed to anyone who visits my ip, so I wrote a recipe. Here is what you need to do:
- Log into Laravel Forge
- Click on Recipes
- Give it a name
- Select forge as the user
- Paste the below script
cd ~/default/public;echo "<?php header('HTTP/1.1 403 Forbidden'); ?>" > 'index.php'
You can select this when you provision or anytime to change it from displaying your server info to a forbidden message.