-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.conf
45 lines (39 loc) · 1.23 KB
/
default.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
server {
listen 80;
server_name localhost;
return 301 https://$server_name$request_uri;
}
server {
listen 443 default ssl;
server_name localhost;
ssl_certificate /etc/nginx/ssl/ssl.crt;
ssl_certificate_key /etc/nginx/ssl/ssl.key;
ssl_session_timeout 5m;
# https://cipherli.st/
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
error_page 497 https://$host:$server_port$request_uri;
#location / {
root /var/www/html;
index index.html index.htm;
#}
#location ~ \.php$ {
# fastcgi_pass phphost:9000;
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
# fastcgi_index index.php;
# fastcgi_param REMOTE_ADDR $http_x_real_ip;
# fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
# include fastcgi_params;
#}
#location /folder {
# proxy_set_header Host $http_host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-Proto https;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_redirect http:// https://;
# add_header Pragma "no-cache";
# proxy_pass http://host:80/;
# #proxy_pass https://host:443/;
#}
}