Sample Header Ad - 728x90

Apache2 vHost Problem: subdomain isn't working right

1 vote
2 answers
885 views
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: ServerName forum.lumix-transporte.de ServerAdmin admin@lumix-transporte.de DocumentRoot /var/www/forum Options Indexes FollowSymLinks MultiViews AllowOverride All 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: ServerAdmin webmaster@localhost DocumentRoot /var/www Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all 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 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 admin@lumix-transporte.de sites-enabled/forum.conf: ServerName forum.lumix-transporte.de sites-enabled/forum.conf: ServerAdmin admin@lumix-transporte.de 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.
Asked by Splixz (15 rep)
Jun 14, 2015, 05:52 PM
Last activity: Aug 10, 2016, 01:01 PM