#
# 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 *:80>
ServerAdmin lcx165@gmail.com
DocumentRoot D:/usr/www/localhost/public_html/bbs
ServerName bbs.nmjld.com
ErrorLog logs/bbs-error_log
CustomLog logs/bbs-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin lcx165@gmail.com
DocumentRoot D:/usr/www/localhost/public_html
ServerName www.nmjld.com
ErrorLog logs/www-error_log
CustomLog logs/www-access_log common
</VirtualHost>
Include D:/usr/local/httpd/conf/vhosts/[^.#]*
# 文档目录 #
DocumentRoot D:/usr/www/localhost/public_html
<Directory "D:/usr/www/localhost/public_html">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# CGI 脚本目录 #
ScriptAlias /cgi-bin "D:/usr/www/localhost/cgi-bin"
<Directory "D:/usr/www/localhost/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
# 允许执行的 CGI 扩展名 #
AddHandler cgi-script .cgi .pl
# 日志 #
CustomLog D:/usr/www/localhost/logs/access.log common
# 文档目录 #
DocumentRoot D:/usr/www/localhost/public_html/bbs
<Directory "D:/usr/www/localhost/public_html/bbs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# CGI 脚本目录 #
ScriptAlias /cgi-bin "D:/usr/www/localhost/cgi-bin"
<Directory "D:/usr/www/localhost/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
# 允许执行的 CGI 扩展名 #
AddHandler cgi-script .cgi .pl
# 日志 #
CustomLog D:/usr/www/localhost/logs/bbs-access.log common