Answer the question
In order to leave comments, you need to log in
How to disable Admin-Mode HHVM?
I installed a docker container on Jelastic with HHVM + pagespeed, everything is fine - the site opens.
But after restarting the container, Admin-Mode is activated for me and information on commands opens.
The question is how to disable the admin panel and why did it appear after the reboot?
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;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question