Also habs jetzt so :
sites-enabled
Code:
NameVirtualHost *
<Directory />
Options FollowSymLinks
AllowOverride none
</Directory>
ServerTokens Prod
ServerSignature Off
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
LogLevel warn
<VirtualHost *>
ServerName http://domain
ServerAlias domain
DocumentRoot /var/www/xyz
<Directory /var/www/xyz/>
AllowOverride all
</Directory>
</VirtualHost>
und
sites-available
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/xyz/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/xyz/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</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
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>
restarten des apache funzt auch.
doch wenn ich dan . dieurl.endung
eingebe zeigt er mir die index an (aber nur das logo und drunter info. das navi links und den rest zeigt er nicht an)
und wenn ich : dieurl.endung/xyz eingebe zeigt er mit an :
Code:
Not Found
The requested URL /xyz/ was not found on this server.
und wenn ich dieurl.endung/xyz/index.php eingebe zeigt er mir an :
Code:
Not Found
The requested URL /xyz/index.php was not found on this server.
und das bei jeder seite.
(viel. bin ich grad echt zu blöd dafür)(wenn ja bitte Entschuldige)