You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tao Yaoning <yo...@gmail.com> on 2006/06/07 14:33:41 UTC

[users@httpd] Re: question about URL displaying

Anybody knows?

On 5/26/06, Tao Yaoning <yo...@gmail.com> wrote:
>
>  Hello Guys
>
> I have two apache servers. ServerA has a public Domain Name my.domain.com,
> and ServerB only have a public IP 2xx.2xx.2xx.2xx.
>
> SeverA hosts my company website, can be accessed by using
> http://my.domain.com, ServerB hosts all users private website, can be
> accessed by using http://2xx.2xx.2xx.2xx/~username
>
> Because remember IP address is so annoyed for users, and they want to
> access their private website by using http://my.domain.com/username .
>
> On ServerA, I configured redirect
>
> Redirect    /username            http://2xx.2xx.2xx.2xx/~username
>
> It works fine, and users can access their private website properly. But in
> their address bar, it displays http://2xx.2xx.2xx.2xx/~username.
> I hope it can only display as http://my.domain.com/username in address
> bar. Is it possible? If yes, anybody can tell me how to configure it.
>
> Thanks very much
>
> Yaoning
>



-- 
looking for Network Adminstrator Position

Re: [users@httpd] Re: question about URL displaying

Posted by Dmitri Colebatch <di...@colebatch.com>.
I think you want ReWrite instead of Redirect.  redirect sends a 302 to
the browser and so the browser displays the new address.  Have a look
at the rewrite docs and see if they help you.

cheers
dim

On 6/7/06, Tao Yaoning <yo...@gmail.com> wrote:
> Anybody knows?
>
>
> On 5/26/06, Tao Yaoning <yo...@gmail.com> wrote:
> >
> >
> > Hello Guys
> >
> > I have two apache servers. ServerA has a public Domain Name my.domain.com
> , and ServerB only have a public IP 2xx.2xx.2xx.2xx.
> >
> > SeverA hosts my company website, can be accessed by using
> http://my.domain.com , ServerB hosts all users private website, can be
> accessed by using http://2xx.2xx.2xx.2xx/~username
> >
> > Because remember IP address is so annoyed for users, and they want to
> access their private website by using http://my.domain.com/username .
> >
> > On ServerA, I configured redirect
> >
> > Redirect    /username
> http://2xx.2xx.2xx.2xx/~username
> > It works fine, and users can access their private website properly. But in
> their address bar, it displays
> http://2xx.2xx.2xx.2xx/~username.
> > I hope it can only display as http://my.domain.com/username in address
> bar. Is it possible? If yes, anybody can tell me how to configure it.
> >
> > Thanks very much
> >
> >
> > Yaoning
>
>
>
> --
> looking for Network Adminstrator Position

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org