I want to create virtual host and sub-domains for that host on local machine such that my localhost serve as a website like I do not need to write localhost in url bar:
localhost ---> mysite.com
---> sd1.mysite.com
---> sd2.mysite.com
actually I am using wordpress plugin WP Subdomains which makes sub-domain for main categories like.
cat1.localhost
cat2.localhost
but if we try to access cat1.localhost browser error Server not found which is definitely because we did not create sub-domain named cat1 for localhost.
I google but no solution found which exactly solve my problem.
I also followed http://www.talkphp.com/general/2170-setup-sub-domain-wamp.html
but following error appear:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.