Skip to content

Instantly share code, notes, and snippets.

@jeremyvaught
Last active November 8, 2019 11:13
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jeremyvaught/8d0761182bc5dca641dc to your computer and use it in GitHub Desktop.
Save jeremyvaught/8d0761182bc5dca641dc to your computer and use it in GitHub Desktop.
Laravel Forge wildcard domain with ssl
#/etc/nginx/sites-available/domain.io
server {
listen 80;
server_name domain.io *.domain.io;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name .domain.io;
root /home/forge/domain.io/public;
...
@shealan
Copy link

shealan commented Aug 7, 2015

Thank you so much for posting this! Exactly what I needed 👍

@jeremyvaught
Copy link
Author

woo hoo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment