# Apache VirtualHost Configuration for CMMS Vermicelli API # Add these lines to your existing VirtualHost configuration in Apache ServerName evantage.ddns.net DocumentRoot "C:/wamp64/www" # Existing Evantage API proxy (keep as is) ProxyPreserveHost On ProxyPass /Evantage_node_satya/ http://127.0.0.1:4000/Evantage_node_satya/ ProxyPassReverse /Evantage_node_satya/ http://127.0.0.1:4000/Evantage_node_satya/ # NEW: CMMS Vermicelli API proxy ProxyPass /CMMS_Vermicelli_api/ http://127.0.0.1:3005/CMMS_Vermicelli_api/ ProxyPassReverse /CMMS_Vermicelli_api/ http://127.0.0.1:3005/CMMS_Vermicelli_api/ # Enable CORS headers for API Header always set Access-Control-Allow-Origin "*" Header always set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" Header always set Access-Control-Allow-Headers "Content-Type, Authorization" # Handle preflight OPTIONS requests RewriteEngine On RewriteCond %{REQUEST_METHOD} OPTIONS RewriteRule ^(.*)$ $1 [R=200,L] # Directory permissions Options Indexes FollowSymLinks AllowOverride All Require all granted # ================================ # INSTALLATION STEPS: # ================================ # 1. Open Apache configuration file (usually httpd.conf or sites-available/000-default.conf) # 2. Add the ProxyPass lines for CMMS_Vermicelli_api to your existing VirtualHost # 3. Ensure these Apache modules are enabled: # - mod_proxy # - mod_proxy_http # - mod_headers # - mod_rewrite # 4. Restart Apache service # 5. Test the proxy: http://evantage.ddns.net:8080/CMMS_Vermicelli_api/health # ================================ # TESTING URLS: # ================================ # Health Check: http://evantage.ddns.net:8080/CMMS_Vermicelli_api/health # API Root: http://evantage.ddns.net:8080/CMMS_Vermicelli_api/api # Auth: http://evantage.ddns.net:8080/CMMS_Vermicelli_api/api/auth # Production: http://evantage.ddns.net:8080/CMMS_Vermicelli_api/api/productionLineMixAndDeh