First: I am pretty new to Linux/ApacheMy problem: I am trying to acces my forum via the subdomain forum.lumix-transporte.de. Usually you can acess it with lumix-transporte.de/forum.My forum.conf file:<VirtualHost *:80>        ServerName forum.lumix-transporte.de        ServerAdmin admin@lumix-transporte.de        DocumentRoot /var/www/forum        <Directory /var/www/forum>                Options Indexes FollowSymLinks MultiViews                AllowOverride All        </Directory></VirtualHost>When I am trying to access the forum with forum.lumix-transporte.de I am being redirected lumix-transporte.de so to the default Apache2 page It works!. Also the Icon of the Software is shown in the Tab.default file in /etc/apache2/sites-available:<VirtualHost *:80>        ServerAdmin webmaster@localhost        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>        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 ${APACHE_LOG_DIR}/error.log        # Possible values include: debug, info, notice, warn, error, crit,        # alert, emerg.        LogLevel warn        CustomLog ${APACHE_LOG_DIR}/access.log combined</VirtualHost>After executing the 2 commands that were suggested by jacek.ciach 3:root@lumix-transporte:/etc/apache2# grep -R Redirect *root@lumix-transporte:/etc/apache2# grep -R lumix-transporte.de *sites-available/default:        ServerName lumix-transporte.desites-available/forum.conf:     ServerName forum.lumix-transporte.desites-available/forum.conf:     ServerAdmin admin@lumix-transporte.desites-enabled/forum.conf:       ServerName forum.lumix-transporte.desites-enabled/forum.conf:       ServerAdmin admin@lumix-transporte.desites-enabled/000-default:      ServerName lumix-transporte.de//After changing via phpmyadmin in the database wcf, the table wcf1_application and changing the domainpath from /forum to / and the domainname from lumix-transporte.de to forum.lumix-transporte.de it is finally working. Thank you jacek.ciach for saying that it may be caused by the forum itself. I found that after googling some more.
Apache2 vHost Problem: subdomain isn't working right
apache httpd;vhost
1st solutionCheck also the order in which your *.conf files are processed.If a .conf for *.lumix-transporte.de is ,,run'' before forum.conf and has a sort of redirection directive, then the forum.conf will never be even processed.So you can change the order (for example by changing the name of forum.conf to 000-forum.conf) or, what is better in my opinion, modify .conf for *.lumix-transporte.de in such a way, that it won't conflict with forum.conf (look at ServerName and ServerAlias for wildcards and check directives which may cause a redirect).2nd solutionIn default there's no ServerName, so when Apache processes default before forum.conf, then it sends to a client the website under /var/www.Add ServerName lumix-transporte.de (in <VirtualHost>) to default and restart Apache.3rd solutionIt seems, that the forum itself causes the redirection. (Check response header of http://forum.lumix-transporte.de/ with i.e. http://web-sniffer.net/ and you'll see...).