rewrite^(.*)/archiver/((fid|tid)-[w-]+.html)$$1/archiver/index.php?$2last;rewrite^(.*)/forum-([0-9]+)-([0-9]+).html$$1/forumdisplay.php?fid=$2&page=$3last;rewrite^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$$1/viewthread.php?tid=$2&extra=page%3D$4&a..
分类:
Web程序 时间:
2016-07-30 22:45:34
阅读次数:
252
server{listen80;server_nameaaa.com;location/{proxy_passhttp://2.2.2.2/;proxy_set_headerHost$host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerX-Forwarded-For$proxy_add_x_forwarded_for;}#access_log/home/logs/aaa_access.logcombined;}如果后端的机器有..
分类:
其他好文 时间:
2016-07-30 22:44:18
阅读次数:
521
在nginx配置文件中加入if($document_uri!~‘jzq‘){rewrite^/(.*)$http://www.jzq.pub/abc/$1permanent;}Mkdir/data/www/abc
分类:
其他好文 时间:
2016-07-30 22:42:49
阅读次数:
209
环境是先前配置lnmp+keepalived负载均衡的2台机器,IP分别是10.10.10.13和10.10.10.14. 1,登录系统 Last login: Sun Jul 24 23:36:55 2016 from 10.10.10.1 [root@hd3 ~]# netstat -nltp ...
分类:
数据库 时间:
2016-07-30 17:59:56
阅读次数:
241
yum安装nginxphp-fpmmariadb-serverphpmyadminphp-mysqlnginx.conf添加以下内容location下添加
indexindex.php;
location~\.php${
roothtml;
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAME/usr/share/nginx/html$fastcgi_script_name;..
分类:
Web程序 时间:
2016-07-29 23:05:12
阅读次数:
409
实验需求:LNMP实现多个虚拟主机,部署wordpress和phpmyadmin,并为phpmyadmin提供https实验环境:LNMPCentOS7.2x86_64IP:172.16.251.138测试端CentOS6.7x86_64IP:172.16.251.164实验准备:安装开发包组,支持软件,解决依赖关系[root@station138~]#iptables-F[root@station1..
分类:
Web程序 时间:
2016-07-29 23:05:05
阅读次数:
518
Lnmp架构之MYSQL:关系型数据库管理系统MySQL是一个关系型数据库,由瑞典MySQLAB公司开发,目前属于Oracle旗下公司。MySQL最流行的关系型数据库管理系统,在WEB应用方面MySQL是最好的RDBMS(RelationalDatabaseManagementSystem,关系数据库管理系统)应用软件之一。MySQL是一种关..
分类:
数据库 时间:
2016-07-29 23:03:32
阅读次数:
392
要求:1.在三台主机上面搭建LNMP2.搭建两个虚拟主机分别部署wordpress和phpMyadmin,3.为后一主机提供https实现步骤:一.准备四台主机 nginx主机: 172.16.10.17/16192.168.10.17/24 php主机: 192.168.10.27/24 mysql主机: 192.168.10.87/24 CA签证主机: 172.16.10.77二.分别..
分类:
其他好文 时间:
2016-07-29 19:25:50
阅读次数:
236
实验目标:搭建lnmp并实现wordpress,phpmyadmin功能,并为phpmyadmin添加https服务实验环境:centos7,使用epel源安装nginx,php,php-fpm,mariadb,pgp-mysql,php-mbstring修改hosts文件,添加一条记录[root@localhostphp-fpm.d]#vim/etc/hosts172.16.34.2www.pma.comwww.wp.com..
分类:
Web程序 时间:
2016-07-29 19:17:41
阅读次数:
228
第1章环境规划1.1环境要求[root@web01~]#cat/etc/redhat-releaseCentOSrelease6.7(Final)[root@web01~]#uname-mx86_64[root@web01~]#uname-r2.6.32-573.el6.x86_64[root@web01~]#uname-nweb01[root@web01~]#uname-aLinuxweb012.6.32-573.el6.x86_64#1SMPThuJul2315:44:03UTC201..
分类:
其他好文 时间:
2016-07-25 16:45:27
阅读次数:
549