Introduce defaultHost property for virtual server setup.
This commit is contained in:
		
							parent
							
								
									c403423c8a
								
							
						
					
					
						commit
						9371ce4704
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -189,6 +189,6 @@ function processHref(href) {
 | 
				
			||||||
   if (vhost)
 | 
					   if (vhost)
 | 
				
			||||||
      return vhost+href;
 | 
					      return vhost+href;
 | 
				
			||||||
   else
 | 
					   else
 | 
				
			||||||
      return "/"+this.alias+href;
 | 
					      return getProperty("defaulthost")+"/"+this.alias+href;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,8 @@
 | 
				
			||||||
## uncomment to set base for application generated URLs, if necessary.
 | 
					## uncomment to set base for application generated URLs, if necessary.
 | 
				
			||||||
# baseURI = /antville
 | 
					# baseURI = /antville
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_description = An "easy to maintain and use" weblog hosting system.
 | 
					# description of this app
 | 
				
			||||||
 | 
					_description = An easy to maintain and use weblog hosting system
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## path where uploaded images will be stored ..
 | 
					## path where uploaded images will be stored ..
 | 
				
			||||||
## don't forget the trailing slash!
 | 
					## don't forget the trailing slash!
 | 
				
			||||||
| 
						 | 
					@ -21,5 +22,6 @@ xmlrpcHandlerName = blogger
 | 
				
			||||||
## options for per-site virtual hosts
 | 
					## options for per-site virtual hosts
 | 
				
			||||||
# rootPrototype=site
 | 
					# rootPrototype=site
 | 
				
			||||||
# hrefFunction=processHref
 | 
					# hrefFunction=processHref
 | 
				
			||||||
 | 
					# defaultHost=http://www.default.org
 | 
				
			||||||
## list of host.alias -> vhost mappings
 | 
					## list of host.alias -> vhost mappings
 | 
				
			||||||
# vhost.xyz=http://www.xyz.org
 | 
					# vhost.xyz=http://www.xyz.org
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue