[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache (was Apace) Redirect Question



did you link the sites in sites-available to sites-enabled?

Wolf Halton
http://sourcefreedom.com
Apache developer:
wolfhalton@apache.org

On Nov 4, 2012 6:45 PM, <craig@gtek.biz> wrote:
On Saturday, November 3, 2012 19:38, "mouss" <mouss@ml.netoyen.net> said:

> Le 03/11/2012 13:31, craig@gtek.biz a écrit :
>>
>> [snip]
>> I know I've entered URL's into my browser's navigation bar and watched them
>> change to something else, such as entering http://example.com and being
>> redirected to http://www.example.com, with that URL then populating the
>> navigation bar. So I'm close in that both requests return the file that I
>> want returned, but I don't know how to have the URL change so the user sees
>> the URL I want them to see.
>>
>> So I guess what I'm asking is, how do I configure things so that the server
>> knows a request for domain1.com should be handled as if it were a request for
>> www.domain1.com, and sends the client to that URL?
>>
>
> in domain1.com vhost config:
>
> redirect permanent / http://www.domain1.com/
>
>
> source:
>       http://httpd.apache.org/docs/2.2/en/mod/mod_alias.html#redirect

Hi mouss,

Unfortunately, if I leave the "ServerAlias domain1.com" line out of the
sites-available/domain1.com file, all requests for http://domain1.com result
in a 404 error, with or without this redirect. If I put that line in the
file then this redirect results in an error page that states something to
the effect of "Icedove has detected that this page is being redirected in
a manner that will never complete."


Sent - Gtek Web Mail



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1352072715.965918418@webmail.gtek.biz" target="_blank">http://lists.debian.org/1352072715.965918418@webmail.gtek.biz


Reply to: