roger v
asked on
Coldfusion9 with IIS 6 - redirection not working
I tried asking this but got no replies. Maybe someone has had this issue and can help me out. I've installed CF9 with IIS6 on a windows server 2003. Everything works fine in that I can type in the url of the website in my intranet and access it. The problem arises when I'm dealing with redirects. Here is the process:
1. I have a page(mypage.cfm) that checks to see if there is a security cookie set. If it is not, then it redirects to a company server(checksecurity.cfm) that authenticates the user, sets the cookie and then redirects back to my page with the encrypted cookie.
2. The first part works fine - the redirection to the checksecurity.cfm page happens, the authentication and creating of the cookie happens fine. But then when that page tries to redirect back to mypage.cfm, I get a message that it was unable to access mypage.cfm.
Now I have no control over checksecurity.cfm - it is handled by a completely different team and I have no access to them. All I'm told is that their end is working fine - the problem is with mypage.cfm. I checked to make sure that on IIS, I have all the default pages set up (index.cfm, mypage.cfm, etc). but the problem still persists.
Anybody had a similar issue and resolved successfully? TIA
1. I have a page(mypage.cfm) that checks to see if there is a security cookie set. If it is not, then it redirects to a company server(checksecurity.cfm) that authenticates the user, sets the cookie and then redirects back to my page with the encrypted cookie.
2. The first part works fine - the redirection to the checksecurity.cfm page happens, the authentication and creating of the cookie happens fine. But then when that page tries to redirect back to mypage.cfm, I get a message that it was unable to access mypage.cfm.
Now I have no control over checksecurity.cfm - it is handled by a completely different team and I have no access to them. All I'm told is that their end is working fine - the problem is with mypage.cfm. I checked to make sure that on IIS, I have all the default pages set up (index.cfm, mypage.cfm, etc). but the problem still persists.
Anybody had a similar issue and resolved successfully? TIA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@OP Zaharin:
Here's what I did:
I put a cflocation on mypage.cfm to redirect.cfm. And on redirect.cfm I put another cflocation to another page on the same website in same folder called second_redirect.cfm. When I open up mypage.cfm, it redirects to redirect.cfm and then eventually to second_redirect.cfm. So I've established that redirects are working especially if they are happening from within the same site. But my problem is that checksecurity.cfm (actually it's not even a cfm page, I don't know what the other side is using for this, it could be a java program for all i know), which creates an encrypted cookie and sends back to mypage.cfm is crapping out.
Is there any way that I can go through a checklist of all the iis6 settings to make sure that my coldfusion site is set up exactly the way it is supposed to be set up?
-roger
Here's what I did:
I put a cflocation on mypage.cfm to redirect.cfm. And on redirect.cfm I put another cflocation to another page on the same website in same folder called second_redirect.cfm. When I open up mypage.cfm, it redirects to redirect.cfm and then eventually to second_redirect.cfm. So I've established that redirects are working especially if they are happening from within the same site. But my problem is that checksecurity.cfm (actually it's not even a cfm page, I don't know what the other side is using for this, it could be a java program for all i know), which creates an encrypted cookie and sends back to mypage.cfm is crapping out.
Is there any way that I can go through a checklist of all the iis6 settings to make sure that my coldfusion site is set up exactly the way it is supposed to be set up?
-roger
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@OP:
- do your test within your network only?
Yes because this is an intranet application. Not accessible to anything external network. Within the network, the issue is between 2 separate/different servers. Redirects work just fine when I'm doing them on the same website.
-roger
- do your test within your network only?
Yes because this is an intranet application. Not accessible to anything external network. Within the network, the issue is between 2 separate/different servers. Redirects work just fine when I'm doing them on the same website.
-roger
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
- so the fault is on their side eh? great that it finally work for you :)
all the best with your project!
OP
all the best with your project!
OP
ASKER
OP Zaharin contributed as well, so I'm splitting points.
ASKER
- whats the exact error message?
'Unable to Access Application' (this is the message I get after authenticating to checksecurity.cfm and that is trying to redirect back to mypage.cfm)
Also, there is a link to mypage.cfm on there and when I click on that I get a message 'Directory Listing Denied, This Virtual Directory does not allow contents to be listed.' which makes me think that maybe the issue is with my iis configuration
- - if the distance is a barrier, send them your mypage.cfm for them to check - if they are willing to assist.
I've tried all that without success. They come up with the standard answer and end of story. And I've got a deadline that is really pressing. I'll try out the last suggestion you made and report back. thanks
-roger