# nano /etc/nginx/conf.d/virtualbox.conf
Вставляем:
server {
listen xxx.xxx.xxx.xxx:80; # тут ip вашего сервера
root /var/www/virtualbox/;
index index.php index.html index.htm;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
try_files $uri $uri/ /index.html;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
# pass the PHP scripts to FastCGI server listening on 1$
#
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
После настроек, перезапускаем сервер
#service nginx restart
Скачиваем из репозитория(ветка master) скрипт и распаковываем его
#nano /var/www/virtualbox/config.php
Выставляем параметры
var $username = 'vbox';
var $password = ''; # Тут пароль для пользователя vbox
# Адрес веб-сервиса
var $location = 'http://192.168.0.2:18083/'; # Указываем ip адрес сервера или его доменое имя
# Диапазон rdp портов
var $vrdeports = '9000-9100';
# IP сервера
var $consoleHost = '192.168.0.2'; # Указываем ip адрес сервера
Заходим в Web морду через браузер.
Лоиг и пароль admin