Erstellt automatisch Nginx-Konfigurationen und SSL-Zertifikate, sobald ein neuer Ordner in /var/www angelegt wird.
- Ubuntu 20.04+
- Python 3.9+
- Nginx
- Certbot:
apt install certbot python3-certbot-nginx
git clone https://github.com/ShadowDev1002/VhostFactory.git
cd VhostFactory
sudo ./install.shDanach die Konfiguration anpassen:
nano /etc/vhostfactory/config.ymlOrdner erstellen → fertig.
mkdir /var/www/example.comVhostFactory erkennt automatisch den Stack und konfiguriert alles:
| Datei im Ordner | Stack |
|---|---|
index.php |
PHP + FPM |
package.json |
Node.js (Reverse Proxy auf Port 3000) |
| (keine) | Statische Website |
Ordner löschen → Nginx-Config und SSL-Zertifikat werden automatisch entfernt.
systemctl start vhostfactory # starten
systemctl enable vhostfactory # autostart aktivieren
systemctl status vhostfactory # status prüfen
journalctl -u vhostfactory -f # logs liveMIT