Ganib Behind the apache server

4,489 views
  • Ganib with apache


    • Create a file named ganib.conf in /etc/httpd/conf.d/conf directory.
    • Add the below text to ganib.conf. (replace server name with your domain name)

    <VirtualHost 208.43.226.27:80 > ServerAdmin webmaster@ganib.com DocumentRoot /var/www/html/ganibwebsite/ ServerName ganib.com ServerAlias www.ganib.com RewriteCond %{HTTP_HOST} ^ganib.com RewriteRule (.*) http://www.ganib.com/$1 [R=301,L] ProxyPass / ajp://localhost:2009/ ErrorLog logs/ganib.com-error_log CustomLog logs/ganib.com-access_log combined </VirtualHost>

    • Edit GANIB_HOME/tomcat/conf/server.xml and add below lines

    <Host name="www.ganib.com" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="" docBase="ganib" /> </host>

    • Restart apache server & tomcat server.
asked Aug 6, 2013 by Emily S (820 points)

Please log in or register to answer this question.

...