Wrox Home  
Search P2P Archive for: Go

  Return to Index  

apache_server thread: Apache Configuration file - httpd.conf MultiViews


Message #1 by "Vivin Deshpande" <we_win@h...> on Fri, 31 Jan 2003 14:02:49
Hi,
I want to make use of MultiViews option.
Here are some few details in my httpd.conf file

DocumentRoot "/usr/local/erp/htdocs"
<Directory />
    Options FollowSymLinks 
    AllowOverride None
</Directory>

<Directory "/usr/local/erp/htdocs">
 Options FollowSymLinks Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
</Directory>

my server ip is 192.168.1.12 
so in effect 192.168.1.12  is pointing to "/usr/local/erp/htdocs" 
(DocumentRoot)

Now, for instance the url
http://192.168.1.12/erp/administration/admin.php
would look for erp as a sub directory inside htdocs.
However i donot have erp as a subdirectory.
But "Note Above" :  <Directory "/usr/local/erp/htdocs"> has MultiViews 
enabled. So if not erp, it should look for erp.*
I do have a erp.php in htdocs which does the actual routing to the proper 
pages.

However my problem is here
The url http://192.168.1.12/erp/administration/admin.php
seems to produce "Object Not Found" page as if it does not know what to do 
when erp subdirectory is not encounterd ! It for some reason seems to 
ignore the MultiViews and thereby does not look for erp.php file.

Now i am sure it does not find erp.php since the first statement in 
erp.php is die(); So had it found it - it would have given me a blank 
page. But it seems to give me a "Object Not Found" page.

I have a red hat linux 8.0 with the latest version of Apache webserver - 
2.0.* 

Now i have a similar situation however on a different red hat machine with 
a much older Apache version. It seems to work perfectly on the other 
machine. I also comapred both httpd.conf files and found no difference.

Is there any other setting that i have to do in httpd.conf file to get 
MultiViews working?

Your help would be greatly appreciated 

  Return to Index