redirects only working for some virtual hosts

I am using Ubuntu 8.04 server LTS with Apache Server version: Apache/2.2.8 (Ubuntu) Some of my virtual servers redirect and some do not for each server i have added a A record in the Bind DNS server like this one.

mail.domain.com. IN A x.x.x.x

and a redirect virtual host as well

<VirtualHost 66.244.200.225:80>
ServerName mail.archesshoes.ca
Redirect permanent / https://mx1.canmail.org/
</VirtualHost>

Please help as i have been struggling with this problem for a long time and do not know what else to try for troubleshooting.

This functionality is required to setup an easy way for clients to remember there webmail interface

Computer King CaN-Mail Surveillance King
http://computerking.ca http://canmail.org http://surveillanceking.net

Surveillance - Sales Service - Hosting Backup
NEW!!! Internet Based Surveillance Systems
Custom Service Pac kages
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online Accounting Packages

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
RYAN vAN GINNEKEN [ Di, 26 Januar 2010 02:34 ] [ ID #2029896 ]

Re: redirects only working for some virtual hosts

Hi Ryan,

On Mon, 25 Jan 2010, RYAN vAN GINNEKEN wrote:

> <VirtualHost 66.244.200.225:80>
> ServerName mail.archesshoes.ca
> Redirect permanent / https://mx1.canmail.org/
> </VirtualHost>

It is a very BAD idea to share a https server IP with an IP on a
non-ssl http server (ideally, they should be two separate machines),
I suspect this is where it might be going haywire, if you have another
IP, put the secure server on that.

I just tried to hit it, and my DNS is not getting the instruction to
lookup canmail.

Did the logs show anything?

--
Res

"What does Windows have that Linux doesn't?" - One hell of a lot of bugs!

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Res [ Di, 26 Januar 2010 03:06 ] [ ID #2029897 ]

Re: redirects only working for some virtual hosts

----- Original Message -----
From: "Res" <res [at] ausics.net>
To: users [at] httpd.apache.org, "THE KING" <ryan [at] computerking.ca>
Sent: Monday, January 25, 2010 7:06:17 PM
Subject: Re: [users [at] httpd] redirects only working for some virtual hosts

Hi Ryan,

On Mon, 25 Jan 2010, RYAN vAN GINNEKEN wrote:

>> <VirtualHost 66.244.200.225:80>
>? ServerName mail.archesshoes.ca
>> Redirect permanent / https://mx1.canmail.org/
>? </VirtualHost>

>It is a very BAD idea to share a https server IP with an IP on a
>non-ssl http server (ideally, they should be two separate machines),

Not 2 different machines, but 2 different instances of Apache running.

>I suspect this is where it might be going haywire, if you have another
>IP, put the secure server on that.

hmmm I might do that, but would be a real hassle, for now i would like to keep things the way they are. Besides some virtual hosts are working fine!

>I just tried to hit it, and my DNS is not getting the instruction to
>lookup canmail.

not sure what you mean by that mx1.canmail.org right? DNS should be working ok

>Did the logs show anything?

nothing in any of the apache logs forget how to check the bind stuff just checking into that now.

--
Res

"What does Windows have that Linux doesn't?" - One hell of a lot of bugs!

Computer King CaN-Mail Surveillance King
http://computerking.ca http://canmail.org http://surveillanceking.net

Surveillance - Sales Service - Hosting Backup
NEW!!! Internet Based Surveillance Systems
Custom Service Pac kages
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online Accounting Packages

----- "Res" <res [at] ausics.net> wrote:

> Hi Ryan,
>
> On Mon, 25 Jan 2010, RYAN vAN GINNEKEN wrote:
>
> > <VirtualHost 66.244.200.225:80>
> > ServerName mail.archesshoes.ca
> > Redirect permanent / https://mx1.canmail.org/
> > </VirtualHost>
>
> It is a very BAD idea to share a https server IP with an IP on a
> non-ssl http server (ideally, they should be two separate machines),
> I suspect this is where it might be going haywire, if you have another
>
> IP, put the secure server on that.
>
> I just tried to hit it, and my DNS is not getting the instruction to
> lookup canmail.
>
> Did the logs show anything?
>
> --
> Res
>
> "What does Windows have that Linux doesn't?" - One hell of a lot of
> bugs!

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
RYAN vAN GINNEKEN [ Di, 26 Januar 2010 05:09 ] [ ID #2029899 ]

Re: redirects only working for some virtual hosts

On Tue, Jan 26, 2010 at 2:34 AM, RYAN vAN GINNEKEN <king [at] computerking.ca> wrote:

> Please help as i have been struggling with this problem for a long time and do not know what else to try for troubleshooting.

Are you sure that the requests are going to the virtualhost you expect
them to go to?


What is the output of httpd -S ?

Krist

--
krist.vanbesien [at] gmail.com
krist [at] vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

------------------------------------------------------------ ---------
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 [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Krist van Besien [ Mi, 27 Januar 2010 11:12 ] [ ID #2030133 ]
Webserver » gmane.comp.apache.user » redirects only working for some virtual hosts

Vorheriges Thema: Simplifying rewrite rules
Nächstes Thema: Re: Runaway Apache Process