Nginx Access Control Allow Origin

当静态资源文件和主站域名不一样时,字体文件之类的会爆如下错误: Font from origin 'http://www.typenter.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on ...

Nginx refused visitor IP

nginx禁止直接使用IP访问服务器:

 

VPS安装debian-X64,mysql-5.6.10,php-5.4.12,nginx-1.2.7与配置

VPS安装debian-X64,mysql-5.6.10,php-5.4.12,nginx-1.2.7与配置
环境Debian6.0X64/512M/20G.安装前的配置以及安装一些必要的工具
# aptitude update
# aptitude upgrade
# aptitude -y purge apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common
# aptitude install build-essential cmake //编译mysql5.5以上就要用到的编译工具 ......

nginx & wordpress configure rewrite

nginx & wordpress 配置重写来做伪静态,每个域名单独放到一个server文件中,在nginx.conf中包含进去,这样有利于配置管理.
me@localhost /# cat /webserver/nginx/vhost/lastme.conf
1.在需要配置伪静态的server配置文件中,配置如下...