Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #4458

Re: HTTP headers and header()

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php, comp.infosystems.www.servers.unix, alt.apache.configuration
Subject Re: HTTP headers and header()
Followup-To alt.apache.configuration
Date 2012-01-14 08:51 +0100
Message-ID <9ncqgpFna8U1@mid.individual.net> (permalink)
References <d16b12f4-efb0-46e7-a585-a4c143c33818@a8g2000pbi.googlegroups.com> <4F10DCFB.1060001@arnowelzel.de> <ec34c218-e4ec-4411-992e-3cc4ab07d401@lc6g2000pbb.googlegroups.com>

Cross-posted to 3 groups.

Followups directed to: alt.apache.configuration

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

HTTP headers and header() Sandman <enjoylife_95135@hotmail.com> - 2012-01-13 12:47 -0800
  Re: HTTP headers and header() The Natural Philosopher <tnp@invalid.invalid> - 2012-01-13 22:07 +0000
  Re: HTTP headers and header() "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-13 23:32 +0100
    Re: HTTP headers and header() "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-13 23:33 +0100
  Re: HTTP headers and header() Arno Welzel <usenet@arnowelzel.de> - 2012-01-14 02:40 +0100
    Re: HTTP headers and header() Sandman <enjoylife_95135@hotmail.com> - 2012-01-13 18:58 -0800
      Re: HTTP headers and header() "J.O. Aho" <user@example.net> - 2012-01-14 08:51 +0100
      Re: HTTP headers and header() Arno Welzel <usenet@arnowelzel.de> - 2012-01-14 10:37 +0100
      Re: HTTP headers and header() The Natural Philosopher <tnp@invalid.invalid> - 2012-01-14 11:09 +0000
  Re: HTTP headers and header() Jonathan Stein <jstein@image.dk> - 2012-01-14 15:26 +0100
  Re: HTTP headers and header() "Miquel van Smoorenburg" <miquels@netscum.invalid> - 2012-01-20 15:34 +0000

csiph-web