Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localhost on Windows 7

Tags:

I want to enable a localhost on Windows 7 to be able to build websites with Chrome without a distant server. I would like to not install anything, and be able to, for example, navigate to http://localhost/something/somethingElse/index.html.

Anyone knows how?

like image 435
Jo Colina Avatar asked Jun 21 '14 09:06

Jo Colina


People also ask

Where is the localhost folder in Windows 7?

Worth noting: by default, Internet Information Services uses the contents of C:/inetpub/wwwroot for http://localhost/ , so if you don't want to mess with settings, just throw stuff in that folder.

How do I find my localhost on my computer?

Usually, you can access the localhost of any computer through the loopback address 127.0. 0.1. By default, this IP address references a server running on the current device. In other words, when your computer requests the IP address 127.0.


2 Answers

In order to activate localhost server on Windows 7 navigate to:

-> Control Panel -> Programs and Features -> Turn Windows features on or off 

Then search for Internet Information Services and check its checkbox.

Wait for Windows to make the changes, no need for immediate restart, the server will be enabled.

You can now navigate to

127.0.0.1  

or

http://localhost 
like image 184
Jo Colina Avatar answered Oct 04 '22 03:10

Jo Colina


There is a simple chrome extension "200 OK". Which runs a web server on localhost.

  • Custom port settings
  • Choose your project folder and start the server

enter image description here

like image 25
Sasi Varunan Avatar answered Oct 04 '22 02:10

Sasi Varunan