nachdem ich mir die Sucherergebnisse durchgelesen habe, sollte die Einrichtung von Subdomains auf einem (Debian-ohne-Confixx) Rootie ueber entsprechende name-based virtual hosts funktionieren.
Folgende virthost.conf habe ich erstellt:
Code: Select all
NameVirtualHost 217.160.170.134
##VirtualHost for HTTP/1.0 client requests
##HTTP/1.0 clients do not send the correct Host: header
##and Apache has no clue what vhost the client tried to
##reach (and would serve the request from the primary vhost).
##As we don`t want clients to see that our customers sites are
##hosted on the same server as the first VirtualHost, we
##put this dummy VirtualHost first, which only delivers a
##HTTP/1.0 error message.
##
##This host will also be used if someone enters just the IP-address
<VirtualHost 217.160.170.134>
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/www/sites/default
mod_gzip_on Yes
<Directory "/var/www/sites/default">
Options +FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache/default-error_log
CustomLog /var/log/apache/default-access_log common
</VirtualHost>
##SSL-VirtualHost
##the VirtualHost for SSL-Access to PHPMyAdmin
<VirtualHost 217.160.170.134:443>
SSLEngine on
ServerName www.unlimitedvision.de
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/www/sites/phpmyadmin
<Directory "/var/www/sites/phpmyadmin">
Options +FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
CustomLog /var/log/apache/PHPMyAdmin_ssl_access "%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i""
ErrorLog /var/log/apache/PHPMyAdmin_ssl_error
SSLCertificateKeyFile /etc/apache/conf/ssl.key/server.key
SSLCertificateFile /etc/apache/conf/ssl.crt/server.crt
</VirtualHost>
##OWNER-VirtualHost
##VirtualHosts of da Webmaster
<VirtualHost 217.160.170.134>
ServerName unlimitedvision.de
ServerAlias www.unlimitedvision.de
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/www/sites/unlimitedvision
mod_gzip_on Yes
<Directory "/var/www/sites/unlimitedvision">
Options +FollowSymLinks +Includes +MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
##Typo3 requires php safe_mode off
php_admin_flag safe_mode Off
</Directory>
ErrorLog /var/log/apache/unlimitedvision.de-error_log
CustomLog /var/log/apache/unlimitedvision.de-access_log common
</VirtualHost>
<VirtualHost 217.160.170.134>
ServerName www.euregioklettern.de
ServerAlias www.euregioklettern.de *.euregioklettern.de
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/www/sites/euregioklettern
<Directory "/var/www/sites/euregioklettern">
Options +FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache/euregioklettern.de-error_log
CustomLog /var/log/apache/euregioklettern.de-access_log common
</VirtualHost>
##CUSTOMER-VirtualHost
##VirtualHosts of the customers
##DEV-VirtualHost
##VirtualHosts for development
##typo3-Demoserver
<VirtualHost 217.160.170.134>
ServerName typo3.unlimitedvision.de
ServerAlias www.typo3.unlimitedvision.de
DirectoryIndex index.php index.htm index.html
DocumentRoot /var/www/sites/typo3demoserver
mod_gzip_on Yes
<Directory "/var/www/sites/typo3demoserver">
Options +FollowSymLinks +Includes +MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
##Typo3 requires php safe_mode off
php_admin_flag safe_mode Off
</Directory>
ErrorLog /var/log/apache/typo3demoserver.de-error_log
CustomLog /var/log/apache/typo3demoserver.de-access_log common
</VirtualHost>
Kann mir jemand sagen, wie ich es hinbekomme, das bei Eingabe von "typo3.unlimitedvision.de" oder "www.typo3.unlimitedvision.de" der letzte vhost angesprochen wird?
Ausserdem wundert es mich, dass bei Eingabe von http://unlimitedvision.de der erste vhost angesprochen wird (default) und nicht der fuer unlimitedvision mit "ServerName unlimitedvision.de".
Danke und Ciao,
Sacha