RabbieBurns Posted October 6, 2008 Posted October 6, 2008 Not quite sure the best way to do go about this. Im running IIS on a server here, and its opened up for access from Internet. Its SSL only, and for staff to access it they need to log on to https://blah.our-domain.com. We dont host our-domain.com, Ive just set a forwarder with the provider to forward blah.our-domain.com to the schools static IP, and then on to the IIS server. The problem is, because the SSL Cert is signed to the blah.our-domain.com URL, we have to access the server through that URL even when on the Local Network. So all the server logs show connectios from our Static Wan IP address, rather than the local machine IPs. I added a line in the hosts on a workstation to list the local IP of the server to correspond to blah.our-domain.com, and now server logs show local IP properly. My question is: Is there an easier way other than modyfiying all the HOSTS files to force workstations to use the localIP rather than the wanIP for accessing the server?
powdarrmonkey Posted October 6, 2008 Posted October 6, 2008 The easiest thing to do is create two sites in IIS, and add host headers so that they can tell your internal and external domains apart. Set their document roots (or whatever IIS calls it) to the same location, so they appear to be the same. Then you can just configure https on one site.
localzuk Posted October 6, 2008 Posted October 6, 2008 I'd create a DNS entry for your domain (ie. spoof the domain) on your DNS servers, pointing it at the local ip instead of the external ip. 1
RabbieBurns Posted October 6, 2008 Author Posted October 6, 2008 I'd create a DNS entry for your domain (ie. spoof the domain) on your DNS servers, pointing it at the local ip instead of the external ip. Thats the lines I was thinking along. Not quite sure how to go about it though. would I need to create a new Forward Lookup Zone called our-domain.com and add a record in that ?
localzuk Posted October 6, 2008 Posted October 6, 2008 Thats the lines I was thinking along. Not quite sure how to go about it though. would I need to create a new Forward Lookup Zone called our-domain.com and add a record in that ? Yep. That's how I do it with our school site. 1
RabbieBurns Posted October 6, 2008 Author Posted October 6, 2008 oops. Forgot to add a record for the www and mail subdomains which are hosted externally and have stopped working.
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