<p>Do you have a .htaccess file in your document root? Allowoverride would allow that file to cause the sort of disruption you describe.</p>
<p>Karl</p>
<div class="gmail_quote">> On 8 September 2010 13:22, Laurence Southon <<a href="mailto:laurence@southon.uk.net">laurence@southon.uk.net</a>> wrote:<br>>> On 08/09/10 12:26, James Morris wrote:<br>>>> Does anyone know how to make this insane behaviour go away so that [<br>
>>> <a href="http://localhost/site/index">http://localhost/site/index</a> ] and [<br>>>> <a href="http://localhost/jwm-art.net/index/somethingrandom">http://localhost/jwm-art.net/index/somethingrandom</a> ] (etc) generate<br>
>>> 404 Not Found errors?<br>>><br>>> Sounds like you have a wildcard rewrite either in the conf for that site<br>>> or .htaccess.<br>>><br>>> If you post those here someone will probably be able to spot what is<br>
>> going on.<br>> <br>> <br>> I've edited /etc/apache2/sites_enabled/default (as provided by the<br>> Debian apache2-mpm-prefork 2.2.9-10+l package) to point to my site's<br>> root but otherwise done nothing other than enabled "AllowOverride All"<br>
> for it.<br>> <br>> Here is the contents of the mods-enabled directory:<br>> alias.conf authz_groupfile.load cgi.load env.load<br>> php5.conf status.load<br>> alias.load authz_host.load deflate.conf mime.conf<br>
> php5.load<br>> auth_basic.load authz_user.load deflate.load mime.load<br>> setenvif.conf<br>> authn_file.load autoindex.conf dir.conf<br>> negotiation.conf setenvif.load<br>> authz_default.load autoindex.load dir.load<br>
> negotiation.load status.conf<br>> <br>> This doesn't look like modrewrite is enabled. autoindex and dir<br>> control how directory listings appear.<br>> <br>> james@Scrapyard:/etc/apache2$ cat sites-available/default<br>
> <VirtualHost *:80><br>> ServerAdmin webmaster@localhost<br>> <br>> DocumentRoot /home/james/Projects/<a href="http://jwm-art.net/www">jwm-art.net/www</a><br>> <Directory /><br>
> Options FollowSymLinks<br>> AllowOverride None<br>> </Directory><br>> <Directory /home/james/Projects/<a href="http://jwm-art.net/www">jwm-art.net/www</a>><br>
> Options Indexes FollowSymLinks MultiViews<br>> AllowOverride All<br>> Order allow,deny<br>> allow from all<br>> </Directory><br>
> <br>> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br>> <Directory "/usr/lib/cgi-bin"><br>> AllowOverride None<br>> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br>
> Order allow,deny<br>> Allow from all<br>> </Directory><br>> <br>> ErrorLog /home/james/Projects/<a href="http://jwm-art.net/logs/error.log">jwm-art.net/logs/error.log</a><br>
> <br>> # Possible values include: debug, info, notice, warn, error, crit,<br>> # alert, emerg.<br>> LogLevel warn<br>> <br>> CustomLog /home/james/Projects/<a href="http://jwm-art.net/logs/access.log">jwm-art.net/logs/access.log</a> combined<br>
> <br>> </VirtualHost><br>> <br>> (admittedly this is a subtly different configuration I had when I<br>> posted earlier, but the same problem persists).<br>> <br>> In [ <a href="http://localhost/index.php">http://localhost/index.php</a> ] I have the following PHP code:<br>
> <br>> <?php<br>> print("<h2>SERVER</h2>\n");<br>> print("<pre><code>\n");<br>> print_r($_SERVER);<br>> print("</code></pre>\n");<br>
> ?><br>> <br>> When requesting [ <a href="http://localhost/index/poop/?p=code">http://localhost/index/poop/?p=code</a> ] index.php<br>> outputs the following:<br>> <br>> Array<br>> (<br>> [HTTP_HOST] => localhost<br>
> [HTTP_USER_AGENT] => Mozilla/5.0 (X11; U; Linux x86_64; en-GB;<br>> rv:1.9.0.19) Gecko/2010072022 Iceweasel/3.0.6 (Debian-3.0.6-3)<br>> [HTTP_ACCEPT] =><br>> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>
> [HTTP_ACCEPT_LANGUAGE] => en-gb,en;q=0.5<br>> [HTTP_ACCEPT_ENCODING] => gzip,deflate<br>> [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>> [HTTP_KEEP_ALIVE] => 300<br>
> [HTTP_CONNECTION] => keep-alive<br>> [HTTP_CACHE_CONTROL] => max-age=0<br>> [PATH] => /usr/local/bin:/usr/bin:/bin<br>> [SERVER_SIGNATURE] =><br>> Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch Server at<br>
> localhost Port 80<br>> <br>> <br>> [SERVER_SOFTWARE] => Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with<br>> Suhosin-Patch<br>> [SERVER_NAME] => localhost<br>> [SERVER_ADDR] => 127.0.0.1<br>
> [SERVER_PORT] => 80<br>> [REMOTE_ADDR] => 127.0.0.1<br>> [DOCUMENT_ROOT] => /home/james/Projects/<a href="http://jwm-art.net/www">jwm-art.net/www</a><br>> [SERVER_ADMIN] => webmaster@localhost<br>
> [SCRIPT_FILENAME] => /home/james/Projects/<a href="http://jwm-art.net/www/index.php">jwm-art.net/www/index.php</a><br>> [REMOTE_PORT] => 42938<br>> [GATEWAY_INTERFACE] => CGI/1.1<br>> [SERVER_PROTOCOL] => HTTP/1.1<br>
> [REQUEST_METHOD] => GET<br>> [QUERY_STRING] => p=code<br>> [REQUEST_URI] => /index/poop/?p=code<br>> [SCRIPT_NAME] => /index.php<br>> [PATH_INFO] => /poop/<br>> [PATH_TRANSLATED] => /home/james/Projects/<a href="http://jwm-art.net/www/poop/">jwm-art.net/www/poop/</a><br>
> [PHP_SELF] => /index.php/poop/<br>> [REQUEST_TIME] => 1283982784<br>> [argv] => Array<br>> (<br>> [0] => p=code<br>> )<br>> <br>> [argc] => 1<br>
> )<br>> <br>> I'll be very pleased if all this provides any clues as to what's going<br>> wrong here!<br>> <br>> Cheers,<br>> james.<br>> <br>>><br>>> LS<br>>> --<br>>> Laurence Southon<br>
>> Tiger Computing, Bexley<br>>> <a href="http://www.tiger-computing.co.uk">www.tiger-computing.co.uk</a><br>>><br>>> _______________________________________________<br>>> Kent mailing list<br>
>> <a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>>> <a href="https://mailman.lug.org.uk/mailman/listinfo/kent">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>>><br>> <br>
> <br>> <br>> -- <br>> _<br>> : <a href="http://jwm-art.net/">http://jwm-art.net/</a><br>> -audio/image/text/code<br>> <br>> _______________________________________________<br>> Kent mailing list<br>
> <a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>> <a href="https://mailman.lug.org.uk/mailman/listinfo/kent">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br></div>