Apache
-
Apache ERR_SSL_PROTOCOL_ERROR 解决办法
这就是个奇葩的问题。 在httpd-ssl.conf里面 绑定域名那,绑定相应的域名即可。
-
Apache 2.4 使用 .htaccess 禁止IP
仅允许IP为43.225.44.44的主机访问 <RequireAll> require all granted require ip 43.225.44.44 </RequireAll> 仅允许43.225.44.0/24网络的主机访问 <RequireAll> require all granted require i…
-
httpd: Could not reliably determine the server’s fully qualified domain name, using server.abc.com for ServerName
问题 Stopping httpd: [ OK ] Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using server.abc.com for ServerName 原因 httpd.conf 文件未配置Serve…
-
Apache http自动跳转到https的几种方法
方法1 RewriteEngine On RewriteBase / RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://yusky.me/$1 [R=301,L] #这样跳转的好处是独立IP主机也支持,访问ip能自动跳转到https 方法二 RewriteEngine on RewriteCon…
-
Apache 2.2 升级到 Apache2.4 后出现 AH00117: Ignoring deprecated use of DefaultType in line 59 of /etc/httpd/conf/httpd.conf.
Apache 2.2 升级到 Apache2.4 后启动报错 [root@server ~]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [Sat Nov 28 12:07:06.791846 2015] [core:warn] [pid 19881] AH00117: …
-
directadmin 升级apache 2.46 小问题解决
DirectAdmin从Apache2.2 升级到Apache2.4后,启动报错 Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodu…
-
directadmin 升级Apache2.2 到 Apache2.4
进入custombuild目录 cd /usr/local/directadmin/custombuild 把Apache版本设置为2.4并升级编译 #设置apache版本为2.4 ./build set apache_ver 2.4 #更新 ./build update #清理 ./build clean #编译apache ./build apache …
-
Linux下检测Apache运行状态的脚本
定时检测apache是否启动,如果没启动,自动启动该服务 #!/bin/sh check_services() { echo “Check services…” services=”” if [ -z “`ps -A|grep httpd`” ] then services=”$services httpd” fi } start_services() …