shibi
                (Shibi Ns)
              
                
              
                  
                  
              1
              
             
            
              Update default  url path prefix for  /t and /c  . The basic idea is I have domain and load balancer
I have a load balancer with two backend sets:
- API Service  localhost:81.
- discourse on localhost:80.
I want to set up a routing policy as follows:
- If the path starts with “/discourse” the request will be directed to discourse.
- Otherwise, the request will be directed to API Service.
 
            
              
              
              
            
            
           
          
            
            
              You are talking about a subfolder install.
However, it is much MUCH less complex to instead switch application based on hostname rather than path.
             
            
              
              
              7 Likes
            
            
           
          
            
            
              
Why not make the API be at /__api or something? Wouldn’t that be easier than moving Discourse?
             
            
              
              
              2 Likes
            
            
           
          
            
              
                shibi
                (Shibi Ns)
              
              
                  
                  
              4
              
             
            
              The service is already running and used by someone else
             
            
              
              
              
            
            
           
          
            
              
                pfaffman
                (Jay Pfaffman)
              
              
                  
                  
              5
              
             
            
              I’m echo they the subdomain is much easier and has no downside. People don’t notice the hostname anyway, and neither does Google.
             
            
              
              
              2 Likes
            
            
           
          
            
              
                system
                (system)
                  Closed 
              
              
                  
                  
              7
              
             
            
              This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.