/[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 159 Revision 160
1<IfDefine DEFAULT_VHOST>
2# Virtual Hosts 1# Virtual Hosts
3# 2#
4# If you want to maintain multiple domains/hostnames on your 3# If you want to maintain multiple domains/hostnames on your
5# machine you can setup VirtualHost containers for them. Most configurations 4# machine you can setup VirtualHost containers for them. Most configurations
6# use only name-based virtual hosts so the server doesn't need to worry about 5# use only name-based virtual hosts so the server doesn't need to worry about
7# IP addresses. This is indicated by the asterisks in the directives below. 6# IP addresses. This is indicated by the asterisks in the directives below.
8# 7#
9# Please see the documentation at 8# Please see the documentation at
10# <URL:http://httpd.apache.org/docs/2.2/vhosts/> 9# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
11# for further details before you try to setup virtual hosts. 10# for further details before you try to setup virtual hosts.
12# 11#
13# You may use the command line option '-S' to verify your virtual host 12# You may use the command line option '-S' to verify your virtual host
14# configuration. 13# configuration.
15 14
15<IfDefine DEFAULT_VHOST>
16# Use name-based virtual hosting. 16# Use name-based virtual hosting.
17#
18NameVirtualHost *:80 17NameVirtualHost *:80
19 18
20# When virtual hosts are enabled, the main host defined in the default 19# When virtual hosts are enabled, the main host defined in the default
21# httpd.conf configuration will go away. We redefine it here so that it is 20# httpd.conf configuration will go away. We redefine it here so that it is
22# still available. 21# still available.
23# 22#
24# If you disable this vhost by removing -D DEFAULT_VHOST from 23# If you disable this vhost by removing -D DEFAULT_VHOST from
25# /etc/conf.d/apache2, the first defined virtual host elsewhere will be 24# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
26# the default. 25# the default.
27# 26<VirtualHost *:80>
27 Include /etc/apache2/vhosts.d/default_vhost.include
28 28
29<VirtualHost *:80>
30 ServerName localhost
31 ServerAdmin root@localhost
32 DocumentRoot "/var/www/localhost/htdocs"
33
34 <IfModule mpm_peruser_module> 29 <IfModule mpm_peruser_module>
35 ServerEnvironment apache apache 30 ServerEnvironment apache apache
36 </IfModule> 31 </IfModule>
37</VirtualHost> 32</VirtualHost>
38
39
40</IfDefine> 33</IfDefine>
41 34
42# vim: ts=4 filetype=apache 35# vim: ts=4 filetype=apache

Legend:
Removed from v.159  
changed lines
  Added in v.160

  ViewVC Help
Powered by ViewVC 1.1.20