Nabonita --<br><br>Your apache configs are contradictory. Remove the catch-all VirtualHost and NameVirtualHost settings so your configuration would look like:<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
****************************<br>#Listen <a href="http://12.34.56.78:80" target="_blank">12.34.56.78:80</a><br>
Listen 8000<br>Listen 9000<br><br># NameVirtualHost localhost:8000<br># NameVirtualHost localhost:9000<br><br><VirtualHost localhost:8000><br> ServerAdmin webmaster@dummy-opac<br> DocumentRoot /usr/koha229/opac/htdocs<br>
ScriptAlias /cgi-bin/ /usr/koha229/opac/cgi-bin/<br> # ServerName opac<br> ErrorLog logs/opac-error.log<br> CustomLog logs/opac-access.log common<br> SetEnv PERL5LIB "c:/usr/koha229/intranet/modules"<br>
</VirtualHost><br><br><VirtualHost localhost:9000><br> ServerAdmin webmaster@dummy-opac<br> DocumentRoot /usr/koha229/intranet/htdocs<br>
ScriptAlias /cgi-bin/ /usr/koha229/intranet/cgi-bin/<br> # ServerName intranet<br> ErrorLog logs/intranet-error.log<br> CustomLog logs/intranet-access.log common<br> SetEnv PERL5LIB "c:/usr/koha229/intranet/modules"<br>
</VirtualHost><br>********************************<br></blockquote><div><br>This would select VirtualHost strictly by localhost:X where X is the port number. This assumes you have no other VirtualHosts on port 8000 or 9000. Using unique ports, you don't need NameVirtualHost.<br>
<br>NameVirtualHost expects to select (potentially from multiple requests on the same port) based on the ServerName in the request. So if it is used, and your ServerName lines don't match incoming requests, then you get into trouble. Sometimes these problems are made clearer by establishing separate DNS names for the servers at the outset. Then you could use NameVirtualHost and the ServerName lines with those names, and test from any system. <br>
<br>Or if you add to your local hosts file (/etc/hosts) to resolve the names you want, you can test, but only from the same system. See "man hosts" for more info.<br><br>--joe<br></div></div>