|
|
#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
# Order deny,allow
# Deny from all
# Allow from .example.com
#</Proxy>
#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via: headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On
#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
# CacheEnable disk /
# CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#
#</IfModule>
# End of proxy directives.
### 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
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# 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
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#
#
# 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.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost 222.222.222.222:80>
ServerName domain.com
ServerAlias www.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /home/aaaaaa/public_html
ScriptAlias /cgi-bin/ /home/aaaaaa/public_html/cgi-bin/
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled aaaaaa
</IfModule>
SuExecUserGroup aaaaaa aaaaaa
CustomLog /opt/hosting/logs/domlogs/domain.com combined
</VirtualHost>
<VirtualHost 222.222.222.222:80>
ServerName bbbbbb.com
ServerAlias www.bbbbbb.com
ServerAdmin webmaster@bbbbbb.com
DocumentRoot /home/aaaaaa/public_html/necklace
ScriptAlias /cgi-bin/ /home/aaaaaa/public_html/bbbbbb/cgi-bin/
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled aaaaaa
</IfModule>
SuExecUserGroup aaaaaa aaaaaa
CustomLog /opt/hosting/logs/domlogs/domain.combbbbbb.com co mbined
</VirtualHost>
请问这句
DirectoryIndex index.htm index.html index.php index.html.var
添加到哪里? |
|