(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
(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.
(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
(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
(vhost-directory file-path
&
{:keys [directory-options]
:or {directory-options ["Order allow,deny"
"Allow from all"]}})
(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
(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 "/"
(vhost-log &
{:keys [domain-name error-name log-name log-format]
:or {error-name "error" log-name "access_log" log-format "common"}})
(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"]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close