Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server
- {
- listen 80;
- listen 443 ssl;
- ssl_certificate /home/wwwroot/default/ssl/cert.key.pem;
- ssl_certificate_key /home/wwwroot/default/ssl/cert.key;
- ssl_dhparam /home/wwwroot/default/ssl/cert.pem;
- keepalive_timeout 60;
- #listen [::]:80 default_server ipv6only=on;
- server_name www.domain.com domain.com;
- if ( $scheme = http ){
- return 301 https://$server_name$request_uri;
- }
- index index.html index.htm index.php;
- root /home/wwwroot/default;
- location / {
- proxy_pass http://remote.server.ip.address/;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- }
- location ~ .*.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 1d;
- }
- location ~ .*.(js|css)?$
- {
- expires 12h;
- }
Add Comment
Please, Sign In to add comment