Why apache server redicect / doc for usr / share / doc

I have rewrite ruls in the .htaccess file in / var / www on my ubuntu10.4 server as shown below, when the url looks like http://127.0.0.1/doc/view , the web page shows: "Requested URL / doc / view was not found on this server ", and then I check the apach log, it is logged" The file does not exist: / usr / share / doc / view ", so apently apache redirects / doc / view to / usr / share / doc / view. I do not know what is happening here, can anyone help? thanks for the help.

Options +FollowSymLinks IndexIgnore */* <IfModule mod_rewrite.c> RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php </IfModule> 
+4
source share
1 answer

The default configuration for Apache in many distributions makes it possible for you to go to http://localhost/doc/ to read the Apache documentation. You can edit this in your httpd.conf or apache2.conf file if you need to use /doc for your own urls.

+6
source

All Articles