Code Snippet

Just another Code Snippet site

CentOS – install using yum Apache 2.4

cd /etc/yum.repos.d/
wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo

yum install -y httpd24.x86_64

/opt/rh/httpd24/root/usr/sbin/httpd -version

chkconfig httpd off
chkconfig httpd24-httpd on

service httpd stop
service httpd24-httpd restart

Configuration files are stored here : /opt/rh/httpd24/root/etc/httpd

,


3 thoughts on “CentOS – install using yum Apache 2.4

  • Olivier says:

    Enable DumpIO plugin (https://httpd.apache.org/docs/2.4/mod/mod_dumpio.html)

    LogLevel dumpio:trace7
    DumpIOInput On
    DumpIOOutput On
    
  • Olivier says:

    For Httpd 2.2 :

    DumpIOLogLevel notice
    DumpIOOutput On
    DumpIOInput On

  • Olivier says:

    Reverse proxy with Client certificate authentication (HTTPS backend) :

    <VirtualHost *:6688>
    
    ServerName MyReverseProxy
    
    ## ############################### ##
    ## Client Certificate
    ## ############################### ##
    SSLProxyEngine On
    SSLProxyCheckPeerCN Off
    SSLProxyCheckPeerName Off
    SSLProxyVerify none
    SSLCACertificateFile /etc/httpd/public.pem
    
    ## ############################### ##
    ## Balancer
    ## ############################### ##
    <Location /balancer-manager>
        SetHandler balancer-manager
    </Location>
    
    #reverse proxy settings
    <Proxy balancer://backend>
       BalancerMember https://backend_IP:backend_PORT route=node1 keepalive=On min=1 max=25
       ProxySet lbmethod=byrequests
       ProxySet stickysession=JSESSIONID|jsessionid
       ProxySet scolonpathdelim=On
    </Proxy>
    
    ## ############################### ##
    ## Services
    ## ############################### ##
    <Location "/MyService">
       ProxyPass balancer://backend/MyService
       ProxyPassReverse balancer://backend/MyService
    </Location>
    
    ...
    
    
    </VirtualHost>
    

Leave a Reply

Your email address will not be published. Required fields are marked *