summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2013-11-09 22:24:58 +0100
committerLars Wendler <polynomial-c@gentoo.org>2013-11-09 22:24:58 +0100
commit7a337a2e295cd0daedf297fefa134a7d8a8ee3ea (patch)
tree15518497cd1692258212a5ff7c989e3e7e3426ad /2.4/docs/name-based-vhost.conf.example
parentFix runtimedir as well. (diff)
downloadapache-7a337a2e295cd0daedf297fefa134a7d8a8ee3ea.tar.gz
apache-7a337a2e295cd0daedf297fefa134a7d8a8ee3ea.tar.bz2
apache-7a337a2e295cd0daedf297fefa134a7d8a8ee3ea.zip
Added files for apache-2.4
Diffstat (limited to '2.4/docs/name-based-vhost.conf.example')
-rw-r--r--2.4/docs/name-based-vhost.conf.example117
1 files changed, 117 insertions, 0 deletions
diff --git a/2.4/docs/name-based-vhost.conf.example b/2.4/docs/name-based-vhost.conf.example
new file mode 100644
index 0000000..3e49787
--- /dev/null
+++ b/2.4/docs/name-based-vhost.conf.example
@@ -0,0 +1,117 @@
+# Name-based virtual host
+# http://httpd.apache.org/docs/2.2/vhosts/name-based.html
+#
+# Name-based virtual hosts are the easiest to setup and should be used
+# unless you have to have seperate IP addresses for each website.
+#
+# This file is here to serve as an example. You should copy it and make changes
+# to it before you use it. You can name the file anything you want, as long as
+# it ends in .conf
+#
+# To make management easier, we suggest using a seperate file for every virtual
+# host you have, and naming the files like so: 00_www.example.com.conf
+# This will allow you to easily make changes to certain virtual hosts without
+# having to search through every file to find where it's defined at.
+
+
+# If you are using name-based virtual hosts, you must desginate which
+# which connections (IP address and port of the server) that will be
+# accepting requests for virtual hosts.
+#
+# DO NOT SET THE SAME DEFINITION MORE THEN ONCE, even in different files.
+# These definitions also cannot overlap.
+#
+# If you want to use a defintion other then the default, you should remove
+# -D DEFAULT_VHOST from APACHE2_OPTS in /etc/conf.d/apache2.
+
+# The actual virtual host definition.
+<VirtualHost *:80>
+ # ServerName and ServerAlias are how the server determines which virtual
+ # host should be used.
+ ServerName example.com
+ ServerAlias www.example.com
+
+ # Note the ServerAlias allows a few simple wildcards. If you want to have
+ # every subdomain of example.com point to the same place you can do this:
+ # ServerAlias *.example.com
+
+ # DocumentRoot is the location where your files will be stored
+ #
+ # For gentoo, the suggested structure is:
+ #
+ # /var/www/
+ # domain.com/
+ # htdocs/ Files for the website itself
+ # htdocs-secure/ Files available via HTTPS (requires seperate config)
+ # cgi-bin/ Site-specific executable scripts (optional)
+ # error/ Custom error pages for the website (optional)
+ # icons/ Custom icons for the website (optional)
+ #
+ # You should also set the vhost USE-flag so that you can install webapps
+ # easily to multiple virtual hosts
+ #
+ # Note that if you put the directory anywhere other then under /var/www
+ # you may run into problems with suexec and cgi scripts.
+ #
+ DocumentRoot "/var/www/example.com/htdocs"
+
+ # This should match the DocumentRoot above
+ <Directory "/var/www/example.com/htdocs">
+ # Some sane defaults - see httpd.conf for details
+ Options Indexes FollowSymLinks
+ AllowOverride None
+
+ Require all granted
+ </Directory>
+
+ # By default cgi-bin points to the global cgi-bin in /var/www/localhost
+ # If you want site specific executable scripts, then uncomment this section
+ #
+ # If you have enabled suexec, you will want to make sure that the cgi-bin
+ # directory is owned by the user and group specified with SuexecUserGroup
+
+ #ScriptAlias /cgi-bin/ "/var/www/example.com/cgi-bin/"
+ #<Directory "/var/www/example.com/cgi-bin">
+ # AllowOverride None
+ # Options None
+ # Require all granted
+ #</Directory>
+
+ # If you have multiple users on this system, each with their own vhost,
+ # then it's a good idea to use suexec to seperate them.
+ #
+ # Set the user and group that scripts in this virtual host will run as.
+ <IfDefine SUEXEC>
+ SuexecUserGroup billybob users
+ </IfDefine>
+
+ # If you want custom error documents uncomment this section
+ # See /etc/apache2/modules.d/00_error_documents.conf for the file
+ # name to use for the various error types
+
+ #<IfDefine ERRORDOCS>
+ # Alias /error/ "/var/www/example.com/error/"
+ # <Directory "/var/www/example.com/error/">
+ # AllowOverride None
+ # Options IncludesNoExec
+ # AddOutputFilter Includes html
+ # AddHandler type-map var
+ # Require all granted
+ # </Directory>
+ #</IfDefine ERRORDOCS>
+
+ # If you want to use custom icons for the website autoindexes,
+ # then uncomment this section.
+
+ #Alias /icons/ "/var/www/example.com/icons/"
+ #<Directory "/var/www/example.com/icons/">
+ # Options Indexes MultiViews
+ # AllowOverride None
+ # Require all granted
+ #</Directory>
+
+ # Create a logfile for this vhost
+ CustomLog /var/log/apache2/example.com.log combined
+</VirtualHost>
+
+# vim: ts=4 filetype=apache