Skip to content

Instantly share code, notes, and snippets.

@alexandreteles
Created December 29, 2014 02:17
Show Gist options
  • Save alexandreteles/102b307d510573676011 to your computer and use it in GitHub Desktop.
Save alexandreteles/102b307d510573676011 to your computer and use it in GitHub Desktop.
# Default Host - Configuration
# ============================
# Here the variable principals of the program are defined in respect
# to the configuration of the different types of directives.
[HOST]
# ServerName:
# -----------
# Allow you to set a host and domain name (e.g monkey.linuxchile.cl). If
# you are working in a local network just set your IP address or if you
# are working like localhost set your loopback address (127.0.0.1).
ServerName 127.0.0.1
# DocumentRoot:
# -------------
# This variable corresponds to the location of the main server directory
# of the web pages, where the files of your site are located.
#
# Example:
# DocumentRoot /home/krypton/htdocs
DocumentRoot /srv/www
# Redirect:
# ---------
# Under specific conditions, you may want the server performs a HTTP
# redirect when this Virtual Host is reach. If that is the case, append
# to the Redirect key the value of the address where to redirect the
# HTTP client.
#
# Redirect http://monkey-project.com
[LOGGER]
# AccessLog:
# ----------
# Registration file of correct request.
AccessLog /var/log/monkey/access.log
# ErrorLog:
# ---------
# Registration file of incorrect request.
ErrorLog /var/log/monkey/error.log
[ERROR_PAGES]
404 404.html
#[CGI]
# Per-vhost CGI matching, same rules as with the global match
# Match /cgi-bin/.*\.cgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment