Apache configuration: automatic renaming of "file:///C:/xampp/htdocs/" to "localhost" in url when opening a local html file -


i'm new web development bear me. might missing despite searches.

when open html file (of course directory served apache), opens in browser url is:

file:///c:/xampp/htdocs/path/to/file.html

this way not served apache, work have rename host-part of path host's name. if host-path is

c:/xampp/htdocs/

then have rename part of url hostname, in case "file:///c:/xampp/htdocs/path/to/file.html" must renamed "localhost/path/to/file.html" if apache serve page.

i've tried adding virtual host includes "file:///" in path crashes apache (and xampp).

question: there way avoid manual renaming of urls when opening local html files served apache?

i know it's been while since thread had activity, i've created chrome extension scenario. :)

the name localhost automate, , redirects developer http://localhost according predefined folder.

i hope find useful. :)

https://chrome.google.com/webstore/detail/localhost-automate/pplnfonehjimoddpmnhldhkgojhkjcfh

and there's github repo; https://github.com/ardethian/localhost_automate

enjoy :)


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -