Windows

Apache 日志文件设置

日志文件需要配置大小,生成规则,访问记录以及访问记录生成规则,该方式配置便于后期查询维护。

# 限制错误日志文件为 500M

#ErrorLog "|bin/rotatelogs.exe -l logs/error-%Y-%m-%d.log 500M"

 

# 每天生成一个错误日志文件

#ErrorLog "|bin/rotatelogs.exe -l logs/error-%Y-%m-%d.log 86400"

 

# 限制访问日志文件为 500M

#CustomLog "|bin/rotatelogs.exe -l logs/access-%Y-%m-%d.log 500M" common

 

# 每天生成一个访问日志文件

#CustomLog "|bin/rotatelogs.exe -l logs/access-%Y-%m-%d.log 86400" common

华为AR-2240-S

配置内部服务器

sys

interface GigabitEthernet0/0/0
undo   nat server protocol tcp global interface GigabitEthernet 0/0/0 9090 inside 192.168.1.7 9090

nat server protocol tcp global current-interface 9090 inside 192.168.1.7 9090

nat server protocol tcp global current-interface 3389 inside 192.168.1.7 3389

 

#
interface GigabitEthernet0/0/2
undo   nat server protocol tcp global interface GigabitEthernet 0/0/2 9090 inside 192.168.1.7 9090

nat server protocol tcp global interface GigabitEthernet 0/0/0 9090 inside 192.168.1.7 9090

nat server protocol tcp global interface GigabitEthernet 0/0/0  3389 inside 192.168.1.7 3389

XAMPP多站点配置

XAMPP多站点配置