Skip to content

Instantly share code, notes, and snippets.

@g0ld3lux
Forked from jeremyvaught/domain.io.txt
Last active September 26, 2016 05:26
Show Gist options
  • Save g0ld3lux/04d1178f313d79bdeecb6f6aa03a4ba9 to your computer and use it in GitHub Desktop.
Save g0ld3lux/04d1178f313d79bdeecb6f6aa03a4ba9 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;
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment