Lines 23-39
Link Here
|
23 |
# |
23 |
# |
24 |
# If you want to use a defintion other then the default, you should remove |
24 |
# If you want to use a defintion other then the default, you should remove |
25 |
# -D DEFAULT_VHOST from APACHE2_OPTS in /etc/conf.d/apache2. |
25 |
# -D DEFAULT_VHOST from APACHE2_OPTS in /etc/conf.d/apache2. |
26 |
# |
|
|
27 |
# All requests (on any IP address) to port 80 will be handled by Virtual Hosts |
28 |
# This is the default setting in Gentoo: |
29 |
#NameVirtualHost *:80 |
30 |
# |
31 |
# Only requests on this IP address on port 80 will be handled by Virtual Hosts |
32 |
# (note: you may need to modify/add a Listen directive in httpd.conf) |
33 |
#NameVirtualHost 1.2.3.4:80 |
34 |
|
26 |
|
35 |
# The actual virtual host definition. Note that the *:80 MUST match whatever |
27 |
# The actual virtual host definition. |
36 |
# is set for NameVirtualHost |
|
|
37 |
<VirtualHost *:80> |
28 |
<VirtualHost *:80> |
38 |
# ServerName and ServerAlias are how the server determines which virtual |
29 |
# ServerName and ServerAlias are how the server determines which virtual |
39 |
# host should be used. |
30 |
# host should be used. |
Lines 70-77
Link Here
|
70 |
Options Indexes FollowSymLinks |
61 |
Options Indexes FollowSymLinks |
71 |
AllowOverride None |
62 |
AllowOverride None |
72 |
|
63 |
|
73 |
Order allow,deny |
64 |
Require all granted |
74 |
Allow from all |
|
|
75 |
</Directory> |
65 |
</Directory> |
76 |
|
66 |
|
77 |
# By default cgi-bin points to the global cgi-bin in /var/www/localhost |
67 |
# By default cgi-bin points to the global cgi-bin in /var/www/localhost |
Lines 84-91
Link Here
|
84 |
#<Directory "/var/www/example.com/cgi-bin"> |
74 |
#<Directory "/var/www/example.com/cgi-bin"> |
85 |
# AllowOverride None |
75 |
# AllowOverride None |
86 |
# Options None |
76 |
# Options None |
87 |
# Order allow,deny |
77 |
# Require all granted |
88 |
# Allow from all |
|
|
89 |
#</Directory> |
78 |
#</Directory> |
90 |
|
79 |
|
91 |
# If you have multiple users on this system, each with their own vhost, |
80 |
# If you have multiple users on this system, each with their own vhost, |
Lines 107-114
Link Here
|
107 |
# Options IncludesNoExec |
96 |
# Options IncludesNoExec |
108 |
# AddOutputFilter Includes html |
97 |
# AddOutputFilter Includes html |
109 |
# AddHandler type-map var |
98 |
# AddHandler type-map var |
110 |
# Order allow,deny |
99 |
# Require all granted |
111 |
# Allow from all |
|
|
112 |
# </Directory> |
100 |
# </Directory> |
113 |
#</IfDefine ERRORDOCS> |
101 |
#</IfDefine ERRORDOCS> |
114 |
|
102 |
|
Lines 119-126
Link Here
|
119 |
#<Directory "/var/www/example.com/icons/"> |
107 |
#<Directory "/var/www/example.com/icons/"> |
120 |
# Options Indexes MultiViews |
108 |
# Options Indexes MultiViews |
121 |
# AllowOverride None |
109 |
# AllowOverride None |
122 |
# Order allow,deny |
110 |
# Require all granted |
123 |
# Allow from all |
|
|
124 |
#</Directory> |
111 |
#</Directory> |
125 |
|
112 |
|
126 |
# Create a logfile for this vhost |
113 |
# Create a logfile for this vhost |