Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server { │
- listen 80; │
- server_name domain.com www.domain.com; │
- return 301 https://$server_name$request_uri; │
- } │
- │
- server { │
- # Basic configuration │
- listen 443 ssl; │
- server_name domain.com www.domain.com; │
- passenger_enabled on; │
- passenger_app_env development; │
- root /home/user/path_to_app/public; │
- │
- # Required for LetsEncryptSSL certificate │
- location ~ /.well-known { │
- allow all; │
- } │
- │
- # Include SSL config │
- include snippets/ssl-domainc.com.conf; │
- include snippets/ssl-params.conf; │
- }
- server { │
- #listen 80 default_server; │
- server_name app1.domain.com; │
- passenger_enabled on; │
- passenger_app_env development; │
- root /home/app1/app1/public; │
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement