From 53a3a99309af5376ad6230adbb32f99b8ff09de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Fri, 9 Jan 2026 11:04:37 +0300 Subject: [PATCH] minor readme improvements --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ce05d12..6f37f80 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,21 @@ server { ``` ### Apache Config -Ensure `mod_rewrite` is enabled. The project includes a `.htaccess` file for routing. + +**Setup (Alpine Linux):** +```bash +apk add apache2 apache2-proxy +rc-service apache2 restart +``` + +**Setup (Debian/Ubuntu):** +```bash +sudo a2enmod rewrite proxy proxy_http +sudo systemctl restart apache2 +``` + +Ensure `mod_rewrite`, `mod_proxy`, and `mod_proxy_http` are enabled. + **VirtualHost Config:** ```apache @@ -136,6 +150,13 @@ Ensure `mod_rewrite` is enabled. The project includes a `.htaccess` file for rou AllowOverride All # CRITICAL for .htaccess Require all granted + + # Proxy API requests (Optional, if not exposing 5001 directly) + + ProxyPreserveHost On + ProxyPass "http://127.0.0.1:5001/api/" + ProxyPassReverse "http://127.0.0.1:5001/api/" + ```