title: How can a spring application be hosted in a apache server?
body: <p>I know this is long but please bear with me......</p>
  
  <p>I am using xubuntu. I have a spring mvc project named <strong>Fitness Tracker</strong>.It has a standard directory structure. I also have <strong>apache2</strong> on my machine which i installed using commandline. I have created a file named <strong>default1</strong> inside sites-available directory which contains following code:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
   ServerName east.example.org
   DocumentRoot /var/www/hello/FitnessTracker/src/main/webapp/WEB-INF/jsp  
  &lt;Directory /var/www/hello/FitnessTracker/src/main/webapp/WEB-INF/jsp&gt;
  Options Indexes FollowSymLinks MultiViews
          AllowOverride None
          Order allow,deny
          allow from all
  &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>My httpd.conf contains following code</p>
  
  <pre><code>ServerName localhost     
  DirectoryIndex hello.jsp
  </code></pre>
  
  <p>Additioanlly ,My spring controller name is Hello Controller and it contains following code:-</p>
  
  <pre><code>package com.pluralsight.controller;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.ui.Model;
  import org.springframework.web.bind.annotation.RequestMapping;
  
  @Controller
  public class HelloController {
  
      @RequestMapping(value="/greeting")
      public String sayHello(Model model)
  {
          model.addAttribute("greeting", "Hello World");
          return "hello";
  }
  }
  </code></pre>
  
  <p>Now when i type <strong>east.example.org</strong> in address bar of my browser i get hello.jsp page which contains code of hello.jsp page(i.e.spring mvc code along with html code).</p>
  
  <p>My requirement is when i start my apache server and type <strong>east.example.org</strong> in address bar of my browser i want to display <strong>greeting.html</strong> page. How can this be done?? Note that there exists no page of name greeting.html. But Spring enables us to route the request to hello.jsp page when greeting.html page is requested. </p>
  
  <p>P.S. I have used spring tags inside my jsp page.How can i get access to greeting.html page??</p>