Re: url redirect in Apache

This is a discussion on Re: url redirect in Apache within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi Davide I have tryed this: <VirtualHost 192.168.3.10> DocumentRoot .../site ServerName www.a-a.com ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-04-2004
Tolstrup
 
Posts: n/a
Default Re: url redirect in Apache


Hi Davide

I have tryed this:

<VirtualHost 192.168.3.10>
DocumentRoot .../site
ServerName www.a-a.com
ServerAlias www.aa.com a-a.com www.a-a.com
CustomLog "| ......
....
....
</VirtualHost>

as you so kind surgested.

But it does not work. I still get the default errorpage from the
HTTP-server, and the url is still www.aa.com.

Please advise on what to do...

Regards
brian Tolstrup



--
Tolstrup
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message249739.html

  #2 (permalink)  
Old 06-04-2004
HansH
 
Posts: n/a
Default Re: url redirect in Apache

"Tolstrup" <Tolstrup.17ciz0@mail.webservertalk.com> schreef in bericht
news:Tolstrup.17ciz0@mail.webservertalk.com...
> <VirtualHost 192.168.3.10>
> DocumentRoot .../site
> ServerName www.a-a.com
> ServerAlias www.aa.com a-a.com www.a-a.com
> CustomLog "| ......
> ...
> ...
> </VirtualHost>

http://httpd.apache.org/docs-2.0/mod...ml#serveralias
"The ServerAlias directive sets the alternate names for a host, for use with
/name-base virtual hosts/"

I'ld prefer to redirect these aliasses to the true domain; at least safes
you from (failing) cross-domain cookies.

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0