среда, 20 февраля 2013 г.

Apache2 Negotiation: discovered file(s) matching request

Params:

 - Linux A230512 3.5.0-24-generic #37-Ubuntu SMP Thu Feb 7 01:50:30 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
 - Apache/2.2.22

Problem:
I trying to get page from local server by URL: http://<sitename>/index/index/site_id/6. There one input point "index.php", htaccess configured properly. But "Page not found" returned.

Solution:
Apache log show this message "Negotiation: discovered file(s) matching request...". It mean you need to disable "MultiViews" in domain configuration.

1) Edit domain configuration file
> nano -w /etc/apache2/sites-available/<site-configuration-file>
2) Find this row "Options Indexes FollowSymLinks MultiViews" and remove phrase "MultiViews".
As a result you should have this "Options Indexes FollowSymLinks". Save file.

3) Restart apache
/etc/init.d/apache2 restart

Note:
OS Ubuntu 12.10, In your system routes and commands may be different.

Комментариев нет:

Отправить комментарий