Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php,comp.infosystems.www.servers.unix,alt.apache.configuration Subject: Re: HTTP headers and header() Followup-To: alt.apache.configuration Date: Sat, 14 Jan 2012 08:51:53 +0100 Lines: 22 Message-ID: <9ncqgpFna8U1@mid.individual.net> References: <4F10DCFB.1060001@arnowelzel.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net sK3PhgF2eg6c5JHEZv/VBg/F23q5zX5nU6/5O4LAgFC+FWaeTP Cancel-Lock: sha1:Fbs6zRiXbEibTi2dSGxZPgfkTXc= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20111226 Firefox/9.0.1 SeaMonkey/2.6.1 In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4458 comp.infosystems.www.servers.unix:57 Sandman wrote: > 2. Use VirtualHosts which does not change the location bar. But with > this solution, vanity.user.com/user resolves to example.com/user. > Which is not really what I wanted. Thenk yo haven't set up the virtualhost correctly, instead of redirecting with mod_rewrite, you set the documentroot to the actual directory which is the same as it would have been for example.com/user. If the directory depends on a CMS, then you need to employ the usage of mod_proxy in the virtualhost, which fetches the files from example.com/user. In both these cases the domain will be kept as the original one which the visitor typed in the browser. Did set the follow up to alt.apache.configuration as that is the newsgroup where this thread should have been all the time. -- //Aho