I want to set name to my localhost.for example I want mysite.com instead of localhost/mysite how to do that?
I have searched but couldn't get a solution for Linux.
Find and change the following line in /etc/hosts:
Change it to
This is client side. Your webserver may need be configured for name based vhosts.