apache多站点局域网访问:
<VirtualHost *:80>
DocumentRoot "E:/website/pxsj"
ServerName host7.com
ServerAlias 192.168.1.116
<Directory "E:/website/pxsj">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
DocumentRoot "E:/website/pxsj"
ServerName host7.com
ServerAlias 192.168.1.116
<Directory "E:/website/pxsj">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
网站目录禁止访问:
apache:
Options Indexes FollowSymLinks 修改成 Options FollowSymLinks
其实就是将Indexes去掉,Indexes表示若当前目录没有index.html就会显示目录结构。
iis:
internet信息服务(iis)管理器->文件夹选项
windows配置服务
控制面板->默认程序->程序和功能->打开或关闭windows功能
apache 访问日志按日期拆分:
CustomLog "|E:/wamp/bin/apache/Apache2.2.21/bin/rotatelogs.exe e:/wamp/logs/access_%Y_%m_%d.log 86400 480" common