title: How to run custom php script from doc root in magento2
body: <p>I wanted to add custom php script to magento2 root folder and run from the browser.I tried to add it in magento2 root folder but it redirects to 404 page.</p>
  
  <p>I also tried to add it in pub folder but no success.</p>
  
  <p>Also cleared cache and empty generation folder.</p>
  
  <p>I am using nginx server</p>