minor readme improvements
This commit is contained in:
23
README.md
23
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
|
||||
<VirtualHost *:80>
|
||||
@@ -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
|
||||
</Directory>
|
||||
|
||||
# Proxy API requests (Optional, if not exposing 5001 directly)
|
||||
<Location "/api/">
|
||||
ProxyPreserveHost On
|
||||
ProxyPass "http://127.0.0.1:5001/api/"
|
||||
ProxyPassReverse "http://127.0.0.1:5001/api/"
|
||||
</Location>
|
||||
</VirtualHost>
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user