Shiny server gives "Page not found" selectively to a specific parent directory

Have you set proper permissions for shiny user? if so you have to assign ownership of the folder to shiny-apps group

sudo chown -R root:shiny-apps /srv/shiny-server/customdir/shiny