Open DawnEve opened 6 years ago
1.添加本地IP和虚拟网址 C:\Windows\System32\drivers\etc\hosts
127.0.0.1 blog.dawneve.cc
2.末尾添加本地路径和对应的虚拟URL G:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "G:/xampp/htdocs/txtBlog" ServerName blog.dawneve.cc ErrorLog "logs/blog.com-error.log" CustomLog "logs/blog.com-access.log" common
3.重启apache服务器
4.在浏览器输入虚拟网址即可在本地访问 blog.dawneve.cc
1.添加本地IP和虚拟网址 C:\Windows\System32\drivers\etc\hosts
127.0.0.1 blog.dawneve.cc
2.末尾添加本地路径和对应的虚拟URL G:\xampp\apache\conf\extra\httpd-vhosts.conf
<VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "G:/xampp/htdocs/txtBlog" ServerName blog.dawneve.cc ErrorLog "logs/blog.com-error.log" CustomLog "logs/blog.com-access.log" common
3.重启apache服务器
4.在浏览器输入虚拟网址即可在本地访问 blog.dawneve.cc