[TYPO3-german] Dynamische Domains mit RealURL z.B. http://fe_username.domain.de
Christoph Koch
chr.koch at online.ms
Sun Jun 8 20:13:22 CEST 2008
Hallo Jochen,
am Sonntag, 8. Juni 2008 um 19:26 schriebst Du:
>> RealURL userabhängige URLs wie z.B. http://fe_username.domain.de
> weiß ich nicht - sollte sich dies nicht mit mod_rewrite (sofern Du einen
> Apache als Server hast) lösen lassen?
Dieses Beispiel aus den Apache-Docs dürfte sich doch irgendwie dafür
umbauen lassen:
,----- [ http://httpd.apache.org/docs/2.2/rewrite/rewrite_guide.html#uservhosts ]
| Virtual User Hosts
|
| Description:
|
| Assume that you want to provide www.username.host.domain.com for the
| homepage of username via just DNS A records to the same machine and
| without any virtualhosts on this machine.
|
| Solution:
|
| For HTTP/1.0 requests there is no solution, but for HTTP/1.1
| requests which contain a Host: HTTP header we can use the following
| ruleset to rewrite http://www.username.host.com/anypath internally to
| /home/username/anypath:
|
| RewriteEngine on
| RewriteCond %{HTTP_HOST} ^www\.[^.]+\.host\.com$
| RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
| RewriteRule ^www\.([^.]+)\.host\.com(.*) /home/$1$2
|
`-----
--
Viele Grüße,
Christoph
More information about the TYPO3-german
mailing list