/[apache]/trunk/dist/2.2/conf/vhosts.d/00_default_vhost.conf
Gentoo

Diff of /trunk/dist/2.2/conf/vhosts.d/00_default_vhost.conf

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 67 Revision 69
1### Section 3: Virtual Hosts 1<IfDefine DEFAULT_VHOST>
2# 2#
3# Virtual Hosts
4#
3# VirtualHost: If you want to maintain multiple domains/hostnames on your 5# If you want to maintain multiple domains/hostnames on your
4# machine you can setup VirtualHost containers for them. Most configurations 6# machine you can setup VirtualHost containers for them. Most configurations
5# use only name-based virtual hosts so the server doesn't need to worry about 7# use only name-based virtual hosts so the server doesn't need to worry about
6# IP addresses. This is indicated by the asterisks in the directives below. 8# IP addresses. This is indicated by the asterisks in the directives below.
7# 9#
8# Please see the documentation at 10# Please see the documentation at
9# <URL:http://httpd.apache.org/docs-2.0/vhosts/> 11# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
10# for further details before you try to setup virtual hosts. 12# for further details before you try to setup virtual hosts.
11# 13#
12# You may use the command line option '-S' to verify your virtual host 14# You may use the command line option '-S' to verify your virtual host
13# configuration. 15# configuration.
14 16
15# 17#
16# Use name-based virtual hosting. 18# Use name-based virtual hosting.
17# 19#
18NameVirtualHost *:80 20NameVirtualHost *:80
19 21
22# When virtual hosts are enabled, the main host defined in the default
23# httpd.conf configuration will go away. We redefine it here so that it is
24# still available.
20# 25#
21# VirtualHost example: 26# If you disable this vhost by removing -D DEFAULT_VHOST from
22# Almost any Apache directive may go into a VirtualHost container. 27# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
23# The first VirtualHost section is used for requests without a known 28# the default.
24# server name.
25# 29#
30
26#<VirtualHost *:80> 31<VirtualHost *:80>
27# ServerAdmin webmaster@dummy-host.example.com 32 ServerName localhost
28# DocumentRoot /www/docs/dummy-host.example.com 33 ServerAdmin root@localhost
29# ServerName dummy-host.example.com 34 DocumentRoot "/var/www/localhost/htdocs"
30# ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
31# CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
32#</VirtualHost> 35</VirtualHost>
33 36
34 37
35# 38</IfDefine>
36# The First Virtual Host is also your DEFAULT Virtual Host.
37# This means any requests that do not match any other vhosts will
38# goto this virtual host.
39#
40 39
41<IfDefine DEFAULT_VHOST>
42<VirtualHost *:80>
43 #
44 # DocumentRoot: The directory out of which you will serve your
45 # documents. By default, all requests are taken from this directory, but
46 # symbolic links and aliases may be used to point to other locations.
47 #
48 DocumentRoot "/var/www/localhost/htdocs"
49
50 #
51 # This should be changed to whatever you set DocumentRoot to.
52 #
53 <Directory "/var/www/localhost/htdocs">
54
55 #
56 # Possible values for the Options directive are "None", "All",
57 # or any combination of:
58 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
59 #
60 # Note that "MultiViews" must be named *explicitly* --- "Options All"
61 # doesn't give it to you.
62 #
63 # The Options directive is both complicated and important. Please see
64 # http://httpd.apache.org/docs-2.0/mod/core.html#options
65 # for more information.
66 #
67 Options Indexes FollowSymLinks
68
69 #
70 # AllowOverride controls what directives may be placed in .htaccess files.
71 # It can be "All", "None", or any combination of the keywords:
72 # Options FileInfo AuthConfig Limit
73 #
74 AllowOverride None
75
76 #
77 # Controls who can get stuff from this server.
78 #
79 Order allow,deny
80 Allow from all
81 </Directory>
82
83 <IfModule peruser.c>
84 # this must match a Processor
85 ServerEnvironment apache apache
86
87 # these are optional - defaults to the values specified in httpd.conf
88 MinSpareProcessors 4
89 MaxProcessors 20
90 </IfModule>
91</VirtualHost>
92</IfDefine>

Legend:
Removed from v.67  
changed lines
  Added in v.69

  ViewVC Help
Powered by ViewVC 1.1.20