React.js How to run your React application on a sub-path (e.g. /web) This guide will show you how you can host and run your React application in a sub-path URL, changing it from www.example.com to www.example.com/web for all pages. It would show you the changes you need to make in your code and NGINX config.