Page 1 of 1

.htacces in httpd.conf übernehmen

Posted: 2006-12-21 12:11
by indy0130
Hallo liebes Forum,

bräuchte mal Hilfe zur Konfiguration meines neuen Apaches.

Ich möchte meine gute alte .htaccess-Datei nun endlich in die httpd.conf aus Performance-Gründen übernehmen.

.htaccess:

Code: Select all

RewriteEngine on
# Username
RewriteRule ^([a-z0-9_-]+)$ /index_start.php?name=$1 [L]
und das soll nun hier rein:

httpd.conf

Code: Select all

<Directory /var/www>
AllowOverride FileInfo
Options +FollowSymLinks
RewriteEngine On
# Username
RewriteRule ^([a-z0-9_-]+)$ /var/www/index_start.php?name=$1 [L]
</Directory>
Und die Fehlermeldung:
Syntax error on line 21 of /etc/apache2/sites-enabled/000-default:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
httpd not running, trying to start
Danke für die Hilfe...

Mirco

Re: .htacces in httpd.conf übernehmen

Posted: 2006-12-21 12:38
by Roger Wilco

Code: Select all

a2enmod rewrite

Re: .htacces in httpd.conf übernehmen

Posted: 2006-12-21 12:45
by indy0130
anstelle von rewriteengine on?

Re: .htacces in httpd.conf übernehmen

Posted: 2006-12-21 12:54
by Roger Wilco
indy0130 wrote:anstelle von rewriteengine on?
Nein.

Re: .htacces in httpd.conf übernehmen

Posted: 2006-12-25 15:05
by indy0130
Gut, was soll ich nun machen? :)
Google liefert mir nur Mist...

Nebenbei: Frohe Weihnachten!

Code: Select all

Syntax error on line 5 of /etc/apache2/sites-enabled/000-default:
Invalid command 'a2enmod', perhaps misspelled or defined by a module not included in the server configuration
httpd not running, trying to start

Re: .htacces in httpd.conf übernehmen

Posted: 2006-12-25 16:44
by mad cow
Roger Wilco wrote:

Code: Select all

a2enmod rewrite
Du sollst das nicht in die Datei packen, sondern den Befehl in der Konsole eingeben. :wink: