Friday, December 12, 2014

Apache Name Based Virtual Hosting + DNS Server

1. DNS Server / Wamp Server : (192.168.172.14)
  1. Install-Configure DNS Server
  2. Create Primar Zone “aview.org”
  3. Create two host file edx and studio and its should be pointed to same DNS Server IP
        edx.aview.org         ---->   192.168.172.14
studio.aview.org     ---->    192.168.172.14
  1. Install Wamp Server and make it should be working condition
  2. For Virtual hosting And Proxy Passing, Add the below mentioned modules in httpd.conf file
LoadModule headers_module modules/mod_headers.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule ssl_module modules/mod_ssl.so
  1. Modify the httpd.conf again
                under "# Virtual hosts", uncomment “#Include conf/extra/httpd-vhosts.conf”
screenshot of .httpd.conf file
                                        This tells Apache to include the file "httpd-vhosts.conf" (the file where we set our virtual hosts) when configuring its settings.
  1. Virtual Hosting In Apache: Edit the httpd.conf and add the lines
  ServerAdmin edx.aview.org
  ServerAlias edx.aview.org       
    ProxyPass / http://192.168.172.100/
    ProxyPassReverse / http://192.168.172.100/
    ServerAdmin studio.aview.org
    ServerAlias studio.aview.org       
    ProxyPass / http://192.168.172.100:9080/
    ProxyPassReverse / http://192.168.172.100:9080/
2. Web Server - Tomcat Running Server (192.168.172.100)
  1. Install Wamp And Tomcat Properly
  2. Configure Wamp Listen Port 80 and Tomacat listen port 9080
  3. Normally Wamp Listen locally.So Make it accessible from other machines.For this Edited the httpd.conf
   
    AllowOverride none
    #Require all denied
Allow from all
#Require local
Allow from all
3   Client  1 (192.168.172.1)
Check in Browser :- http://edx.aview.org   And    http://studio.aview.org

No comments:

Post a Comment

bloggerwidgets