.htaccess files on apache2 + MySQL
Uri Even-Chen
uri at speedy.net
Fri Mar 4 16:43:15 IST 2011
Hi everyone,
1. I installed a new cloud server on www.speedy2000.net , it uses Ubuntu
10.04 LTS with apache2, PHP and MySQL. The problem is, currently apache
ignores .htaccess files. I have 2 .htaccess files, one to protect a
directory with username & password and one to redirect to another domain.
Here are the contents of the .htaccess files:
root at www:/var/www/admin# cd /var/www/admin/
root at www:/var/www/admin# cat .htaccess
AuthUserFile /etc/apache2/users/.htpasswd
AuthGroupFile /dev/null
AuthName "Protected Area"
AuthType Basic
<LIMIT GET POST>
require admin
</LIMIT>
root at www:/var/www/admin# cd /var/www/uri/
root at www:/var/www/uri# cat .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /uri/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /uri/index.php [L]
</IfModule>
--
currently both .htaccess files are ignored, for example
http://www.speedy2000.net/uri/en/ is not working and
http://www.speedy2000.net/admin/ is visible to everyone. How do I fix it?
root at www:/var/www/uri# /usr/sbin/apache2 -v
Server version: Apache/2.2.14 (Ubuntu)
Server built: Apr 13 2010 20:21:26
2. *I also had a bug with MySQL* - http://bugs.mysql.com/bug.php?id=60331 -
I understand I need to upgrade MySQL. What is the best stable version of
MySQL, and how do I upgrade?
Thanks,
Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: uri at speedy.net
Website: http://www.speedy.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110304/50a4f8d2/attachment.html>
More information about the Linux-il
mailing list