You must be logged in to be able to vote. Click here to login or sign up.

Vote Up!
Vote Down!

URL's not found

7 points | submitted by about 20 months ago | 5 comments

I've been plugging away at trying to get Nooster to run for about 3 hours, with nothing but errors about URLs not being found. The site installs and writes to the database, after which you're given a password for the username you supplied. The index page appears without issue, but that's as far as it goes. No login, no new, no submit pages.

You must be logged in to leave a comment.

Vote Up!
Vote Down!
0 points | submitted by about 20 months ago | Link

On a default Ubuntu install with Apache 2, the AllowOverride directive in your site's config in /etc/apache2/sites-available/<sitename> is set to Allowoverride None, which prevents mod_rewrite requests from being run, breaking the rewrite rules specified in .htaccess. I fixed this by changing AllowOverride None to AllowOverrride All, fixing the problem with the URL tracking.

* EDITED: It was stupid o' clock in the morning when I wrote the original fix, so I've edited it somewhat for clarity.

Reply
Vote Up!
Vote Down!
3 points | submitted by about 20 months ago | Link

Ah, good to know. I'll add that to the documentation for v0.7. You can probably get away with just AllowOverride FileInfo Options.

Additionally, v0.7 will remove the reliance on mod_rewrite and will work with querystrings. There will still be optional .htaccess rules to allow pretty URLs, though.

Reply
Vote Up!
Vote Down!
0 points | submitted by about 20 months ago | Link

I reread the documentation and felt a light bulb click on when I noticed mod_rewrite. Ran "a2enmod rewrite" to ensure that mod_rewrite is enabled, bounced apache and tried the site again. Still no luck.

Reply