================================================================================ ISSUE DIAGNOSIS & SOLUTION SUMMARY ================================================================================ PROBLEM: -------- When accessing https://server.mylikita.com/v1, the browser shows a directory listing of files and folders instead of running the Node.js application. ROOT CAUSE: ----------- The Apache SSL VirtualHost configuration is missing the proxy configuration for the /v1 path. While there is a .htaccess file in /var/www/html/v1 with proxy rules, Apache's VirtualHost configuration takes precedence, and without a VirtualHost-level proxy setup, Apache treats /v1 as a regular directory. CURRENT STATUS: --------------- ✓ Node.js application is running correctly on port 46476 ✓ Apache proxy modules (proxy_module, proxy_http_module) are enabled ✓ Other paths (/prime, /cliniqor) are properly configured and working ✗ /v1 path is missing from Apache VirtualHost configuration SOLUTION: --------- Add proxy configuration for /v1 to the Apache SSL VirtualHost configuration. QUICK FIX: ---------- Run this command with sudo privileges: sudo /var/www/html/v1/fix-apache-config.sh This will automatically: 1. Backup your current Apache configuration 2. Add the necessary proxy configuration for /v1 3. Test the configuration 4. Reload Apache MANUAL FIX: ----------- If you prefer to edit manually: 1. Edit the Apache SSL configuration: sudo nano /etc/apache2/sites-available/server.mylikita.com-ssl.conf 2. Add this block after the /cliniqor configuration: # Proxy /v1 to Node.js application running on port 46476 ProxyPass /v1/ http://localhost:46476/ ProxyPassReverse /v1/ http://localhost:46476/ ProxyPass /v1 http://localhost:46476/ ProxyPassReverse /v1 http://localhost:46476/ # Disable directory listing for /var/www/html/v1 Options -Indexes AllowOverride All Require all granted 3. Test and reload: sudo apache2ctl configtest sudo systemctl reload apache2 VERIFICATION: ------------- After applying the fix, test with: curl -k https://server.mylikita.com/v1 Expected response: { "app_name": "MyLikita", "app_version": "0.1", "message": "Welcome!", "resource": "https://pscprime.com/server" } FILES CREATED: -------------- 1. fix-apache-config.sh - Automated fix script 2. APACHE_CONFIG_FIX.md - Detailed documentation 3. SOLUTION_SUMMARY.txt - This file For more details, see APACHE_CONFIG_FIX.md ================================================================================