Forum Discussion
Sep 29, 2009
12031 error
Hello all,
I am getting a 12031 error on accessing static files on a proxy server that needs credentials. It's suppose to prompt the user for credentials, but it doesn't.
...
Sep 29, 2009
Hello,
So after doing some testings, I found that security on the IIS level is causing the issue of the
URL breaking. Without the IRule enabled, you're supposed to get a prompt for credentials, but with
it enabled, you get an error page (Connection was reset) returned.
IRule URL: http://www11.qad.com/Employee/Presentations/Sales%20Training%20Presentations/QAD2008_CoreEnhancemnts_internal.ppt
Direct Proxy URL: http://exnt23.qad.com/Employee/Presentations/Sales%20Training%20Presentations/QAD2008_CoreEnhancemnts_internal.ppt
Here is the IRule that is enabled. Is there something wrong with it or it a setting on the F5 or Proxy that needs to be changed?
Request Method
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/employee*" -
"/solutions guide*" -
"/static files*" -
"/vgn-ext-templating*" -
"/public*" -
"/erp/aboutQAD/careers " -
"/erp/aboutQAD/company " -
"/erp/aboutQAD/newsroom " -
"/erp/aboutQAD/newsroom/2004 " -
"/erp/aboutQAD/newsroom/2005 " -
"/erp/aboutQAD/newsroom/2006 " -
"/erp/aboutQAD/newsroom/2007 " -
"/erp/aboutQAD/newsroom/2008 " -
"/erp/aboutQAD/newsroom/2009 " -
"/erp/aboutQAD/partners " -
"/erp/customers/events" -
"/erp/industries/automotive" -
"/erp/industries/automotive/mmog-le" -
"/erp/resources/events" -
"/erp/resources/glossary" -
"/erp/resources/newsroom" -
"/erp/resources/newsroom/2004 " -
"/erp/resources/newsroom/2005 " -
"/erp/resources/newsroom/2006 " -
"/erp/resources/newsroom/2007 " -
"/erp/resources/newsroom/2008 " -
"/erp/resources/newsroom/2009 " -
"/erp/resources/partners" -
"/erp/resources/technology" -
"/erp/resources/technology/garbage" -
"/erp/resources/webinars" -
"/erp/services/education" -
"/erp/services/consulting" -
"/qadadvantage/qadadv-center" -
"/qadadvantage/qadadv-left" -
"/qadadvantage/qadadv-right" -
"/partnercenter/accreditation" -
"/partnercenter/certification" -
"/qad-explore/agenda*" -
"/qad-excellence/agenda*" -
"/documentlibrary/interoperability" -
"/documentlibrary/interoperability/qxtend" -
"/documentlibrary/manufacturing" -
"/documentlibrary/manufacturing/planner" {
return
}
}
if { ([HTTP::uri] contains "/solutioncenter") } {
set global variable flag for any old solutioncenter URL
set global_URL 1
HTTP::respond 301 Location [string map {"/solutioncenter" "/erp"} "[HTTP::uri]"]
return
} elseif { ([HTTP::uri] contains "+") or ([HTTP::uri] contains "action.process") or ([HTTP::host] equals "outside.qad.com") } {
return
} elseif { ([HTTP::uri] starts_with "/portal/site") } {
if { ([HTTP::uri] ends_with "/") or ([HTTP::uri] contains "menuitem.")} {
HTTP::respond 301 Location [string map {"/portal/site" "" } "[HTTP::uri]"]
}
else {
HTTP::respond 301 Location [string map {"/portal/site" "" } "[HTTP::uri]/"]
}
return
} elseif { ([HTTP::uri] equals "/") } {
HTTP::respond 301 Location "http://[HTTP::host]/erp/"
return
} elseif { ([HTTP::uri] starts_with "/qad-explore") or ([HTTP::uri] starts_with "/qad-excellence") or
([HTTP::uri] starts_with "/erp") or ([HTTP::uri] starts_with "/qadadvantage") or
([HTTP::uri] starts_with "/partnercenter") or ([HTTP::uri] starts_with "/documentlibrary") } {
HTTP::uri "/portal/site[HTTP::uri]"
return
}
}
when HTTP_RESPONSE {
if { ([HTTP::status] starts_with "3") } {
set newRedir [string map {"/portal/site" "" } [HTTP::header Location]]
HTTP::header replace Location $newRedir
return
} elseif { ([HTTP::status] starts_with "4") and ($global_URL == 1) } {
HTTP::respond 301 Location "http:[HTTP::host]/erp/"
return
}
}
Any help would appreciated.
Thank you.
Regards,
TRX
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
