You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
2.2 KiB
101 lines
2.2 KiB
#user nobody; |
|
worker_processes 1; |
|
|
|
#error_log logs/error.log; |
|
#error_log logs/error.log notice; |
|
#error_log logs/error.log info; |
|
|
|
#pid logs/nginx.pid; |
|
|
|
|
|
events { |
|
worker_connections 1024; |
|
} |
|
|
|
|
|
|
|
http { |
|
include mime.types; |
|
default_type application/octet-stream; |
|
|
|
#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
|
# '$status $body_bytes_sent "$http_referer" ' |
|
# '"$http_user_agent" "$http_x_forwarded_for"'; |
|
|
|
#access_log logs/access.log main; |
|
|
|
sendfile on; |
|
#tcp_nopush on; |
|
|
|
#keepalive_timeout 0; |
|
keepalive_timeout 65; |
|
|
|
#gzip on; |
|
|
|
server { |
|
listen 80; |
|
server_name localhost; |
|
|
|
#charset koi8-r; |
|
|
|
#access_log logs/host.access.log main; |
|
|
|
location / { |
|
root html; |
|
index index.html index.htm; |
|
} |
|
} |
|
|
|
server { |
|
listen 443 ssl; |
|
listen 80; |
|
|
|
server_name ovo.re; #1 |
|
root /home/www/img; |
|
index index.php index.html; |
|
client_max_body_size 1000M; |
|
|
|
ssl_certificate ssl/ovo.re.crt; #2 |
|
ssl_certificate_key ssl/ovo.re.key; #3 |
|
|
|
ssl_session_cache shared:SSL:1m; |
|
ssl_session_timeout 5m; |
|
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; |
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
|
ssl_prefer_server_ciphers on; |
|
error_page 404 = /404.php; |
|
|
|
location / { |
|
proxy_pass https://www.eee.dog; |
|
} |
|
} |
|
|
|
|
|
|
|
server { |
|
listen 443 ssl; |
|
listen 80; |
|
|
|
server_name iotgod.net; #1 |
|
root /home/www/IoTgod-www; |
|
index index.php index.html; |
|
client_max_body_size 1000M; |
|
|
|
ssl_certificate ssl/iotgod.net.crt; #2 |
|
ssl_certificate_key ssl/iotgod.net.key; #3 |
|
|
|
ssl_session_cache shared:SSL:1m; |
|
ssl_session_timeout 5m; |
|
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; |
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
|
ssl_prefer_server_ciphers on; |
|
error_page 404 = /404.php; |
|
|
|
location / { |
|
proxy_pass https://www.iotgod.net/; |
|
} |
|
} |
|
|
|
|
|
|
|
}
|
|
|