i am trying to open up a port on my server (i.e. domain.com:9000). I can do that fine, but i want files to show up from a certain directory (e.g. /usr/local/thisdirectory.) and be able to execute files as user root.

I have root access to the server so obviously i would have to start this perl script as "root". However, i just dont know how to assign a document root to it.

Any ideas?