{"id":231,"title":"apache\u865a\u62df\u76ee\u5f55\u914d\u7f6e","good":0,"bad":0,"hit":2435,"created_at":"2016-05-18 23:07:39","content":"
httpd.conf
\u53bb\u6389\u4e0b\u9762\u8fd9\u884c\u7684#\u53f7
# Include conf\/extra\/httpd-vhosts.conf
\u627e\u5230apache\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684\uff1a
conf\/extra\/httpd-vhosts.conf
\u914d\u7f6e\u865a\u62df\u76ee\u5f55\uff1a
<VirtualHost *:80>
DocumentRoot "D:\/AppServ83\/www\/huodong\/activity\/public"
ServerName www.test.com
<Directory \/>
Options Indexes FollowSymLinks
AllowOverride All
Allow from All
<\/Directory>
<Directory "D:\/AppServ83\/www\/huodong\/activity\/public">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from All
<\/Directory>
<\/VirtualHost>
\u627e\u5230\uff1a
C:\\Windows\\System32\\drivers\\etc
\u5728\u6700\u540e\u9762\u52a0\u4e0a127.0.0.1 www.test.com
\u91cd\u542fapache\uff0c\u8fd9\u6837\u5728\u672c\u673a\u6d4f\u89c8\u5668\u4e0a\u8f93\u5165\u7f51\u5740www.test.com<\/a> \u9996\u9875\u5373\u6279\u5411D:\/AppServ83\/www\/huodong\/activity\/public<\/p>"}