please confirm which nodejd/public folder do i have to create htaccess file and which one is correct from following
mynode js app
-- [http://domain.com/trip = trip is my node js app
-- where to create htaccess file
https://](http://domain.com/trip)[ht...om/trip/public/<.htaccess>?
+++++++++++++
RewriteEngine On
RewriteRule ^$ http://127.0.0.1:3000/ [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:3000/$1 [P,L]
++++++++++++++++++
RewriteEngine On
RewriteRule ^$ http://myprofile.work:30000 [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://myprofile.work:30000$1 [P,L]
++++++++++++++++++
PassengerBaseURI /trip
PassengerAppRoot /home/profile/passenger_node_trip
PassengerAppType node
PassengerStartupFile server.js](http://domain.com/trip/public)
mynode js app
-- [http://domain.com/trip = trip is my node js app
-- where to create htaccess file
https://](http://domain.com/trip)[ht...om/trip/public/<.htaccess>?
+++++++++++++
RewriteEngine On
RewriteRule ^$ http://127.0.0.1:3000/ [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:3000/$1 [P,L]
++++++++++++++++++
RewriteEngine On
RewriteRule ^$ http://myprofile.work:30000 [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://myprofile.work:30000$1 [P,L]
++++++++++++++++++
PassengerBaseURI /trip
PassengerAppRoot /home/profile/passenger_node_trip
PassengerAppType node
PassengerStartupFile server.js](http://domain.com/trip/public)
Comment