Add port forwarding to estate 1.x
You need to forward the SSL port by adding a new line to homestead.rb
sudo nano /vagrant/scripts/homestead.rb
Create SSL Certificate
Steps one to four
Follow steps four only from this tutorial https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-nginx-for-ubuntu-12-04
Step Five - Configure Certificate
Edit your estate site that you are working on (replace the example with your existing site)
sudo nano /etc/nginx/sites-available/example
Duplicate the entire server{…} section (and not just the listen line, as you did). In the duplicated section, edit listen 80 to listen 443 .
Add the following lines to the end of the section:
ssl on; ssl_certificate /etc/nginx/ssl/server.crt; ssl_certificate_key /etc/nginx/ssl/server.key;
exit and do vagrant reload .
Be careful with --provision . The changes to sites-available/example that you just made are reset to default.
If you need to make changes forever, even in case of provision, look at serve.sh located in the host folder of the host homstead/scripts/serve.sh and edit it equally in step 5.
Use https://your.domain:44300 in your browser to access via SSL. If necessary, accept the self-signed certificate in your browser.
source share