title: Zend Framework 404 error issue in new controller
body: <p>I am very new to ZF and I am working on an already built application. My task is to create web service in the application. I have setup the application locally and its working fine. So I have added a new controller and could access in localhost, but when I tried to access the same in server, it results in 404 error, but other controllers can be accessed perfectly.</p>
  
  <p>AllowOverride All and Apache mod_rewrite is enabled in the server. Does anybody have any idea aboout this problem. I am sitting with this error for 2 days ..</p>
  
  <pre><code>    &lt;VirtualHost *:80&gt;
            DocumentRoot /path/to/site/public
            ServerName sitename.com
            ServerAlias www.sitename.com
         &lt;Directory /path/to/site/public&gt;
            AllowOverride All
         &lt;/Directory&gt;
      &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Controller code:</p>
  
  <pre><code>class APIController extends Zend_Controller_Action
  {
  
      public function init()
      {
          /* Initialize action controller here */
  
      }
  
      public function indexAction()
      {
  
          // Setup REST server
          $server = new Zend_Rest_Server();
      $server-&gt;setClass('APIHandlerClass');
      $server-&gt;handle();
      exit;
      }
  
  
  }  
  </code></pre>
  
  <p>I am accessing it with the url <strong>site.com/API</strong> It will show an XML in actual case.</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>I have setup the application in a local linux system and I found that the problem is related to the linux.</p>
  
  <p>I have tried the following:</p>
  
  <ol>
  <li><p>Created a new controller which resulted in 404.</p></li>
  <li><p>Copied an existing controller and renamed the orginal controller's name. Then I have changed the code in copied controller. I accessed the my controller and it worked!</p></li>
  <li><p>Copied an existing controller and renamed the copied controller. I called the copied controller with new name, which showed 404 error.</p></li>
  </ol>
  
  <p>My question is do I need to specify the new controller name any where!? I didn't find any documentation regarding this and I even created view files for the controller.</p>