Configure Apache web server for SAP Hybris - CentOS 7

Configure Apache Virtual Hosts - CentOS 7
This article shows you How I installed and setup Apache web server for my development environment, which is pointing to my backend Application server using proxy.

Install the Apache web server
Update your packages on centos 7.
sudo yum update
Install Apache
sudo yum install httpd
Start the service
sudo service httpd start

Set up Apache server
Apache can be configured by httpd.conf file, which also includes all files present under conf.d folder, so let's create .conf file under conf.d folder.
sudo vim /etc/httpd/conf.d/webserver.conf
Past the code and change configuration based on your requirement, here I need to call App server on HTTPS also don't want SSL handshake.
<VirtualHost *:80>
    ServerAdmin email@example.com
    ServerName www.example.com
    ServerAlias example.com
    SSLProxyEngine On

    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off

    ProxyPreserveHost on
    ProxyPass / https://serverIP:port/
    ProxyPassReverse / https://serverIP:port/

</VirtualHost>
Save and quit the file.
:wq!
Restart the Apache service.
sudo service httpd restart



After setting Apache server I was getting an error
[error] (13)Permission denied: proxy: AJP: attempt to connect to 10.x.x.x:9002 failed
To resolve it I have followed this steps


Author Image

Ankitkumar Patel

Sr. SAP Hybris consultant, having 6+ years experience in Hybris, Java, J2EE. Extensive hands-on experience in SAP Hybris development, third-party integrations with Hybris, project architecture and design... Read more

Comments

  1. I'm searching for some sensible journal sites for finding out. I used to be looking over search engines and located your journal web site. Well i favor your top quality journal website style and your posting skills. Keep doing it.

    Reliable dedicated servers

    ReplyDelete
  2. Really good article. You mention almost every point. Worth to read . Thank you
    Web Hosting in Pakistan

    ReplyDelete

Post a Comment

Popular posts from this blog

Hybris flexible search query examples

How to remove or update all data records in Hybris?

Hybris backoffice customization