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/" + ```