您现在的位置是:Apache - 技术吧
  • .htaccess实现https重定向

    <IfModule mod_rewrite.c>
      Options +FollowSymlinks -Multiviews
      RewriteEngine On
    
      RewriteCond %{SERVER_PORT} !^443$
      RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
    
    </IfModule>

    yuli0927 2019年07月24日 标签: Apache分类: Apache

  • Apache部署SSL证书配置https

    <VirtualHost *:443>
        DocumentRoot "/var/www/html"
        ServerName jishu8.net
        SSLEngine on
        SSLCertificateFile /usr/local/apache/conf/2_jishu8.net_cert.crt
        SSLCertificateKeyFile /usr/local/apache/conf/3_jishu8.net.key
        SSLCertificateChainFile /usr/local/apache/conf/1_root_bundle.crt
    </VirtualHost>

    yuli0927 2018年09月29日 标签: Apache分类: Apache

  • Apache设置浏览器默认编码

    在http.conf修改AddDeafultCharset或增加一行
    AddDefaultCharset utf8
    

    yuli0927 2017年04月16日 标签: Apache http分类: Apache

  • Apache禁用TRACE Method和添加X-frame-options响应头

    在http.conf增加以下两行
    TraceEnable off
    Header always append X-Frame-Options SAMEORIGIN

    yuli0927 2017年03月30日 标签: Apache分类: Apache

  • [emerg] (43)Identifier removed: couldn't grab the accept mutex

    查看apache日志

    cat /var/wwwlogs/error
    [emerg] (43)Identifier removed: couldn't grab the accept mutex
    [emerg] (43)Identifier removed: couldn't grab the accept mutex
    [emerg] (43)Identifier removed: couldn't grab the accept mutex
    [emerg] (43)Identifier removed: couldn't grab the accept mutex
    [alert] Child 9928 returned a Fatal error... Apache is exiting!
    [emerg] (22)Invalid argument: couldn't release the accept mutex
    


    处理办法,修改配置文件增加AcceptMutex posixsem

    vi /usr/local/apache/conf/vhost/http-mpm.conf
    <IfModule mpm_prefork_module>
        StartServers          10
        MinSpareServers       10
        MaxSpareServers      20
        ServerLimit         1500
        MaxClients          1000
        MaxRequestsPerChild 5000
        AcceptMutex posixsem
    </IfModule>
    

    yuli0927 2016年12月16日 标签: Linux Apache分类: Apache

1 2 ... Next »