原来几个网站是放在win服务器上的,但是配置太差,导致卡卡卡卡卡。所以今天索性就换到linux上来了。
## tb.onm.me
<virtualhost *:80>
DocumentRoot /xxx/web/tieba
ServerName tb.onm.me
DirectoryIndex index.html index.php
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/wwwftp_access%Y%m%d.log 10M" common
ProxyPassMatch ^/(.*.php)$ fcgi://127.0.0.1:9001/home/wwwftp/$1
</virtualhost>
## su.onm.me
<virtualhost *:80>
DocumentRoot /xxx/web/shudong ##网站路径
ServerName su.onm.me ##域名
DirectoryIndex index.html index.php #默认文档
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/wwwftp_access%Y%m%d.log 10M" common
ProxyPassMatch ^/(.*.php)$ fcgi://127.0.0.1:9001/home/wwwftp/$1
</virtualhost>
配置好以后发现IP也可以访问,为了防止恶意解析,所以禁止IP访问。
## 访问115.28.85.69:80
#NameVirtualHost 115.28.85.69:80
<virtualhost *:80>
ServerName 115.28.85.69:80
<location></location>
Order Allow,Deny
Deny from all
</virtualhost>