fractal Posted March 28, 2016 (edited) Перестал работать доступ по web в виртуалбокс всякие VBoxManage setproperty websrvauthlibrary null делал, не помогает /var/www/phpvirtualbox/config.php <?php /** * phpVirtualBox example configuration. * @version $Id: config.php-example 585 2015-04-04 11:39:31Z imoore76 $ * * rename to config.php and edit as needed. * */ class phpVBoxConfig { /* Username / Password for system user that runs VirtualBox */ var $username = 'root'; var $password = 'Tester'; /* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */ var $location = 'http://192.168.1.202:8080/'; /* Default language. See languages folder for more language options. * Can also be changed in File -> Preferences -> Language in * phpVirtualBox. */ var $language = 'ru'; /* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */ var $vrdeports = '9000-9100'; /* * * Not-so-common options / tweaking * */ // Multiple servers example config. Uncomment (remove /* and */) to use. // Add ALL the servers you want to use. Even if you have the server set // above. The default server will be the first one in the list. /* var $servers = array( array( 'name' => 'London', 'username' => 'user', 'password' => 'pass', 'location' => 'http://192.168.1.1:18083/', 'authMaster' => true // Use this server for authentication ), array( 'name' => 'New York', 'username' => 'user2', 'password' => 'pass2', 'location' => 'http://192.168.1.2:18083/' ), ); */ // Disable authentication #var $noAuth = true; // Host / ip to use for console connections var $consoleHost = '192.168.1.202'; // Disable "preview" box #var $noPreview = true; // Default preview box update interval in seconds #var $previewUpdateInterval = 30; /etc/default/virtualbox # Defaults for VirtualBox. # Sourced by vboxweb-service on startup VBOXWEB_USER=root VBOXWEB_HOST=192.168.1.202 VBOXWEB_PORT=8080 /etc/nginx/conf.d/phpvirtualbox.conf server { listen 192.168.1.202:8080; root /var/www/phpvirtualbox/; 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; } } выдает в вебе после ввода логина и пароля: xception Object ( [message:protected] => Not Allowed (http://192.168.1.202:8080/) [string:Exception:private] => [code:protected] => 64 [file:protected] => /var/www/phpvirtualbox/endpoints/lib/vboxconnector.php [line:protected] => 220 [trace:Exception:private] => Array ( [0] => Array ( [file] => /var/www/phpvirtualbox/endpoints/lib/vboxconnector.php [line] => 5527 [function] => connect [class] => vboxconnector [type] => -> [args] => Array ( ) произошло после выключения виртуальной машины Edited March 28, 2016 by fractal Share this post Link to post Share on other sites More sharing options...
fractal Posted March 28, 2016 ставил по данной статье http://anikin.pw/all/ustanovka-virtualbox-s-web-interfeysom-na-server/ Share this post Link to post Share on other sites More sharing options...