apache 注入多站点

APMServ5.2.6\Apache\conf\http.conf

Listen 81
Listen 8080

 

 APMServ5.2.6\Apache\conf\extra\httpd-vhosts.conf

NameVirtualHost *:8080
<VirtualHost *:8080>
    ServerName taizi.com
    DocumentRoot "D:/site123"
    Alias /site123 "D:/site123"
<Directory "D:/site123">
 AllowOverride None
 Order allow,deny
 Allow from all
 Options FollowSymLinks IncludesNOEXEC Indexes
 DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx 
 php_admin_value open_basedir "D:/site123/;D:/APMServ5.2.6/tmp/uploadtemp/;"
 RewriteEngine on
 RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
 RewriteRule .* - [F]
 php_admin_value safe_mode On
</Directory>
</VirtualHost>

posted @ 2012-07-13 18:12  Program Designer  阅读(122)  评论(0)    收藏  举报