# Disabling the Web Server of a Virtual Appliance

ThousandEyes’ Virtual Appliance is normally managed remotely via a web-based administration tool served from the Virtual Appliance, and accessed with a URL of **http\://\<IP\_address\_of\_the\_appliance>**. If an organization’s security policy or other factors require that the Virtual Appliance not run its web server, then the web server can be disabled, and the Virtual Appliance managed remotely via SSH using the VA’s command line interface (CLI).

## Prerequisites

SSH access to the Virtual Appliance is required both to disable the web server and to manage the Virtual Appliance after the web server is disabled. To configure SSH access to the Virtual Appliance, consult the following articles:

* [Connecting to the ThousandEyes Virtual Appliance using SSH (Windows)](https://docs.thousandeyes.com/product-documentation/enterprise-agents/connecting-to-the-thousandeyes-virtual-appliance-using-ssh-windows)
* [Connecting to the ThousandEyes Virtual Appliance using SSH (Mac/Linux)](https://docs.thousandeyes.com/product-documentation/enterprise-agents/connecting-to-the-thousandeyes-virtual-appliance-using-ssh-mac-linux)

**NOTE:** After disabling the web server, the only method for management of most settings on the Virtual Appliance is through SSH access, which requires that at least one public key be uploaded to the Virtual Appliance. If the private key corresponding to the SSH public key on the Virtual Appliance is lost, access (and the ability to configure the Virtual Appliance) is lost. ThousandEyes recommends the following, prior to disabling the web server:

1. Multiple SSH public keys be loaded on the Virtual Appliance
2. Access is verified using each of the private-public key pairs
3. The private keys are stored in a secure location which will not be forgotten or lost

## Disabling the web server

To disable the web interface in the Virtual Appliance:

1. Access the Virtual Appliance CLI through SSH
2. Execute the command sudo te-va-disable-webserver

## Enabling the web server

To enable the web interface in the Virtual Appliance:

1. Access the Virtual Appliance CLI through SSH
2. Execute the command sudo te-va-enable-webserver


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.thousandeyes.com/product-documentation/global-vantage-points/enterprise-agents/configuring/disabling-the-web-server-of-a-virtual-appliance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
