Hey ich möchte gerne einen Test-Bereich auf meinem Server einrichten.
Leider funktioniert das nicht ganz.
Also testing.example.com lässst sich im Browser nicht aufrufen.
Fehlermeldungen bekomme ich aber keine.
Hier meine httpd.conf vpm Apache 2.2.14:
HostnameLookups off
KeepAliveTimeout 15
ServerSignature Off
NameVirtualHost ip:80
<VirtualHost ip:80>
ServerName example.com
ServerAlias example.com
DocumentRoot /var/www
<Directory "/var/www">
Options Indexes -FollowSymLinks +SymLinksIfOwnerMatch Includes ExecCGI
Rechte
AllowOverride FileInfo
Order deny,allow
Allow from all
# Kodierung
AddCharset utf-8 .css .php .js .html
AddDefaultCharset utf-8
RewriteEngine On
DirectoryIndex index.php
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</Directory>
</VirtualHost>
<VirtualHost ip:80>
ServerAdmin info@example.com
ServerName testing.example.com
DocumentRoot /var/www/testing
#ErrorLog logs/testing.example.com-error_log
#CustomLog logs/testing.example.com-access_log common
<Directory "/var/www/testing">
Options Indexes -FollowSymLinks +SymLinksIfOwnerMatch Includes ExecCGI
Rechte
AllowOverride FileInfo
Order deny,allow
Allow from all
# Kodierung
AddCharset utf-8 .css .php .js .html
AddDefaultCharset utf-8
RewriteEngine On
DirectoryIndex index.php
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php [L]
</Directory>
</VirtualHost>
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
DirectoryIndex index.php index.html
</Directory>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
AddType application/x-httpd-php .php .phtml .php3 .htm .html
<Location />
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \
.(?:gif|jpe?g|png)$ no-gzip dont-vary
</Location>
DeflateFilterNote ratio
DeflateCompressionLevel 6
Woran kann das liegen?
Lg, lolofa