Since Apache2 is not fully installed, use the Python proxy:
# Start the application
./start.shThis will:
- Start Flask app on port 5000
- Start proxy server on port 8080
- Handle requests for syntexa.app
- Local: http://localhost:8080
- Domain: http://syntexa.app:8080 (if DNS is configured)
- IP: http://YOUR_SERVER_IP:8080
proxy.py- Reverse proxy serverstart.sh- Startup scriptapache_config.conf- Apache2 config (for future use)
- Install Apache2:
sudo apt update
sudo apt install apache2- Enable required modules:
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod headers- Copy the config:
sudo cp apache_config.conf /etc/apache2/sites-available/syntexa.app.conf
sudo a2ensite syntexa.app.conf
sudo systemctl reload apache2- Port 8080 in use: Change
PROXY_PORTinproxy.py - Flask not starting: Check if all dependencies are installed
- Permission denied: Make sure
start.shis executable
- ✅ Flask app on port 5000
- ✅ Proxy server on port 8080
- ✅ Domain routing for syntexa.app
- ✅ CORS headers
- ✅ Error handling