curl -i cloud.marcusmebel.ru
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.11.9</center>
</body>
</html>
curl -Li cloud.marcusmebel.ru
service nginx status
смотрите на предмет того что сервис действительно запустился без ошибок. server {
listen 80 default_server;
server_name example.org;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl default_server;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
root /home/deploy/apps/example/current/public;
try_files $uri/index.html $uri @example;
location @example {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://example;
}
keepalive_timeout 10;
}
server {
listen 80 ;
server_name example_no_ssl.org;
location / {
......
}
.....
}
upstream gitlab-app {
least_conn;
server server_addr_or_ip:80 weight=10 max_fails=3 fail_timeout=30s;
}
location /gitlab {
proxy_pass http://gitlab-app;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
ssl on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_certificate /etc/nginx/cert/ssl.crt;
ssl_certificate_key /etc/nginx/cert/ssl.key;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!kEDH';
ssl_stapling on;
ssl_stapling_verify on;
add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
HTTP/1.1 200 OK
Date: Fri, 26 Feb 2016 12:23:06 GMT
Server: Apache/2.2.15 (CentOS)
Last-Modified: Wed, 24 Feb 2016 10:36:01 GMT
ETag: "11560669-214d097-52c81a1da29ab"
Accept-Ranges: bytes
Content-Length: 34918551
Cache-Control: max-age=2592000
Expires: Sun, 27 Mar 2016 12:23:06 GMT
Vary: Accept-Encoding,User-Agent
Connection: close
Content-Type: video/mp4
location / {
root /var/site;
index index.html;
if ($arg_tracker) { add_header Set-Cookie "tracker=$arg_tracker;Max-Age=50"; }
}
location / {
root /var/site;
index index.html;
if ($args ~ "^tracker=(\d+)") {
set $key_track $1;
add_header Set-Cookie "tracker=$key_track;Max-Age=50";
}
}