How do you make localhost use any file path?

Localhost menes by run custom html or css file use webviewer.
Like : sdcard/folder/index.html