We have three web servers that host our application. We synchronized these servers every night.
In the morning, we update a lot files in Server1 and can not afford to sync the other two servers with these updated files.
What I want to do is, regardless of what web server our user is connected to, I would want them to access the file in Server1.
I have this code that does not seem to work.
Any help will be greatly appreciated.
<%@ Language=VBScript %>
<% Response.Expires = -5000 %>
<%
'file = Request.querystring("file")
file = "somefile.htm"
filePath = "//Server1/some directory/"
filedir = filePath & file
%>
<HTML>
<body OnLoad="showfile()">
<SCRIPT LANGUAGE=javascript>
//<!--
function showfile()
{
var filedir = '<%=filedir%>'
//alert(filedir)
url=filedir;
location.href=url
}
//-->
</SCRIPT>
</body>
</html>
In the morning, we update a lot files in Server1 and can not afford to sync the other two servers with these updated files.
What I want to do is, regardless of what web server our user is connected to, I would want them to access the file in Server1.
I have this code that does not seem to work.
Any help will be greatly appreciated.
<%@ Language=VBScript %>
<% Response.Expires = -5000 %>
<%
'file = Request.querystring("file")
file = "somefile.htm"
filePath = "//Server1/some directory/"
filedir = filePath & file
%>
<HTML>
<body OnLoad="showfile()">
<SCRIPT LANGUAGE=javascript>
//<!--
function showfile()
{
var filedir = '<%=filedir%>'
//alert(filedir)
url=filedir;
location.href=url
}
//-->
</SCRIPT>
</body>
</html>