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: [email protected]
Website: http://www.speedy.net/




On Fri, Mar 4, 2011 at 18:40, Uri Even-Chen <[email protected]> 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 [email protected]
>
>        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: [email protected]
> Website: http://www.speedy.net/
>
_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to