Skip to content

Commit b9d3998

Browse files
committed
Added documentation for WEB functions.
1 parent 6af483e commit b9d3998

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+279
-42
lines changed

bin/v_add_web_domain

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
2-
# info: adding web domain
2+
# info: add web domain
3+
# options: user domain ip [template]
4+
#
5+
# The function adds virtual host to a server. In cases when a template is
6+
# undefined in the script, the template "default" will be used. The alias of
7+
# www.domain.tld type will be automatically assigned to the domain. If ip have
8+
# assocated dns name, this domain will also get the alias domain-tpl.$ipname.
9+
# An alias with the ip name is useful during the site testing while dns isn't
10+
# moved to a server yet.
11+
312

413
#----------------------------------------------------------#
514
# Variable&Function #

bin/v_add_web_domain_alias

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: adding web domain alias
2+
# info: add web domain alias
3+
# options: user domain alias
4+
#
5+
# The call is intended for adding aliases to a domain (it is also called
6+
# "domain parking"). The function supports wildcards *.domain.tpl.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_add_web_domain_cgi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash
2-
# info: adding cgi support for domain
2+
# info: add cgi support for domain
3+
# options: user domain
4+
#
5+
# The function switches on cgi support by adding +ExecCGI directive into
6+
# webserver configuration file. The use of this function is provided for
7+
# cases, when temporary cgi support is necessary, for other cases use of
8+
# templates is recommended.
9+
310

411
#----------------------------------------------------------#
512
# Variable&Function #

bin/v_add_web_domain_elog

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: adding error log for domain
2+
# info: add error logging for domain
3+
# options: user domain
4+
#
5+
# The function enables a separate ErrorLog file for a domain, accessible for
6+
# reading by users.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_add_web_domain_nginx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: adding nginx support
2+
# info: add webdomain nginx support
3+
# options: user domain
4+
#
5+
# The function enables nginx support for a domain. It can significantly improve
6+
# website speed.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_add_web_domain_ssl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/bash
22
# info: adding ssl for domain
3+
# options: user domain ssl_dir [ssl_home]
4+
#
5+
# The function turns on SSL support for a domain. Parameter ssl_dir is a path
6+
# to directory where 2 or 3 ssl files can be found. Certificate file
7+
# domain.tld.crt and its key domain.tld.key are mandatory. Certificate
8+
# authority domain.tld.ca file is optional. If home directory parameter
9+
# (ssl_home) is not set, https domain uses public_shtml as separate
10+
# documentroot directory.
11+
312

413
#----------------------------------------------------------#
514
# Variable&Function #

bin/v_add_web_domain_stat

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash
2-
# info: adding stats for domain
2+
# info: add log analyzer to generate domain statitics
3+
# options: user domain type
4+
#
5+
# The call is used for enabling log analyzer system to a domain. At this time
6+
# two types of these system is supported - awstats and webalizer. For viewing
7+
# the domain statistics use http://domain.tld/vstats/ link. Access this page
8+
# is not protected by default. If you want to secure it with passwords you
9+
# should use v_add_web_domain_stat_auth script.
10+
311

412
#----------------------------------------------------------#
513
# Variable&Function #

bin/v_add_web_domain_stat_auth

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/bash
2-
# info: adding web domain
2+
# info: add password protection to web domain statistics
3+
# options: user domain auth_user auth_password
4+
#
5+
# The call is used for securing the web statistics page.
6+
37

48
#----------------------------------------------------------#
59
# Variable&Function #

bin/v_change_web_domain_ip

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: changing domain ip
2+
# info: change web domain ip address
3+
# options: user domain ip
4+
#
5+
# The call is used for changing the site ip address. The ip change will be
6+
# performed for a virtual apache host and for a configuration nginx file both.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

bin/v_change_web_domain_sslcert

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/bin/bash
2-
# info: changing domain ssl certificate
2+
# info: change domain ssl certificate
3+
# options: user domain ssl_dir
4+
#
5+
# The function changes SSL domain certificate and the key. If ca file present
6+
# it will be replaced as well.
7+
38

49
#----------------------------------------------------------#
510
# Variable&Function #

0 commit comments

Comments
 (0)