https://www.cnblogs.com/sunsky303/p/9438737.html
分类:网站/服务器
网站301跳转 htaccess设置
头部 <IfModule mod_rewrite.c> RewriteEngine On 1.所有http自动跳转到https RewriteCond %{SERVER_PORT} 80 Rew…
在centos系统安装xampp的redis扩展
1.下载phpredis扩展 https://github.com/phpredis/phpredis 2.解压 unzip命令,没有unzip命令使用yum install unzip安装 之后unzip phpred…
apache 多版本php fcgi_mod.so
apache线上php版本5.2.6,要加多版本php7,使用fcgi_mod,将mod_fcgid.so拷贝到apache的modules文件夹中。 注意:apache2.2.0-2.2.8使用mod_fcgid2.2…
TP5配置隐藏入口index.php文件
隐藏tp入口文件index.php 官方代码: Options +FollowSymlinks -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !…
mod_fcgid v2.2 (mirror)
转自https://www.javatang.com/mod_fcgid-v2-2-mirror https://www.javatang.com/archives/2010/01/07/3629356.html 因mo…
apache 日志分割 按照一天一个文件与定期文件删除
ErrorLog "| /opt/lampp/bin/rotatelogs /opt/lampp/logs/aaa_%Y%m%d_error_log 86400 480" CustomLog "| /opt/lampp/…
禅道系统 系统日志的editcomment模块无权访问 解决方法
抱歉,您无权访问『 xxxx』模块的『 xxxx 』功能。请联系管理员获取权限。点击后退返回上页。 组织-权限-成员维护 中 分配相关的权限。
如何解决“504 Gateway Time-out”错误 转
情况一解决办法: 默认的fastcgi进程响应的缓冲区是8K,我们可以设置大一点,在nginx.conf里,加入:fastcgi_buffers 8 128k 这表示设置fastcgi缓冲区为8块128k大…
Apache访问日志 转
转自https://www.cnblogs.com/HanaKana/p/10748238.html 我们使用的是/usr/local/apache2.4/conf/extra/httpd-vhosts.conf配置文件…
正则表达式的先行断言(lookahead)和后行断言(lookbehind)
https://blog.csdn.net/u012047933/article/details/38365541
Apache中 MaxClients 与MaxRequestsPerChild
转自https://blog.csdn.net/apple_llb/article/details/50253889 因近期服务不稳定,现象和这个比较类似http://hi.baidu.com/xinfeng999/bl…
apache内存升高 调试
转自https://blog.csdn.net/Ghost_chou/article/details/81701486 我用2048M的aliyun 服务器,访问量不大,但内存占用很大,使用free -h命…
apache的keepalive和keepalivetimeout设置
在APACHE的httpd.conf中,KeepAlive指的是保持连接活跃,类似于Mysql的永久连接。换一句话说,如果将KeepAlive设置为On,那么来自同一客户端的请求就不需要再一次连接,避免每次请求都要新建一…
http-mpm.conf文件prefork配置
4核8G 10M带宽网站配置 <IfModule mpm_prefork_module> StartServers 20 MinSpareServers 20 MaxSpareServers 30 Serve…
如何优化网站的访问速度 转
基础知识 很多站长都遇到了网站访问速度不够快的问题,今天来尝试着了解并解决一下这个问题。 先来说一下我们使用浏览器访问一个网页,到看到这个网页出现,中间到底经过了些啥? 首先,在HTTP请求之前需要做这些: 获取IP。浏…
apache mod_deflate模块优化网站速度
<ifmodule mod_deflate.c> <location /> SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE text/h…
Apache两个模块mod-expires和mod_deflate的使用 转
mod_expires 模块的主要作用是自动生成页面头部信息中的 Expires 标签和 Cache-Control 标签,从而降低客户端的访问频率和次数,达到减少不必要流量和增加访问速度的目的。 mod_expires…
解决Apache长时间占用内存大的问题,Apache 内存优化方法
转自https://www.cnblogs.com/xiaoleiel/p/8308415.html 问:为什么服务器在连续运行多天后或访问峰值后,进程中的一个Apache.exe占用内存几百兆不减少? 答:用记事本打开…
MaxRequestWorkers setting 转
具体现象为: 1)SVN 访问缓慢,甚至不响应 2) uptime [root@localhost local]# uptime 10:29:38 up 25 days, 1:38, 2 users, load a…
apachectl命令
apachectl configtest 检查设置文件中的语法是否正确; 语法 apachectl(参数) 参数 configtest:检查设置文件中的语法是否正确; fullstatus…
Apache httpd-mpm.conf参数设置
针对server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting的现象,作了以下优化操作。操作记录如下:…
Apache2.4 解决client denied by server configuration
apache-2.4.x把NameVirtualHost取消了 删除了 Order deny,allow 和 Order allow,deny Deny from all ==》 Require all denied A…
Laravel Nginx 除 `/` 外所有路由 404 转
完成一个 Laravel 项目后,打算把它转移到 Nginx 上,之前图方便,所以在开发环境下都是 php -S localhost:1234 来启动 HTTP 服务器,并没有在 Nginx 下开发,服务器是 Ubunt…
Apache与Nginx的优缺点比较 转
Apache与Nginx的优缺点比较 1、nginx相对于apache的优点: 轻量级,同样起web 服务,比apache 占用更少的内存及资源 抗并发,nginx 处理请求是异步非阻塞的,而apache 则是阻塞型的,…
apache的htaccess规则转nginx规则
在线转化:http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ 亲测可用
如何设置httpd-mpm-conf的参数 转
首先确定apache是使用哪种工作模式 是prefork模式还是worker模式 查看方法#apachectl -l 显示结果: Compiled in modules: core.c mod_authn_file.c …