From: Joshua Slive Date: Sat, 2 Apr 2005 19:08:04 +0000 (+0000) Subject: Move vhost example to extra/. Also improve the comment X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9f2460c8c6550f2a0474bb06bcb28f86eaaded9;p=thirdparty%2Fapache%2Fhttpd.git Move vhost example to extra/. Also improve the comment and the "default" vhost issue, and add a second section since it doesn't make sense to add just one. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/simple-conf@159794 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/conf/extra/httpd-vhosts.conf b/docs/conf/extra/httpd-vhosts.conf new file mode 100644 index 00000000000..86b63759c93 --- /dev/null +++ b/docs/conf/extra/httpd-vhosts.conf @@ -0,0 +1,44 @@ +# +# Virtual Hosts +# +# If you want to maintain multiple domains/hostnames on your +# machine you can setup VirtualHost containers for them. Most configurations +# use only name-based virtual hosts so the server doesn't need to worry about +# IP addresses. This is indicated by the asterisks in the directives below. +# +# Please see the documentation at +# +# for further details before you try to setup virtual hosts. +# +# You may use the command line option '-S' to verify your virtual host +# configuration. + +# +# Use name-based virtual hosting. +# +NameVirtualHost *:80 + +# +# VirtualHost example: +# Almost any Apache directive may go into a VirtualHost container. +# The first VirtualHost section is used for all requests that do not +# match a ServerName or ServerAlias in any block. +# + + ServerAdmin webmaster@dummy-host.example.com + DocumentRoot /www/docs/dummy-host.example.com + ServerName dummy-host.example.com + ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log + CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common + + + + ServerAdmin webmaster@dummy-host.example.com + DocumentRoot /www/docs/dummy-host2.example.com + ServerName dummy-host2.example.com + ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log + CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common + + + + diff --git a/docs/conf/httpd-std.conf.in b/docs/conf/httpd-std.conf.in index 0064e4963c8..c5e38f1c5f4 100644 --- a/docs/conf/httpd-std.conf.in +++ b/docs/conf/httpd-std.conf.in @@ -617,10 +617,6 @@ ServerSignature On AddType application/x-compress .Z AddType application/x-gzip .gz .tgz - - - - # # AddHandler allows you to map certain file extensions to "handlers": # actions unrelated to filetype. These can be either built into the server @@ -703,41 +699,6 @@ ServerSignature On -### Section 3: Virtual Hosts -# -# VirtualHost: If you want to maintain multiple domains/hostnames on your -# machine you can setup VirtualHost containers for them. Most configurations -# use only name-based virtual hosts so the server doesn't need to worry about -# IP addresses. This is indicated by the asterisks in the directives below. -# -# Please see the documentation at -# -# for further details before you try to setup virtual hosts. -# -# You may use the command line option '-S' to verify your virtual host -# configuration. - -# -# Use name-based virtual hosting. -# -#NameVirtualHost *:80 - -# -# VirtualHost example: -# Almost any Apache directive may go into a VirtualHost container. -# The first VirtualHost section is used for requests without a known -# server name. -# -# -# ServerAdmin webmaster@dummy-host.example.com -# DocumentRoot /www/docs/dummy-host.example.com -# ServerName dummy-host.example.com -# ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log -# CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common -# - - - ##### Supplemental configuration # # The configuration files in the extra/ directory can be included @@ -759,6 +720,9 @@ ServerSignature On # Real-time info on requests and configuration # Include @relsysconfdir@/extra/httpd-info.conf +# Virtual hosts +# Include @relsysconfdir@/extra/httpd-vhosts.conf + # # Secure (SSL/TLS) connections # Include @rel_sysconfdir@/extra/httpd-ssl.conf