11

2012年4月2日 发表评论 阅读评论

NameVirtualHost *

<VirtualHost *:80>

#主机名
ServerName xg.vtic.cn
#主机别名

#管理员邮件
ServerAdmin root@localhost

#安全重写规则
#RewriteEngine on
# RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
# RewriteRule .* – [F]

#PHP 路径限制
php_admin_value open_basedir D:/WEB/xg.vtic.cn/www

#文档目录
DocumentRoot D:/WEB/xg.vtic.cn/www
    <Directory "D:/WEB/xg.vtic.cn/www">
        Options FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

#CGI 脚本目录
ScriptAlias /cgi-bin "D:/WEB/xg.vtic.cn/cgi-bin"
    <Directory "D:/WEB/xg.vtic.cn/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

#CGI 扩展名
AddHandler cgi-script .cgi .pl

#日志
ErrorLog D:/WEB/logs/error.log
CustomLog D:/WEB/logs/access.log common

</VirtualHost>

<VirtualHost *:80>

#主机名
ServerName game.vtic.cn
#主机别名

#管理员邮件
ServerAdmin root@localhost

#安全重写规则
#RewriteEngine on
# RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
# RewriteRule .* – [F]

#PHP 路径限制
php_admin_value open_basedir D:/WEB/game.vtic.cn/www

#文档目录
DocumentRoot D:/WEB/game.vtic.cn/www
    <Directory "D:/WEB/game.vtic.cn/www">
        Options FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

#CGI 脚本目录
ScriptAlias /cgi-bin "D:/WEB/game.vtic.cn/cgi-bin"
    <Directory "D:/WEB/game.vtic.cn/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

#CGI 扩展名
AddHandler cgi-script .cgi .pl

#日志
ErrorLog D:/WEB/logs/error.log
CustomLog D:/WEB/logs/access.log common

</VirtualHost>

<VirtualHost *:80>

#主机名
ServerName localhost
#主机别名
ServerAlias 127.0.0.1
#管理员邮件
ServerAdmin root@localhost

#安全重写规则
# RewriteEngine on
# RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
# RewriteRule .* – [F]

#PHP 路径限制
php_admin_value open_basedir D:/Program Files/Apache Group/Apache2/htdocs

#文档目录
DocumentRoot D:/Program Files/Apache Group/Apache2/htdocs
    <Directory "D:/Program Files/Apache Group/Apache2/htdocs">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

#CGI 脚本目录
ScriptAlias /cgi-bin "D:/Program Files/Apache Group/Apache2/cgi-bin"
    <Directory "D:/Program Files/Apache Group/Apache2/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

#CGI 扩展名
AddHandler cgi-script .cgi .pl

#日志
ErrorLog D:/WEB/logs/error.log
CustomLog D:/WEB/logs/access.log common

</VirtualHost>


转载请注明来自:[MSN Spaces]http://msn.shandian.biz/416.html

  1. 本文目前尚无任何评论.