您现在的位置是:Apache - 技术吧
  • apache反向代理

    <VirtualHost *:80>
    ServerAdmin prograsliu@gmail.com
    DocumentRoot "/home/www/iptv"
    ServerName iptv.zzfwb.cn
    #ServerAlias test.com
    
    AddDefaultCharset gb2312
    ErrorLog "/home/wwwlogs/iptv.zzfwb.cn-error_log"
    CustomLog "/home/wwwlogs/iptv.zzfwb.cn-access_log" common
    <Directory "/home/www/iptv">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
        
        #反向代理设置
        ProxyPass / http://172.25.243.66:8080/
        ProxyPassReverse / http://172.25.243.66:8080/
    
    </VirtualHost>
    

    yuli0927 2020年04月17日 标签: Apache分类: Apache

  • Apache部署SSL证书配置https

    <VirtualHost *:443>
    ServerAdmin yuli0927@126.com
    php_admin_value open_basedir "/www_path/jishu8.cn:/tmp/:/var/tmp/:/proc/"
    DocumentRoot "/www_path/jishu8.cn/"
    ServerName jishu8.cn
    ServerAlias www.jishu8.cn
    
    # 请注意修改真实文件路径
    SSLEngine on
    SSLCACertificateFile "/ssl_path/1_root_bundle.crt"
    SSLCertificateFile "/ssl_path/2_jishu8.cn.crt"
    SSLCertificateKeyFile "/ssl_path/3_jishu8.cn.key"
    
    ErrorLog "/log_path/jishu8.cn-error_log"
    CustomLog "/log_path/jishu8.cn-access_log" combined
    </VirtualHost>

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

  • .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

1 2 ... Next »