I know there is plenty of documentation about this, but my problem is different.
I have 2 websites (subdomains) running on one apache2 server.
Site 1 is working fine, site 2 is somehow linked to the apache2 directory /var/www
so when I enter Page 1 I see my page. Page 2 shows me the Apache2 text :
It works! This is the default web page for this server. The web server software is running but no content has been added, yet.
SO somewhere the link is setup wrong.
Is apache2 only listening to the pages which are in sites-enabled, or is there something more ?
Because on Sites-enabled I just have these 2 pages and NOT 1 link to /var/www
Do I have to setup the different hostnames somewhere else as well ?
thanks in advance.
THIS ONE IS NOT WORKING :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/notworking/
ServerName notworking.working.de
RewriteEngine on
<Directory /var/www/notworking/>
RailsBaseURI /notworking
PassengerResolveSymlinksInDocumentRoot on
</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
</VirtualHost>
THIS ONE IS WORKING
<VirtualHost *:80>
ServerName working.working1.de
DocumentRoot /data/working/www/
<Directory /data/working/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>