# web-server

<mark style="color:red;">`hostname(config)#`</mark> konfigürasyon prompt bölümündeki kullanılabilir <mark style="color:red;">`web-server`</mark> komutuyla Targitas Web Arayüzüne erişim için kullanılan web sunucu ile ilgili konfigürasyon işlemlerinin gerçekleştirilebileceği <mark style="color:red;">`hostname(config-)#`</mark> bölümüne geçiş yapılır.  Bu bölümde web arayüzde [**Maintenance -> System -> Web Server**](https://docs.targitas.com/maintenance/system/web-server) sekmesinde gerçekleştirilebilen konfigürasyonların karşılığı olan CLI komutları bulunur.

```
targitas(config)# web-server 
targitas(config-web-server)# 
allow-from               Allow IP Address to connect web-server.
certificate-profile      Certificate Profile
enable                   EnableWeb Server
http-port                Web Server Http Port
https-port               Web Server Https Port
listen                   Web Server Listen IP Address
redirect-https           Web Server Redirect Https
server-name              Web Server server-name

```

| <mark style="color:blue;">`allow-from [Interface / Zone]`</mark> | Access Control List sayesinde Web Server'a hangi Interface'in erişim sağlayacağı belirlenebilir.                                    |
| ---------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:blue;">`certificate-profile [Name]`</mark>    | Configuration -> System -> Certificates bölümünde oluşturulan sertifikalar arasından ismi belirtilerek web sertifikası eklenebilir. |
| <mark style="color:blue;">`enable`</mark>                        | Web Sunucusu'nun Hızlı Kurulum tamamlandıktan sonra aktif çalışabilmesi için seçilmesi gereklidir.                                  |
| <mark style="color:blue;">`http-port [Number]`</mark>            | Web HTTP iletişiminin hangi port üzerinden gerçekleştirileceği belirlenebilir. Varsayılan değer 80'dir.                             |
| <mark style="color:blue;">`https-port [Number]`</mark>           | Web HTTPS iletişiminin hangi port üzerinden gerçekleştirileceği belirlenebilir. Varsayılan değer 443'tür.                           |
| <mark style="color:blue;">`listen [IP]`</mark>                   | Web Sunucusu'nun hangi IP adresinde çalışacağını belirtir.                                                                          |
| <mark style="color:blue;">`redirect-https enable`</mark>         | Belirlenen HTTP portuna gelen paketlerin daha güvenli olan HTTPS portuna yönlendirilmesi isteniyorsa etkinleştirilmelidir.          |
| <mark style="color:blue;">`server-name [Name]`</mark>            | Bağlanılan Web Sunucusunun ismi belirlenebilir                                                                                      |


---

# 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.targitas.com/targitas-kullanim-rehberi/targitas-cli-arayuzune-giris/cli-konfigurasyon-komutlari/web-server.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.
