Forum Discussion
Bob_10976
Nimbostratus
Jul 12, 2010iRule to use specific server based on URL/URI request
Hello all..
When the request for https://hostdomain.com/project is requested I need to go direct and only one of the nodes in the assoicated pool. I can't have any other request go to this new node being added, at least not yet. The only request this new server is going to serve will be /projects I need all other request to go to the current node that has beeing serving the request previously.
Any suggestions on how to wright this iRule?
Thanks,
Bob
12 Replies
- hoolio
Cirrostratus
Can you try removing /projects/* and use /projects* instead as the filter? Do you have a second HTTP class with no filters defined which uses the non-projects pool? If that still doesn't work, can you use an iRule to log the HTTP class selection and reply with the santized log output from /var/log/ltm?
http://devcentral.f5.com/wiki/default.aspx/iRules/LogHttpClassSelection.html
Aaron - Bob_10976
Nimbostratus
Aaron..I changed it to /projects* however now I can't even manually enter in the default.aspx page. I end up with:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /projects/default.aspx
I do have a the second HTTP class with no filters defined which uses the non-proects pool, and those sites appear to be working with out issue.
I'll look into the link you posted, may not get to it until tomorrow though..
Thanks,
Bob
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
