Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to work with the localhost from inside the server in order to run things as schedules.

On my workstation with the regular IIS I have 1 webserver with a lot of sites as aliases. In my server I have a website: (example) www.web.com I thought this would work but it didn't: http://localhost/www.web.com

How can I make it work?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Just go to the actual site in the web browser. You don't need to use the HOSTS file or aliases since you're on the actual server.

Seriously though, you should never web browse from a server.

share|improve this answer
    
i'm not... i'm going to have the server use nncron –  Y.G.J May 30 '10 at 14:59
add comment

Check your IIS bindings to make sure the website you want is listening on localhost. To do this, right click on the site, go to Properties. In the first tab is a box that says "IP Address". If this is the only site on this server, select "(All Unassigned)". Click OK. Now open a browser on the server, and go to http://localhost and you should see your site.

share|improve this answer
    
it is not the only website... and they are all have assigned ip (most of them to the same ip) so what can i do? –  Y.G.J May 30 '10 at 14:42
    
In the servers hosts file (c:\windows\system32\drivers\etc\hosts) find the line that says: 127.0.0.1 localhost Change it to: 127.0.0.1 www.web.com localhost Now see if you can access the site from the server. If not, check the bindings again, and add a new binding for the site that has the IP address, and for the host header www.web.com. –  Jon Angliss May 31 '10 at 1:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.