bjoern@1: # bjoern@1: # VirtualHost template bjoern@1: # Note: to use the template, rename it to /etc/apache2/vhost.d/yourvhost.conf. bjoern@1: # Files must have the .conf suffix to be loaded. bjoern@1: # bjoern@1: # See /usr/share/doc/packages/apache2/README.QUICKSTART for further hints bjoern@1: # about virtual hosts. bjoern@1: # bjoern@1: # NameVirtualHost statements can be added to /etc/apache2/listen.conf. bjoern@1: # bjoern@1: # Almost any Apache directive may go into a VirtualHost container. bjoern@1: # The first VirtualHost section is used for requests without a known bjoern@1: # server name. bjoern@1: # bjoern@1: bjoern@1: ServerAdmin webmaster@dummy-host.example.com bjoern@1: ServerName dummy-host.example.com bjoern@1: bjoern@1: # DocumentRoot: The directory out of which you will serve your bjoern@1: # documents. By default, all requests are taken from this directory, but bjoern@1: # symbolic links and aliases may be used to point to other locations. bjoern@1: DocumentRoot /srv/www/vhosts/dummy-host.example.com bjoern@1: bjoern@1: # if not specified, the global error log is used bjoern@1: ErrorLog /var/log/apache2/dummy-host.example.com-error_log bjoern@1: CustomLog /var/log/apache2/dummy-host.example.com-access_log combined bjoern@1: bjoern@1: # don't loose time with IP address lookups bjoern@1: HostnameLookups Off bjoern@1: bjoern@1: # needed for named virtual hosts bjoern@1: UseCanonicalName Off bjoern@1: bjoern@1: # configures the footer on server-generated documents bjoern@1: ServerSignature On bjoern@1: bjoern@1: bjoern@1: # Optionally, include *.conf files from /etc/apache2/conf.d/ bjoern@1: # bjoern@1: # For example, to allow execution of PHP scripts: bjoern@1: # bjoern@1: # Include /etc/apache2/conf.d/mod_php4.conf bjoern@1: # bjoern@1: # or, to include all configuration snippets added by packages: bjoern@1: # Include /etc/apache2/conf.d/*.conf bjoern@1: bjoern@1: bjoern@1: # ScriptAlias: This controls which directories contain server scripts. bjoern@1: # ScriptAliases are essentially the same as Aliases, except that bjoern@1: # documents in the realname directory are treated as applications and bjoern@1: # run by the server when requested rather than as documents sent to the client. bjoern@1: # The same rules about trailing "/" apply to ScriptAlias directives as to bjoern@1: # Alias. bjoern@1: # bjoern@1: ScriptAlias /cgi-bin/ "/srv/www/vhosts/dummy-host.example.com/cgi-bin/" bjoern@1: bjoern@1: # "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased bjoern@1: # CGI directory exists, if you have one, and where ScriptAlias points to. bjoern@1: # bjoern@1: bjoern@1: AllowOverride None bjoern@1: Options +ExecCGI -Includes bjoern@1: Order allow,deny bjoern@1: Allow from all bjoern@1: bjoern@1: bjoern@1: bjoern@1: # UserDir: The name of the directory that is appended onto a user's home bjoern@1: # directory if a ~user request is received. bjoern@1: # bjoern@1: # To disable it, simply remove userdir from the list of modules in APACHE_MODULES bjoern@1: # in /etc/sysconfig/apache2. bjoern@1: # bjoern@1: bjoern@1: # Note that the name of the user directory ("public_html") cannot simply be bjoern@1: # changed here, since it is a compile time setting. The apache package bjoern@1: # would have to be rebuilt. You could work around by deleting bjoern@1: # /usr/sbin/suexec, but then all scripts from the directories would be bjoern@1: # executed with the UID of the webserver. bjoern@1: UserDir public_html bjoern@1: # The actual configuration of the directory is in bjoern@1: # /etc/apache2/mod_userdir.conf. bjoern@1: Include /etc/apache2/mod_userdir.conf bjoern@1: # You can, however, change the ~ if you find it awkward, by mapping e.g. bjoern@1: # http://www.example.com/users/karl-heinz/ --> /home/karl-heinz/public_html/ bjoern@1: #AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2 bjoern@1: bjoern@1: bjoern@1: bjoern@1: # bjoern@1: # This should be changed to whatever you set DocumentRoot to. bjoern@1: # bjoern@1: bjoern@1: bjoern@1: # bjoern@1: # Possible values for the Options directive are "None", "All", bjoern@1: # or any combination of: bjoern@1: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews bjoern@1: # bjoern@1: # Note that "MultiViews" must be named *explicitly* --- "Options All" bjoern@1: # doesn't give it to you. bjoern@1: # bjoern@1: # The Options directive is both complicated and important. Please see bjoern@1: # http://httpd.apache.org/docs-2.2/mod/core.html#options bjoern@1: # for more information. bjoern@1: # bjoern@1: Options Indexes FollowSymLinks bjoern@1: bjoern@1: # bjoern@1: # AllowOverride controls what directives may be placed in .htaccess files. bjoern@1: # It can be "All", "None", or any combination of the keywords: bjoern@1: # Options FileInfo AuthConfig Limit bjoern@1: # bjoern@1: AllowOverride None bjoern@1: bjoern@1: # bjoern@1: # Controls who can get stuff from this server. bjoern@1: # bjoern@1: Order allow,deny bjoern@1: Allow from all bjoern@1: bjoern@1: bjoern@1: bjoern@1: bjoern@1: