va-kivitendo/apache/default_vhost.include

74 lines
2.4 KiB
ApacheConf

# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
ServerAdmin root@localhost
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
# If you change this to something that isn't under /var/www then suexec
# will no longer work.
DocumentRoot "/var/www/localhost/htdocs"
# This should be changed to whatever you set DocumentRoot to.
<Directory "/var/www/localhost/htdocs">
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
Options Indexes FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride All
# Controls who can get stuff from this server.
Require all granted
</Directory>
# Kivitendo CGI
AliasMatch ^/kivitendo-erp/[^/]+\.pl /var/www/localhost/kivitendo-erp/dispatcher.pl
Alias /kivitendo-erp/ /var/www/localhost/kivitendo-erp/
<Directory /var/www/localhost/kivitendo-erp>
AddHandler cgi-script .pl
Options ExecCGI Includes FollowSymlinks
# das folg. war in der Kivitendo-Doku nicht drin
# ohne gibts aber Forbidden...
Require all granted
</Directory>
<Directory /var/www/localhost/kivitendo-erp/users>
Require all granted
</Directory>
### Kivitento FCGI
##AddHandler cgi-script .pl .fpl .fcgi
##AliasMatch ^/[^/]+\.pl /var/www/localhost/kivitendo-erp/dispatcher.fcgi
##Alias / /var/www/localhost/kivitendo-erp/
##
##<Directory /var/www/localhost/kivitendo-erp>
## AllowOverride All
## Options ExecCGI Includes FollowSymlinks
## Require all granted
##</Directory>
##
##<DirectoryMatch /var/www/localhost/kivitendo-erp/users>
## Require all denied
##</DirectoryMatch>
##
##<DirectoryMatch "/(\.git|config)/">
## Require all denied
##</DirectoryMatch>
# vim: ts=4 filetype=apache