joecool2005 Posted October 26, 2007 Report Share Posted October 26, 2007 Hi,I know by using this Request.ServerVariables("SERVER_NAME")I will get the server name.Is it possible to get the IIS domain name?Thx Link to comment Share on other sites More sharing options...
Reg Edit Posted October 26, 2007 Report Share Posted October 26, 2007 Hi,I know by using this Request.ServerVariables("SERVER_NAME")I will get the server name.Is it possible to get the IIS domain name?ThxAre you authenticating your users and logging them onto a domain? If not, and you're using anonymous access, then I think by default the IIS anonymous user is a user on the local box (not a domain user). What domain do you have in mind? Link to comment Share on other sites More sharing options...
joecool2005 Posted October 26, 2007 Author Report Share Posted October 26, 2007 Hi,Thanks for your answer.I have a IIS domain name my.domain.com and a server name myServerName.When I do thishttp://my.domain.com/default.asphttp://myServerName/default.aspthey both open the same page. So it means one point to the other.Is it possible on default.asp, to detect the server name and the IIS server name?Thx Link to comment Share on other sites More sharing options...
Reg Edit Posted October 26, 2007 Report Share Posted October 26, 2007 Hi,Thanks for your answer.I have a IIS domain name my.domain.com and a server name myServerName.When I do thishttp://my.domain.com/default.asphttp://myServerName/default.aspthey both open the same page. So it means one point to the other.Is it possible on default.asp, to detect the server name and the IIS server name?ThxOh, sorry, you mean the DNS domain, not the Windows domain.The code you're using (Request.ServerVariables("SERVER_NAME")) will display my.domain.com when the webserver is a remote server. I think you're just seeing the machine name if you use a browser on the local box where the webserver's running. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now