.htaccess files on apache2 + MySQL

.htaccess files on apache2 + MySQL

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


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/



More information about the Linux-il mailing list