Nginx:绑定域名代理tomcat server { listen 80; listen 443 ssl; if ( $scheme = “http” ) { rewrite ^(.*) https://$host$1; } server_name nutzwk.wizzer.cn; root “/java/work/nutzwk”; ssl_certificate /java/work/1_nutzwk.wizzer.cn_bun… 更多
Nginx:配置静态资源304缓存 location ~ \.(jpg|png|jpeg|gif)$ { expires 30d; root /data/www/wizzer.cn/; } location ~ \.(js|css)$ { expires 2h; root /data/www/wizzer.cn/; }… 更多
Nginx+Tomcat负载均衡、绑定多域名、设置开机启动的安装步骤 1、JDK安装 /data1/soft/java/ >>chmod 777 jdk-6u45-linux-x64-rpm.bin >>jdk-6u45-linux-x64-rpm.bin >>gedit /etc/profile JAVA_HOME=/data1/soft/java/jdk1.6.0_45 CLASSPATH=.:$JAVA_HOME/jre/l… 更多
LNMP:Nginx+PHP Ci框架配置注意事项 CodeIgniter php.ini 修改: cgi.fix_pathinfo=1 nginx/vhost/ 域名配置: server { listen 80; server_name www.wizzer.cn wizzer.cn; root “/data/www/www.wizzer.cn”; location / { index ind… 更多
Windows :Nginx + PHP 配置虚拟目录 首先配置好运行环境: windows下配置nginx+php环境 其次修改nginx配置文件: server { listen 80; server_name localhost; location ~ ^/bbs/.+\.php$ { alias E:/xuetang/cn/bbs; rewrite /bbs/(.*\.php?) /$1 break; fastcgi_index index.p… 更多