# NGINX reverse proxy on Ubuntu

To avoid exposing an additional port, AppServer port 2880, you can configure [NGINX reverse proxy](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/).

1\. Open default site configuration file.

2\. Inside **server {}** block and add the next rule:

```javascript
location /wscservice/api {
	proxy_pass http://your_host:2880;
}
```

3\. Save file and restart NGINX.

```javascript
systemctl restart nginx
```

Check the **status**: [https://localhost/wscservice/api?cmd=status](https://your_host/wscservice/api/?cmd=ver)


---

# 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.wproofreader.com/v6.12.0/deployment/configuration/web-server/reverse-proxy-setup-to-avoid-exposing-2880-port/nginx-reverse-proxy-on-ubuntu.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.
