wie richte ich für den vhost "cc1.tld" eine catch all subdomain oder ein redirect ein, sodass alle subdomain-Aufrufe auf DocumentRoot landen?
Meine hosts enthält
192.168.0.111 cc1.tld www.cc1.tld
meine httpd-vhosts.conf (included in httpd.conf):
- Code: Select all
<Directory "D:/www/htdocs">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost 127.0.0.1>
DocumentRoot "D:/www/htdocs"
ServerName localhost
ErrorLog "D:/www/localhost_error.log"
CustomLog "D:/www/localhost_access.log" combined
</VirtualHost>
NameVirtualHost cc1.tld:80
<VirtualHost cc1.tld:80>
DocumentRoot "D:/www/htdocs/cc"
ServerName cc1.tld:80
ServerAlias www.cc1.tld
ServerAdmin admin@localhost
ErrorLog "D:/www/htdocs/cc/cc1_error.log"
CustomLog "D:/www/htdocs/cc/cc1_access.log" combined
</VirtualHost>
NameVirtualHost cc1.tld:443
<VirtualHost cc1.tld:443>
DocumentRoot "D:/www/htdocs/cc"
ServerName cc1.tld:443
ServerAlias www.cc1.tld
ServerAdmin admin@localhost
ErrorLog "D:/www/htdocs/cc/cc1_error.log"
<IfModule log_config_module>
CustomLog "D:/www/htdocs/cc/cc1_access.log" combined
</IfModule>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key
<FilesMatch "\.(cgi|shtml|phtml|php|php5|php4|php3)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "C:/xampp/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
<IfModule setenvif_module>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfModule>
<IfModule log_config_module>
CustomLog logs/ssl_request.log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</IfModule>
</VirtualHost>
[...]
wenn ich nun cc1.tld unter http:// oder https:// aufrufe, funzt die Anzeige der index.php in DocumentRoot.
Ich möchte nun erreichen, dass
bla.cc1.tld
ebenfalls unter http:// oder https:// zur Anzeige der index.php in DocumentRoot führt oder durch .htaccess in DocumentRoot entsprechend "rewrited" wird etwa zu
http://www.cc1.tld/de/subdomains.php?sub=bla.
Kennt sich jemand damit aus?
Ich bin kein Server-Experte (wie man sieht) und werde noch waaahnsinnig
Gruß
inco