假设日志文件为C:\uwamp\bin\apache\logs\access.log和C:\uwamp\bin\apache\logs\error.log
假设Alias为http://localhost/logs
代码:
/logs/index.html:
<!doctype html>
<html>
<head>
<meta name="keywords" value=""/>
</head>
<body>
<a href="access.log">获取访问日志</a>
<a href="error.log">获取错误日志</a>
</body>
</html>
用于获取日志的html文件:
<!doctype html>
<html>
<head>
<meta name="keywords" value=""/>
</head>
<a href="/logs/index.html">查看日志</a>
</body>
</html>