Forum Discussion

LeanderV_365921's avatar
Apr 25, 2019

F5 LTM Pathbased routing to Azure Backend

USE Case:

 

Backend Azure containers.

 

F5 routes http traffic based on url-path

 

goes to container 1

 

goes to container 2

 

De site is published in the container in the root directory. We currently get the issue that /example1-2 isn't found on backend container when we try opening the site.

 

What would be the correct solution for this ?

 

I could remove the path from the url when sending to the backendcontainer. But shouldn't i need to add it back in the http-reply ?

 

Greetings

 

1 Reply

  • Hi LeanderV,

    it does really depend on how your application may load additional ressources (e.g. Pictures, CSS, Scripts) and also links to other sub-pages.

    HTML with absolte adressing

    
        
            
            
        
        
            Link To Home Site
            
            Link To Sub Site
            
            
        
    
    

    HTML with addressing relational to the website root

    
        
            
            
        
        
            
            
            
            
            
        
    
    

    HTML with addressing relational to the current folder (lazy way)

    
        
            
            
        
        
            
            
            
            
            
        
    
    

    HTML with addressing relational to the current folder (nice way)

    
        
            
            
        
        
            
            
            
            
            
        
    
    

    If your web application uses an addressing relational to the the current folder, it will work without rewriting the responses. You could basically drop the same web application into a web folder of your choice and it would still work.

    For web application using a relational to your root web or absolute addressing you have to rewrite the responses.

    Cheers, Kai