apache2.4.6的httpd.conf设置问题
最近,在学着用apache2.4.6,但是,苦恼的是,不知道怎么设置自己的虚拟目录。在apache2.2中设置的方法,到了2.4.6中不管用,求大家指导啊!!!!!
[解决办法]
htto.conf 里面写上这一句
Include conf/local-vhosts.conf
<VirtualHost 127.0.0.1:12700> #端口自定
ServerAdmin xxx@mail.com
DocumentRoot "绝对路径"
ServerName localadm
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
<VirtualHost 127.0.0.1:12701>
ServerAdmin 邮箱
DocumentRoot "绝对路径"
ServerName localadm
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>