环境介绍nginx反向代理:192.168.127.129web:192.168.127.134操作过程:编辑nginx.conf在末尾加入includevhosts/*.conf;然后在/usr/local/nginx/conf/vhost/这个目录下建立个proxy.conf配置文件server{
listen80;
server_name192.168.127.129;
location/{
proxy_passhttp://192..
分类:
其他好文 时间:
2016-05-31 19:17:32
阅读次数:
148
http://www.ttlsa.com/nginx/nginx-status-detail/http://www.ttlsa.com/zabbix/zabbix-monitor-nginx-performance/首先需要配置ngx_statusvim/etc/nginx/vhost/web.confserver{listen80;server_name192.168.80.62;indexindex.phpindex.htmlindex.htmdefault.htmldefault.htmde..
分类:
其他好文 时间:
2016-05-26 14:49:19
阅读次数:
213
首先需要开启php-fpm状态功能http://www.ttlsa.com/php/use-php-fpm-status-page-detail/http://www.ttlsa.com/zabbix/zabbix-monitor-php-fpm-status/vim/usr/local/php/etc/php-fpm.confpm.status_path=/status去掉注释vim/etc/nginx/vhost/web.confserver{listen80;server_n..
分类:
Web程序 时间:
2016-05-26 14:49:19
阅读次数:
273
MacVTap和vhost-net技术原理VM<---->虚拟网卡<---->虚拟化层<---->内核网桥<---->物理网卡vhost-net技术使虚拟机的网络通信绕过用户空间的虚拟化层,必须使用Virtio半虚拟化的网卡MacVTap则是跳过内核的网桥传统桥接方案<interfacetype=‘bridge‘>..
分类:
其他好文 时间:
2016-05-24 17:21:13
阅读次数:
581
背景:有时需要单看某个进程的CPU及占用情况,有时需要看整体进程的一个占用情况。一、 linux ps命令,查看某进程cpu和内存占用率情况[root@test vhost]# ps auxUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND解 ...
分类:
编程语言 时间:
2016-05-18 17:38:47
阅读次数:
177
server { listen 80 ; server_name user.fudaobank.com; index index.html index.htm index.php; root /alidata/www/abc; location ~ .*\.(php|php5)?$ { fastcg ...
分类:
Web程序 时间:
2016-05-14 23:05:30
阅读次数:
2125
为了方便管理虚拟主机,应该尽量少修改主配置文件http.conf或者nginx.conf,大部分修改变更都在虚拟主机片配置文件httpd- vhost.conf或者vhost.conf中完成,这样有利于调试,降低风险。即便把虚拟主机配置文件修改得一团糟,只要把主配置文件中包含虚拟主机 配置文件的一行 ...
分类:
Web程序 时间:
2016-05-14 21:29:20
阅读次数:
357
一:Apache\conf\extra\httpd-vhost.conf 虚拟目录配置文件添加两个站点<VirtualHost *:80># ServerAdmin webmaster@dummy-host.example.com DocumentRoot "C:/www/w1" ServerNam ...
分类:
其他好文 时间:
2016-05-14 11:30:00
阅读次数:
210
First edit the file /www/wdlinux/apache/conf/vhost/00000.default.conf and add the additional line to the directory settings: If you wanted to allow ac ...
分类:
数据库 时间:
2016-05-13 20:44:59
阅读次数:
460
实验环境centos6.7安装httpd:yuminstall-yhttpd2.修改配置文件注销配置文件/etc/httpd/conf/httpd.conf中的DocumentRoot在/etc/httpd/conf.d目录下新建一个辅助配置文件vhost.conf[root@bogona.com]#cat/etc/httpd/conf.d/vhost.conf
NameVirtualHost192.168.1.110:80
<Vir..
分类:
Web程序 时间:
2016-05-05 07:07:45
阅读次数:
401