Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to view a site in localhost

Tags:

iis

localhost

I am working under localhost.

In IIS Manager 7.5, windows server 2008.

After adding a new application in "Application pools", I added a new asp.net web application site using that application pool.

The problem is how can I run that website on localhost to check whether the site is working correctly or not?

People told me that I have to add bindings "domains" for that site and run the site using those domains. But that is not convenient as every time adding a new site on IIS, I need to have a domain to check the result?

I think it should be possible to run the site under localhost somehow but I dont know.

Any ideas?

Thanks in advance.

like image 836
olidev Avatar asked Nov 23 '11 10:11

olidev


People also ask

What is localhost URL?

LocalHost is the standard host name given to the address of the local computer, and the IP address for your localhost is 127.0. 0.1.

How do I access my xampp site?

Once you have started Apache and MySQL open a web browser and visit http://localhost you should see the XAMPP Splash Screen where you can select a language and the next page is a web based control panel for XAMPP. You now have a web server running on your computer. There are a few things you should do now.

How do I use local host?

Assuming you have a server running on your computer, you can access localhost by going to a web browser and using the URL bar to type http://127.0.0.1. Alternatively, you can also use the text http://localhost/. If you aren't picky about using the 127.0. 0.1 localhost, you can use http:192.168.


2 Answers

The simplest way is to add a virtual directory to your default web site within IIS. Point that virtual directory to the directory to which you installed/copied your website.

The you can either browse from IIS or type the virtual directory name (preceeded by localhost/) into your browser address bar.

like image 136
ChrisBD Avatar answered Oct 21 '22 08:10

ChrisBD


If the problems is with "domains" yo do not have to buy domains. By asigning different port numbers on localhost you can add new bindings.

As I know adding binding is essential for IIS to understand which site should be opened.

For example you can assign port numbers like 80 -default- , 81,82 ... 8090...

like image 30
Yaya Avatar answered Oct 21 '22 07:10

Yaya