Page 1 of 1

apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 13:41
by mpl
hi ich habe ein problem ich nutze apache 2.2.3 und hab vhosts angeldet blos die funktionieren nicht die leiten nicht dahin wo ich will

Code: Select all

NameVirtualHost *
<VirtualHost *>
	ServerAdmin mpl1337@gmail.com
	
	DocumentRoot /var/www/
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/>
		Options -Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
		# This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</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
	ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

<VirtualHost *>
   ServerName domain2.de
   DocumentRoot /var/www/mpl/
</VirtualHost> 


wenn ich domain2 aufrufe bekomme ich nur

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at domain2.de Port 80
habt ihr nen rat was ich falsch gemacht habe?

danke für eure hilfe

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 13:42
by oxygen
Was du falsch gemacht hast, steht im error_log.

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 13:47
by mpl
hmm ich logge aber nix die logs werden alle 4sec gelöscht -.- dann muss ich mal mein cronjob abstellen und guggn^^ glei kommt mehr


edit:


[Wed May 30 13:49:12 2007] [alert] [client 84.163.25.236] /var/www/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration



geht wieder hab den htaccess kram entfernt brauche das nicht...

thx xD

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 13:54
by datafreak
Welches Distribution verwendest du?

Schau dir mal die "/etc/sysconfig/apache2" an, dort solltest du testweise "rewrite" entfernen.

MFG
Datafreak

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 15:25
by elch_mg
Was muss man geraucht haben, um per Cronjob alle 4 Sekunden Logs löschen zu wollen???

Achja, und wie geht das per Cronjob? Kleinstes Interval ist minütlich...

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 23:10
by mpl
ne meine per screen

Code: Select all

#!/bin/bash
cd /root
while /bin/true
do
echo "Delete" > /var/log/apache2/access.log
echo "Delete" > /var/log/apache2/error.log
sleep 4;
done 

falls es wer braucht^^

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 23:15
by Joe User
Wenn man die Logs nicht benötigt, leitet man diese nach /dev/null um!
Mit anderen Worten: Deine "Lösung" ist unnötig ressourcenfressend und somit Müll...

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-30 23:16
by oxygen
Wozu soll das gut sein? las doch einfach keine Logs erstellen wenn es dich stört.

Re: apache 2.2.3 vhosts funktionieren nicht

Posted: 2007-05-31 10:15
by elch_mg
You made my day.... *umkippt*