# Install Webmin

### <span style="text-decoration: underline;"><span style="color: rgb(45, 194, 107); text-decoration: underline;">Webmin</span></span>

```bash
#!/bin/bash
apt-get update && apt-get upgrade -y
curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sh setup-repos.sh -f
# Update apt list
apt-get update -y && apt-get upgrade -y
#install webmin
apt-get install webmin --install-recommends -y
```

### Apache V-Host Config:

```html
<VirtualHost **HOSTIP**:443>
    ServerName srv-v-**HOST**.jwebbi.de
    SSLEngine on
    SSLCertificateFile /etc/cloudflare/jwebbi.de.pem
    SSLCertificateKeyFile /etc/cloudflare/jwebbi.de.key
    ProxyPreserveHost Off
    ProxyPass / http://127.0.0.1:10000/
	ProxyPassReverse / http://127.0.0.1:10000/
</VirtualHost>
```

### Webmin:

In /etc/webmin/config

```
referers=srv-v-*changeme*.jwebbi.de
referer=1
webprefixnoredir=1
```

In /etc/webmin/miniserv.conf

```
bind=127.0.0.1
ipv6=0
host=srv-v-*changeme*.jwebbi.de
ssl=0
ssl_redirect=0
```