Posts

Showing posts with the label ProxyPass

Configure Apache Virtual Hosts - CentOS 7

Configure Apache Virtual Hosts - CentOS 7 This article shows you   how to install and setup Apache web server , which can point to your backend Application server using proxy Install the Apache web server Update your packages on centos 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 SSLPro...

Apache setup to remove/add application context

I have configured the Apache to respond multiple applications deployed on the same tomcat server. All web application have different application context. I want to hide application context from end user as I have different subdomain for both application <VirtualHost *:443>     ServerName iot.project.in     ServerAlias www.iot.project.in   ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined     #Configure SLL certificate     SSLEngine on     SSLCertificateFile /ssl/wildcard_ssl/IoT.crt     SSLCertificateKeyFile /ssl/wildcard_ssl/IOT.key     #rewrite application context URL shown in browser so user will      #always redirect to new URL (if not POST method)     RewriteEngine  on     RewriteCond %{REQUEST_METHOD} !POST     RewriteRule ^(\/iot)(.*)$ $2 [NE,R]   ...