as you know we have a default web site for iis (windows server 2008 - r2) like below :
when you stop a web site that default web site loads in client's browser instead.
now i want to change that default web site for the purpose below :
please open the site below in all of your browsers(firefox - internet explorer - chrome - etc) :
undefined domain(web site)
for examle in firefox we have server not found
page like below :
for IE we have this :
and etc...
i have a web site in my vps(my site.com) that i stopped it in iis.
when a user opens it i want to show him/her server not page(ff) for example instead of that default iis web site.
i want to create a conditional single web page for that default iis web site that shows server not found
page for firefox or Internet Explorer cannot display the webpage
page for IE or etc...
as you see i added asp.net with c#
and php
languages into my tags.
so what is the best way for creating that specific conditional web site and how can i create it?
can i create that web site with html language only(using with jquery or javascript or not)(this is better) or should i use a server-side language like asp.net with c#
or php
?
i installed php in my own vps (windows server 2008-r2) and there is no problem about that language.
EDIT
my problem is how can i have a conditional single web page?
when a user opens my stopped web site in FF i want to show him/her server not found
page for FF, also when a user opens my stopped web site in IE i want to show him/her Internet Explorer cannot display that webpage
for IE and etc...
thanks in advance
If you want to display a specific page when you have taken down your web site then just create another web site (on the same port, i.e. 80) that you start when the first is is stopped. In the second website you have a single page (i.e. Default.html, index.html, etc) which displays the information you want.
Main Site (Stopped)
Temporary Site (Started)
When you then start your main site again you just stop the temporary site.
Edit
If you stop ALL websites then the browser will not find anything and will display the server not found
message specific to the browser. All you need to do is make sure all websites are stopped.