Zend config exception in application.ini in Zend framework
<p>I have the following configuration in application.ini</p>

<pre><code>[www.domain.com : default]
environment = production
</code></pre>

<p>It works fine with www but not without www. When I try without www then I get the following error message.</p>

<pre><code>Fatal error: Uncaught exception 'Zend_Config_Exception' with message 'Section 'domain.com' cannot be found....in /home/user/public_html/domain.com/public/application/configs/application.ini'  
</code></pre>

<p>Now I am bit confused if this is causing because of dns settings or virtual hosts file.</p>

<p>In virtual host configuration file contains the following </p>

<pre><code>&lt;VirtualHost *:80&gt;
        ServerName domain.com
        ServerAlias www.domain.com
        ErrorLog /home/user/public_html/domain.com/log/error.log
        CustomLog /home/user/public_html/domain.com/log/access.log combined
        DocumentRoot "/home/user/public_html/domain.com/public/web"
        SetEnv APPLICATION_ENV "production"
                &lt;Directory "/home/user/public_html/domain.com/public/web"&gt;
                        Options Indexes MultiViews FollowSymLinks
                        DirectoryIndex index.php
                        AllowOverride All
                        Order allow,deny
                        Allow from all
                &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre>

<p>Please suggest. Any help if highly appreciated.Thanks in advance.</p>