Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 100833 Details for
Bug 153486
net-www/apache - dynamic virtual host configuration
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
10_dynamic_vhosts.conf
10_dynamic_vhosts.conf (text/plain), 3.22 KB, created by
Travis Wyatt
on 2006-10-30 15:39:36 UTC
(
hide
)
Description:
10_dynamic_vhosts.conf
Filename:
MIME Type:
Creator:
Travis Wyatt
Created:
2006-10-30 15:39:36 UTC
Size:
3.22 KB
patch
obsolete
>### Dynamic Virtual Hosts ># ># Dynamic VirtualHost: If you want to maintain multiple domains/hostnames on ># your machine and have the process be semi-automatted, you can enable dynamic ># virtual hosts. Apache will automatically host any folder under ># /var/www/vhosts/ as a corresponding domain name. An example of this is: ># If you create the folder example.com under /var/www/vhosts/, now Apache will ># serve pages for example.com using the /var/www/vhosts/example.com/ folder. ># ># Hint: Aliasing the sub-domain www.[example.com] can be easily accomplished ># by simply simlinking www.[example.com] to [example.com]. ># ># Please see the documentation at ># <URL:http://httpd.apache.org/docs-2.0/vhosts/> ># and ># <URL:http://www.apache.org/docs/vhosts/mass.html> ># for further details before you try to setup virtual hosts. ># ># Note: Dynamic Virtual Hosts uses the mod_vhost_alias apache module. > ># ># Use name-based virtual hosting. ># >NameVirtualHost *:80 > ><IfDefine DYNAMIC_VHOSTS> > UseCanonicalName Off > LogFormat "%V %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" dynamic_vhosts > CustomLog logs/access_log dynamic_vhosts > > <VirtualHost *:80> > # Security Directive > # > <Directory "/var/www/vhosts"> > # > # 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.0/mod/core.html#options > # for more information. > # > Options -Indexes FollowSymLinks MultiViews > > # > # 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 the dynamic virtual hosts. > # > Order allow,deny > Allow from all > </Directory> > > # Dynamic Virtual Host Definitions > # > <IfModule mod_vhost_alias.c> > # www.example.com --> /web/www.example.com > # a.www.example.com --> /web/a.www.example.com > # example.com --> /web/example.com > VirtualDocumentRoot /var/www/vhosts/%0.0 > VirtualScriptAlias /var/www/vhosts/%0.0/cgi > > # www.example.com --> /web/example.com > # a.www.example.com --> /web/example.com > # example.com --> /web/example.com > #VirtualDocumentRoot /var/www/vhosts/%-2.0.%-1.0 > #VirtualScriptAlias /var/www/vhosts/%-2.0.%-1.0/cgi > > # www.example.com --> /web/example.com/www > # a.www.example.com --> /web/example.com/a.www > # example.com --> /web/example.com/_ > #VirtualDocumentRoot /var/www/vhosts/%-2.0.%-1.0/%-3+/ > #VirtualScriptAlias /var/www/vhosts/%-2.0.%-1.0/%-3+/cgi > > > > # CGI Directives > # > <DirectoryMatch "^/var/www/vhosts/[^/]+/cgi"> > AllowOverride None > Options ExecCGI > <IfModule mod_access.c> > Order allow,deny > Allow from all > </IfModule> > </DirectoryMatch> > </IfModule> > > </VirtualHost> > ></IfDefine>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 153486
: 100833