First: I am pretty new to Linux/Apache
My 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 [email protected]
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.de
sites-available/forum.conf: ServerName forum.lumix-transporte.de
sites-available/forum.conf: ServerAdmin [email protected]
sites-enabled/forum.conf: ServerName forum.lumix-transporte.de
sites-enabled/forum.conf: ServerAdmin [email protected]
sites-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.