mySQL
This commit is contained in:
30
public/.htaccess
Normal file
30
public/.htaccess
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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
|
||||
|
||||
<IfModule mod_rewrite.c>
|
||||
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]
|
||||
</IfModule>
|
||||
|
||||
# DO NOT REMOVE OR MODIFY. CLOUDLINUX ENV VARS CONFIGURATION BEGIN
|
||||
|
||||
<IfModule Litespeed>
|
||||
</IfModule>
|
||||
|
||||
# DO NOT REMOVE OR MODIFY. CLOUDLINUX ENV VARS CONFIGURATION END
|
||||
Reference in New Issue
Block a user