.htaccess files on apache2 + MySQL

.htaccess files on apache2 + MySQL

Uri Even-Chen uri at speedy.net
Fri Mar 4 18:50:46 IST 2011


Oops. I found a bug and fixed it. I replaced "require admin" with "require
user admin" and it works now. I still have a problem with the second problem
- http://www.speedy2000.net/uri/en not working.

Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: uri at speedy.net
Website: http://www.speedy.net/




On Fri, Mar 4, 2011 at 18:40, Uri Even-Chen <uri at speedy.net> wrote:

> OK, I setup file /etc/apache2/sites-available/default , but it's still
> not working. I can't log into /admin , and
> http://www.speedy2000.net/uri/en is "Not Found / The requested URL
> /uri/en was not found on this server.". I used
> http://www.htmlite.com/HTA006a.php to create admin password (without
> salt), what is the problem? And why does
> http://www.speedy2000.net/uri/en not redirect to
> http://www.speedy2000.net/uri/ ? here are the contents of
> /etc/apache2/sites-available/default :
>
> -- begin --
> <VirtualHost *:80>
>        ServerAdmin webmaster at speedy.net
>
>        DocumentRoot /var/www
>        <Directory />
>                Options FollowSymLinks
>                AllowOverride None
>        </Directory>
>        <Directory /var/www/>
>                Options Indexes FollowSymLinks MultiViews
>                AllowOverride None
>                Order allow,deny
>                allow from all
>        </Directory>
>        <Directory /var/www/admin/>
>                 AuthUserFile /etc/apache2/users/.htpasswd
>                AuthGroupFile /dev/null
>                AuthName "Protected Area"
>                AuthType Basic
>
>                <LIMIT GET POST>
>                require admin
>                </LIMIT>
>         </Directory>
>        <Directory /var/www/uri/>
>                 <IfModule mod_rewrite.c>
>                RewriteEngine On
>                RewriteBase /uri/
>                RewriteCond %{REQUEST_FILENAME} !-f
>                RewriteCond %{REQUEST_FILENAME} !-d
>                RewriteRule . /uri/index.php [L]
>                </IfModule>
>         </Directory>
>        <Directory /var/www/composer/>
>                 <IfModule mod_rewrite.c>
>                RewriteEngine On
>                 RewriteBase /composer/
>                 RewriteCond %{REQUEST_FILENAME} !-f
>                RewriteCond %{REQUEST_FILENAME} !-d
>                 RewriteRule . /composer/index.php [L]
>                </IfModule>
>        </Directory>
>
>        ErrorLog /var/log/apache2/error.log
>
>        # Possible values include: debug, info, notice, warn, error, crit,
>        # alert, emerg.
>        LogLevel warn
>
>        CustomLog /var/log/apache2/access.log combined
>
> </VirtualHost>
> -- end --
>
> 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/87bad1d6/attachment.html>


More information about the Linux-il mailing list