/[adm]/puppet/modules/apache/templates/00_default_vhosts.conf
ViewVC logotype

Annotation of /puppet/modules/apache/templates/00_default_vhosts.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 207 - (hide annotations) (download)
Mon Nov 8 13:13:13 2010 UTC (13 years, 5 months ago) by boklm
File size: 2293 byte(s)
add default vhost with redirection to www.mageia.org
1 boklm 207 # $Id: 00_default_vhosts.conf 250119 2008-07-26 14:51:31Z oden $
2     # $HeadURL: svn+ssh://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOURCES/00_default_vhosts.conf $
3     # This is an example VirtualHosts configuration.
4     #
5     # Since Apache 1.3.19, we modified the setup to include some nice tricks:
6     #
7     # - We added the User and Group directives so VirtualHosts now work with
8     # suexec directive. If set, Apache will run all cgi scripts under that
9     # user and group (provided the uid and gid are > 100 for security). The
10     # directories and cgi files *must* belong to that user/group for the
11     # feature to work
12     #
13     # - We added the Setenv VLOG directive. This works in conjunction with
14     # the CustomLog in common.conf. When Setenv VLOG is set, apache will
15     # create a /var/log/httpd/VLOG-YYYY-MM-<ServerName>.log instead of logging
16     # to access_log. Use this instead of defining a special logfile for
17     # each vhost, otherwise you eat up file descriptors.
18     #
19     # - You can also specify a path for the VLOG for each Vhost, for example,
20     # to place the logs in each user's directory. However, if you want to
21     # use the file for accounting, place it in a directory owned by root,
22     # otherwise the user will be able to erase it.
23     #
24     # - I suggest only including the ErrorLog *only* if the vhost will use
25     # cgi scripts. Again, it saves file descriptors!
26    
27    
28     ################# IP-based Virtual Hosts
29     # <VirtualHost 192.168.2.100>
30     # User jmdault
31     # Group jmdault
32     # DocumentRoot /home/jmdault/public_html
33     # ServerName test2.com
34     # Setenv VLOG /home/jmdault/logs
35     # ErrorLogs /home/jmdault/test2-error_log
36     # </VirtualHost>
37    
38     ################# Named VirtualHosts
39     # NameVirtualHost 111.222.33.44
40     # <VirtualHost 111.222.33.44>
41     # ServerName www.domain.tld
42     # ServerPath /domain
43     # DocumentRoot /web/domain
44     # </VirtualHost>
45    
46     #<VirtualHost alice.com>
47     # ServerName alice.com
48     # # normal vhost configs
49     # <IfModule peruser.c>
50     # # this must match a Processor line
51     # ServerEnvironment alice users /home/alice
52     #
53     # # these are optional - defaults to the values specified above
54     # MinSpareProcessors 4
55     # MaxProcessors 20
56     # </IfModule>
57     #</VirtualHost>
58    
59     <VirtualHost *:80>
60     DocumentRoot /var/www/html
61     <Location />
62     Allow from all
63     </Location>
64     Redirect / http://www.mageia.org/
65     </VirtualHost>

  ViewVC Help
Powered by ViewVC 1.1.30