-
-
Save g0ld3lux/04d1178f313d79bdeecb6f6aa03a4ba9 to your computer and use it in GitHub Desktop.
Laravel Forge wildcard domain with ssl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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