Last post Aug 30, 2013 07:48 AM by AidyF
Aug 30, 2013 04:28 AM|the boy holty|LINK
I've created a website for managing a data warehouse - data updates and such-like, its all working and looking good in Visual Studio 2012 Express so I'm trying to deploy it.
I've actually not done at all badly, considering its my first time deploying a website. Here's where I'm up to.
When I log on to the target server and go into IIS manager, I can navigate to my site and click on the Browse Web Site link and it works (apart from images, the folder for which doesn't seem to have deployed - but I'm not fussed about that right now) and
I can view all the pages and it all works fine. The web address has the server IP address (plus an additional number after the colon ":88") instead of the servername - looks a bit like
http://184.108.40.206:88/. Doesn't include the sitename though.
But when I try to view the site from my PC I use the url
http://servername/sitename - which is where the site should be. but I get a 404 file not found error page. However if I use the IP address version plus the ":88", it works.
I guess what I'm trying to do is to tie together the IP address to the server name, but perhaps I've missed out a step.
I'd appreciate your advice, as I feel like i'm close to getting it working.
I've been having a root around and I reckon its something to do with Binding. In the Bindings section I've gone to Edit but I'm not sure what to put in the Host name field. I've tried entering the servername, but that doesn't work. I've tried using the servername
/ sitename but that doesn't work either. I'm closer now . . .
Also, I've now managed to deploy the Images folder - didn't realise I'd have to do it separately,
Aug 30, 2013 07:48 AM|AidyF|LINK
For http://servername/sitename it is actually
http://servername:80/sitename If you are using port 88 then
http://servername:88/sitename will work but if you don't specify the port the it falls but to 80 so won't work.
If you want your site accessed without having to specify a port then you have to run it off port 80. Create a binding (or amend the existing one) to port 80 with "servername" as the Host name.