Liking cljdoc? Tell your friends :D

dda.pallet.dda-httpd-crate.infra.vhost.vhost


vhost-confclj

(vhost-conf
  domain-name
  &
  [{:keys [server-admin-email document-root-path vhost-xml aliases port]
    :as opts
    :or {server-admin-email "your-name@your-domain.com" port "3000"}}])

Generate a vhost config. domain-name will be used to name the vhost conf file as well as log files. If you need to set up complicated vhost, pass a string of xml to :vhost-xml and you will have full control over what the vhost file looks like

Generate a vhost config. domain-name will be used to name the vhost
conf file as well as log files. If you need to set up complicated
vhost, pass a string of xml to :vhost-xml and you will have full
control over what the vhost file looks like
sourceraw docstring

vhost-conf-defaultclj

(vhost-conf-default domain-name
                    server-admin-email
                    document-root-path
                    aliases
                    port)

Most of my apache vhosts are for java apps. Here's what I usually use.

Most of my apache vhosts are for java apps. Here's what I usually use.
sourceraw docstring

vhost-conf-default-redirect-to-https-onlyclj

(vhost-conf-default-redirect-to-https-only
  &
  {:keys [domain-name aliases server-admin-email document-root-path port]
   :or {server-admin-email "your-name@your-domain.com" port "80"}})

Just redirect http request permanently to https

Just redirect http request permanently to https
sourceraw docstring

vhost-conf-ssl-defaultclj

(vhost-conf-ssl-default &
                        {:keys [domain-name aliases server-admin-email
                                document-root-path port ssl-module]
                         :or {server-admin-email "your-name@your-domain.com"
                              port "443"
                              ssl-module :gnutls}})

a https default configuration

a https default configuration
sourceraw docstring

vhost-directoryclj

(vhost-directory file-path
                 &
                 {:keys [directory-options]
                  :or {directory-options ["Order allow,deny"
                                          "Allow from all"]}})
source

vhost-document-rootclj

(vhost-document-root & [document-root-path])
source

vhost-headclj

(vhost-head &
            {:keys [listening-spec listening-interface listening-port
                    domain-name server-admin-email aliases]
             :or {listening-interface "*" listening-port "80"}})

listening spec may be: x.x.x.x:443 [x6:x6:x6:x6:x6:x6:x6:x6]:443

listening spec may be: x.x.x.x:443 [x6:x6:x6:x6:x6:x6:x6:x6]:443
sourceraw docstring

vhost-locationclj

(vhost-location &
                {:keys [path location-options]
                 :or {path "/"
                      location-options ["Order allow,deny" "Allow from all"]}})

If path is nil, defaults to "/"

If path is nil, defaults to "/" 
sourceraw docstring

vhost-logclj

(vhost-log &
           {:keys [domain-name error-name log-name log-format]
            :or {error-name "error" log-name "access_log" log-format "common"}})
source

vhost-server-aliasclj

(vhost-server-alias & [domain-names])

Define aliases. For example if your domain-name is example.com, you might want to pass ["www.example.com" "ftp.example.com"]

Define aliases. For example if your domain-name is example.com, you
might want to pass ["www.example.com" "ftp.example.com"]
sourceraw docstring

vhost-tailclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close