I have an ASP.NET web forms application that requires that requires that a user log in.
I have had the application running on a live server with an IP address pointing at it, to allow external customers to test it. e.g. http://1.2.3.4/application
Last week the customers decided that they were happy to switch their users to my application, and asked us to switch the existing URL across to it e.g. http://www.applicationurl.com
これを行うとすぐに、ログインページが機能しなくなりました:
- 間違ったユーザー名またはパスワードでログインすると、間違いがあったことが正しく伝えられます
- 正しいユーザー名とパスワードでログインすると、エラーメッセージは表示されませんが、次のページにリダイレクトする代わりに、ユーザーはログインページにリダイレクトされます
明らかに、アプリケーションに変更は加えられておらず、同じ設定で同じサーバー上で実行されています。内部IPアドレスまたは外部IPアドレスのいずれかを使用してログオンすると、アプリケーションは正常に動作します。一度ログオンすると、デフォルトのページにリダイレクトされます。それは私がログインページに戻ってリダイレクトされ続ける外部URLを使用するときだけです。 .cssと画像はすべてログインページ用に正しく読み込まれます。
これは、Windows Server 2003上のIIS7上で実行されている.NET 3.5です。