/[apache]/trunk/dist/2.2/conf/vhosts.d/name-based-vhost.conf.example
Gentoo

Contents of /trunk/dist/2.2/conf/vhosts.d/name-based-vhost.conf.example

Parent Directory Parent Directory | Revision Log Revision Log


Revision 159 - (show annotations) (download)
Tue Jun 5 13:10:52 2007 UTC (7 years, 6 months ago) by phreak
File size: 4668 byte(s)
Adding vim filetype=apache and some minor empty lines cleaning.
1 # Name-based virtual host
2 # http://httpd.apache.org/docs/2.2/vhosts/name-based.html
3 #
4 # Name-based virtual hosts are the easiest to setup and should be used
5 # unless you have to have seperate IP addresses for each website.
6 #
7 # This file is here to serve as an example. You should copy it and make changes
8 # to it before you use it. You can name the file anything you want, as long as
9 # it ends in .conf
10 #
11 # To make management easier, we suggest using a seperate file for every virtual
12 # host you have, and naming the files like so: 00_www.example.com.conf
13 # This will allow you to easily make changes to certain virtual hosts without
14 # having to search through every file to find where it's defined at.
15
16
17 # If you are using name-based virtual hosts, you must desginate which
18 # which connections (IP address and port of the server) that will be
19 # accepting requests for virtual hosts.
20 #
21 # DO NOT SET THE SAME DEFINITION MORE THEN ONCE, even in different files.
22 # These definitions also cannot overlap.
23 #
24 # If you want to use a defintion other then the default, you should remove
25 # -D DEFAULT_VHOST from APACHE2_OPTS in /etc/conf.d/apache2.
26 #
27 # All requests (on any IP address) to port 80 will be handled by Virtual Hosts
28 # This is the default setting in Gentoo:
29 #NameVirtualHost *:80
30 #
31 # Only requests on this IP address on port 80 will be handled by Virtual Hosts
32 # (note: you may need to modify/add a Listen directive in httpd.conf)
33 #NameVirtualHost 1.2.3.4:80
34
35 # The actual virtual host definition. Note that the *:80 MUST match whatever
36 # is set for NameVirtualHost
37 <VirtualHost *:80>
38 # ServerName and ServerAlias are how the server determines which virtual
39 # host should be used.
40 ServerName example.com
41 ServerAlias www.example.com
42
43 # Note the ServerAlias allows a few simple wildcards. If you want to have
44 # every subdomain of example.com point to the same place you can do this:
45 # ServerAlias *.example.com
46
47 # DocumentRoot is the location where your files will be stored
48 #
49 # For gentoo, the suggested structure is:
50 #
51 # /var/www/
52 # domain.com/
53 # htdocs/ Files for the website itself
54 # htdocs-secure/ Files available via HTTPS (requires seperate config)
55 # cgi-bin/ Site-specific executable scripts (optional)
56 # error/ Custom error pages for the website (optional)
57 # icons/ Custom icons for the website (optional)
58 #
59 # You should also set the vhost USE-flag so that you can install webapps
60 # easily to multiple virtual hosts
61 #
62 # Note that if you put the directory anywhere other then under /var/www
63 # you may run into problems with suexec and cgi scripts.
64 # You can reconfigure this path by running suexec2-config
65 #
66 DocumentRoot "/var/www/example.com/htdocs"
67
68 # This should match the DocumentRoot above
69 <Directory "/var/www/example.com/htdocs">
70 # Some sane defaults - see httpd.conf for details
71 Options Indexes FollowSymLinks
72 AllowOverride None
73
74 Order allow,deny
75 Allow from all
76 </Directory>
77
78 # By default cgi-bin points to the global cgi-bin in /var/www/localhost
79 # If you want site specific executable scripts, then uncomment this section
80 #
81 # If you have enabled suexec, you will want to make sure that the cgi-bin
82 # directory is owned by the user and group specified with SuexecUserGroup
83
84 #ScriptAlias /cgi-bin/ "/var/www/example.com/cgi-bin/"
85 #<Directory "/var/www/example.com/cgi-bin">
86 # AllowOverride None
87 # Options None
88 # Order allow,deny
89 # Allow from all
90 #</Directory>
91
92 # If you have multiple users on this system, each with their own vhost,
93 # then it's a good idea to use suexec to seperate them.
94 #
95 # Set the user and group that scripts in this virtual host will run as.
96 <IfDefine SUEXEC>
97 SuexecUserGroup billybob users
98 </IfDefine>
99
100 # If you want custom error documents uncomment this section
101 # See /etc/apache2/modules.d/00_error_documents.conf for the file
102 # name to use for the various error types
103
104 #<IfDefine ERRORDOCS>
105 # Alias /error/ "/var/www/example.com/error/"
106 # <Directory "/var/www/example.com/error/">
107 # AllowOverride None
108 # Options IncludesNoExec
109 # AddOutputFilter Includes html
110 # AddHandler type-map var
111 # Order allow,deny
112 # Allow from all
113 # </Directory>
114 #</IfDefine ERRORDOCS>
115
116 # If you want to use custom icons for the website autoindexes,
117 # then uncomment this section.
118
119 #Alias /icons/ "/var/www/example.com/icons/"
120 #<Directory "/var/www/example.com/icons/">
121 # Options Indexes MultiViews
122 # AllowOverride None
123 # Order allow,deny
124 # Allow from all
125 #</Directory>
126
127 # Create a logfile for this vhost
128 CustomLog /var/log/apache2/example.com.log combined
129 </VirtualHost>
130
131 # vim: ts=4 filetype=apache

  ViewVC Help
Powered by ViewVC 1.1.20