Module Extendconfiguration
Extendconfiguration: More configuration options for Ocsigen Server
If you want to use this extension with Ocsigen Server's configuration file, have a look at the manual page. If you are using Ocsigen Server as a library, use the interface described here. Each of these functions behaves exactly as its configuration file counterpart.
This module belongs to ocamlfind package ocsigenserver.ext.extendconfiguration.
Example of use:
let _ =
Ocsigen.Server.start
[ Ocsigen.Server.host ~regexp:".*"
[ Extendconfiguration.forbidfile ~extensions:["php"] ()
; Staticmod.run ~dir:"static" ()
]
]val followsymlinks :
[ `Always | `No | `Owner_match ] ->
Ocsigen.Server.instructionval maxuploadfilesize : int64 option -> Ocsigen.Server.instructionval uploaddir : string option -> Ocsigen.Server.instructionval listdirs : bool -> Ocsigen.Server.instructionval forbidfile :
?files:string list ->
?extensions:string list ->
?regexps:string list ->
unit ->
Ocsigen.Server.instructionval hidefile :
?files:string list ->
?extensions:string list ->
?regexps:string list ->
unit ->
Ocsigen.Server.instructionval defaultindex : string list -> Ocsigen.Server.instructionval contenttype :
?default:string ->
?files:(string * string) list ->
?extensions:(string * string) list ->
?regexps:(string * string) list ->
unit ->
Ocsigen.Server.instructionval charset :
?default:string ->
?files:(string * string) list ->
?extensions:(string * string) list ->
?regexps:(string * string) list ->
unit ->
Ocsigen.Server.instruction