{"id":1242,"date":"2016-03-26T08:42:03","date_gmt":"2016-03-26T12:42:03","guid":{"rendered":"http:\/\/shirishranjit.com\/blog1\/?page_id=1242"},"modified":"2016-03-26T09:04:55","modified_gmt":"2016-03-26T13:04:55","slug":"apache-httpd-setting-up-multiple-webserver-config-changes","status":"publish","type":"page","link":"https:\/\/shirishranjit.com\/blog1\/technical-posts\/apache-httpd-setting-up-multiple-webserver-config-changes","title":{"rendered":"Apache Httpd Setting up Multiple webserver Config changes"},"content":{"rendered":"<ol>\n<li>Mod_Proxy module comes in-built with other Apache modules.Add\/uncomment the below lines in $APACHE_HOME\/conf\/httpd.conf\n<p>LoadModule proxy_module modules\/mod_proxy.so<br \/>\nLoadModule proxy_http_module modules\/mod_proxy_http.so<\/li>\n<li>Add below lines to the end of $APACHE_HOME\/conf\/httpd.confProxypass \/server1\/ http:\/\/localhost:8080\/<br \/>\nProxypassReverse \/server1\/ http:\/\/localhost:8080\/<\/p>\n<p>Proxypass \/server2\/ http:\/\/localhost:8280\/<br \/>\nProxypassReverse \/server2\/ http:\/\/localhost:8280\/<\/li>\n<li>Setting up Virtual Host\n<pre>\r\n<code>\r\n&lt;VirtualHost *:80&gt;\r\n\r\n    ServerAdmin webmaster@localhost\r\n    ServerName ci.company.com\r\n    ServerAlias ci\r\n    ProxyRequests Off\r\n\r\n    &lt;Proxy *&gt;\r\n        Order deny,allow\r\n        Allow from all\r\n    &lt;\/Proxy&gt;\r\n   \r\n    ProxyPreserveHost on\r\n    ProxyPass \/ http:\/\/localhost:8080\/ nocanon\r\n    AllowEncodedSlashes NoDecode\r\n\r\n&lt;\/VirtualHost&gt;<\/li>\r\n<\/code>\r\n\t<li>Restart Apache service.\r\n<br>\r\nStarting:\r\n<pre>\r\n<code>\r\nservice http stop\r\n<\/code>\r\n<\/pre>\n<p>Stopping:<\/p>\n<pre>\r\n<code>\r\nservice http start\r\n<\/code>\r\n<\/pre>\n<\/li>\n<\/ol>\n<h2>References<\/h2>\n<ol>\n<li> https:\/\/httpd.apache.org\/docs\/2.4\/vhosts\/examples.html<\/li>\n<li>https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension<\/li>\n<li>https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension<\/li>\n<li>http:\/\/httpd.apache.org\/docs\/2.4\/howto\/reverse_proxy.html\n<\/li>\n<\/ol>\n<div class=\"twttr_buttons\"><div class=\"twttr_twitter\">\n\t\t\t\t\t<a href=\"http:\/\/twitter.com\/share?text=Apache+Httpd+Setting+up+Multiple+webserver+Config+changes\" class=\"twitter-share-button\" data-via=\"\" data-hashtags=\"\"  data-size=\"default\" data-url=\"https:\/\/shirishranjit.com\/blog1\/technical-posts\/apache-httpd-setting-up-multiple-webserver-config-changes\"  data-related=\"\" target=\"_blank\">Tweet<\/a>\n\t\t\t\t<\/div><div class=\"twttr_followme\">\n\t\t\t\t\t\t<a href=\"https:\/\/twitter.com\/shiranjit\" class=\"twitter-follow-button\" data-size=\"default\"  data-show-screen-name=\"false\"  target=\"_blank\">Follow me<\/a>\n\t\t\t\t\t<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Mod_Proxy module comes in-built with other Apache modules.Add\/uncomment the below lines in $APACHE_HOME\/conf\/httpd.conf LoadModule proxy_module modules\/mod_proxy.so LoadModule proxy_http_module modules\/mod_proxy_http.so Add below lines to the end of $APACHE_HOME\/conf\/httpd.confProxypass \/server1\/ http:\/\/localhost:8080\/ ProxypassReverse \/server1\/ http:\/\/localhost:8080\/ Proxypass \/server2\/ http:\/\/localhost:8280\/ ProxypassReverse \/server2\/ http:\/\/localhost:8280\/ Setting up &hellip; <a href=\"https:\/\/shirishranjit.com\/blog1\/technical-posts\/apache-httpd-setting-up-multiple-webserver-config-changes\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":198,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1242","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/1242"}],"collection":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/comments?post=1242"}],"version-history":[{"count":9,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/1242\/revisions"}],"predecessor-version":[{"id":1254,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/1242\/revisions\/1254"}],"up":[{"embeddable":true,"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/pages\/198"}],"wp:attachment":[{"href":"https:\/\/shirishranjit.com\/blog1\/wp-json\/wp\/v2\/media?parent=1242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}