# Apache/IBM\_IHS

* [httpd.conf](#httpdconf)
* [VirtualHost](#virtualhost)
* [a2enmod](#a2enmod)
* [mod\_ssl](#mod_ssl)
* [mod\_proxy](#mod_proxy)
  * [ProxyPass](#proxypass)
* [IBM IHS](#ibm-ihs)
  * [Docker](#docker)
  * [Windows](#windows)

## httpd.conf

```
Options +Indexes
AddDefaultCharset utf-8
```

## VirtualHost

IndexOptions FancyIndexing VersionSort NameWidth=\*

## a2enmod

```
a2enmod ssl
```

## mod\_ssl

SSLProxyEngine: <https://httpd.apache.org/docs/2.4/mod/mod\\_ssl.html#sslproxyengine>

## mod\_proxy

ProxyPreserveHost: <https://httpd.apache.org/docs/2.4/mod/mod\\_proxy.html#proxypreservehost>

### ProxyPass

<https://httpd.apache.org/docs/2.4/mod/mod\\_proxy.html#proxypass\\>
<https://httpd.apache.org/docs/2.4/howto/reverse\\_proxy.html>

```
for m in proxy proxy_http proxy_balancer lbmethod_byrequests; do a2enmod $m; echo ----; done
systemctl restart apache2; systemctl status apache2

ProxyPass /tsadmin http://localhost:8000/
ProxyPassReverse /tsadmin  http://localhost:8000/
```

## IBM IHS

### Docker

<https://hub.docker.com/r/ibmcom/ibm-http-server>

```
docker run --name ibm-http-server -h IHS \
-d --restart unless-stopped \
--net host -v /:/host \
ibmcom/ibm-http-server  
```

### Windows

```
httpd.exe -k install -n "IBM HTTP Server V9.0"
# Fixed name to address error:
# The system cannot find the file specified.  : AH00436: No installed service named "IBM HTTP Server V9.0".
apache.exe -k start
```


---

# 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://book.ferro.pro/web/apache.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.
