I m creating war file using gulp-war and deploy it into tomcat apache server 8.5.4 on my system
it first runs on localhost:8080/projectName/
but
I found the solution with help of this article
add in /opt/tomcat/conf/context.xml
add rewite.config file in specific project WEB-INF folder with below content such as on /opt/tomcat/webapps/projectName/WEB-INF/rewrite.config
RewriteCond %{REQUEST_URI} !^.*\.(bmp|css|gif|htc|html?|ico|jpe?g|js|pdf|png|swf|txt|xml|svg|eot|woff|woff2|ttf|map)$
RewriteRule ^(.*)$ /index.html [L]
hope it helps someone