DawnEve / txtBlog

[知识管理]A simple yet powerful blog system for reading and organizing txt/Markdown/html files, based on PHP.
https://www.biomooc.com/Python3/Python3-web.html#2
16 stars 8 forks source link

local URL config #3

Open DawnEve opened 6 years ago

DawnEve commented 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