Установил докер-контейнер на Jelastic с HHVM + pagespeed, все отлично - сайт открывается.
Но после перезагрузки контейнера у меня активируется Admin-Mode и открывается информация по командам.
Вопрос, как отключить админку и почему она появилась после перезагрузки?
default.conf:
# Properly Relay Proxy HTTPS info
map $http_x_forwarded_proto $proxy_https {
default off;
https on;
}
server {
listen 80 default_server backlog=2048;
# We're likely behind a LB on a private network
real_ip_header X-Forwarded-For;
set_real_ip_from 10.0.0.0/8;
set_real_ip_from 172.16.0.0/12;
set_real_ip_from 192.168.0.0/16;
# Pagespeed setup
pagespeed on;
# Needs to exist and be writable by nginx. Use tmpfs for best performance.
pagespeed FileCachePath /var/cache/pagespeed;
# Ensure requests for pagespeed optimized resources go to the pagespeed handler
# and no extraneous headers get set.
location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
add_header "" "";
}
location ~ "^/pagespeed_static/" { }
location ~ "^/ngx_pagespeed_beacon$" { }
root /srv/www;
index index.html index.php;
# Make site accessible from http://localhost/
server_name localhost;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
fastcgi_intercept_errors on;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_param HTTPS $proxy_https if_not_empty;
include fastcgi_params;
}
}
# hhvm admin
server {
listen 8080;
location ~ {
fastcgi_pass 127.0.0.1:9001;
include fastcgi_params;
}
}