CODER

RECORDING, ENJOY LIFE

apache 配置虚拟目录的步骤
2012年7月17日 10:19
1、打开httpd.conf,将#Include conf/extra/httpd-vhosts.conf 打开

2、配置httpd-vhosts.conf
<VirtualHost *:80>
    #站点目录,单斜杠或双反斜杠
    DocumentRoot "d:/myweb"
    ServerName myweb
    DirectoryIndex index.php index.php3 index.html index.htm
    <Directory />
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

3、配置hosts文件
文件路径是 C:\WINDOWS\system32\drivers\etc
如:127.0.0.1     myweb
LinuxNginxApachePHPMysqlThinkPHPCSS3JQueryVB其他