Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- listen 443 ssl;
- ssl on;
- ssl_certificate /home/cert/certificates.crt;
- ssl_certificate_key /home/cert/private.key;
- server_name example.com www.example.com;
- access_log /var/log/nginx/nginx.vhost.access.log;
- error_log /var/log/nginx/nginx.vhost.error.log;
- server_name example.com www.example.com;
- location / {
- proxy_pass http://localhost:8000;
- include proxy_params;
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-For $remote_addr;
- }
- }
Add Comment
Please, Sign In to add comment