Apache Server build + 404 redirection isuue fix
Tue Aug 22 2023 14:34:30 GMT+0000 (Coordinated Universal Time)
Saved by
@pradhyumnsoni
#react.js
#javascript
#ubuntu
#apache
#linux
#var/www/htm
For react build deployment - put buli in (/var/www/html) folder
PORT 80 - is for http ip access link (comment it out in httpd.conf file)
PORT 443 is for HTTPS ip access link
For redirection reload "404 error" issues-
1) Change httpd.conf file in (/etc/httpd/conf)and in .htaccess build folder (/var/www/html).
2) Note: This two files should contain the same below code i.e.->
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
3) Note: in document root "/var/www/html" change AllowOverride to All.
After this re-run the Apache server command - apachectl restart
content_copyCOPY
Comments