# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION BEGIN
PassengerAppRoot "/home/cyarsflu/nodejs_app"
PassengerBaseURI "/"
PassengerNodejs "/home/cyarsflu/nodevenv/nodejs_app/20/bin/node"
PassengerAppType node
PassengerStartupFile server.js
# DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION END
RewriteEngine On
RewriteBase /
# Allow API requests to be handled by the Node.js app directly
RewriteCond %{REQUEST_URI} ^/api/ [NC]
RewriteRule ^ - [L]
# Redirect all other routes to index.html for React frontend routing
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ /index.html [L]
# DO NOT REMOVE OR MODIFY. CLOUDLINUX ENV VARS CONFIGURATION BEGIN
# DO NOT REMOVE OR MODIFY. CLOUDLINUX ENV VARS CONFIGURATION END