You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mukarram Syed <mu...@yahoo.com> on 2005/10/17 23:09:41 UTC

[users@httpd] Redirecting limit for this URL exceeded.

Hi, 
I am sure this question has been raised before, but I
am not able to find an answer specific to my problem.
On the Test box, in the httpd.conf file I am
successfully able to do the following:

<VirtualHost *:80>
ServerName pan.eci.mgn-us.net
Redirect / http://staging.esalton.com/
</VirtualHost>

This works.  I can go to http://pan.eci.mgn-us.net/
and it will redirect it to http://staging.esalton.com/

What I am not able to do is on Production:

<VirtualHost *:80>
ServerName esalton.com
ServerAlias www.esalton.com
Redirect / http://www.esalton.com/
</VirtualHost>

Also on Test, the ssl.conf file does not work.
I would like to redirect https://pan.eci.mgn-us.net/
to https://staging.esalton.com/

Can anyone help?

I have tried 
RedirectMatch ^/$ http://staging.esalton.com/
which does not work as well.

Any ideas would be appreciated.

Thanks
-Mukarram.


Mukarram Syed
muksyed@yahoo.com


		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

---------------------------------------------------------------------
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


Re: [users@httpd] Redirecting limit for this URL exceeded.

Posted by Joshua Slive <js...@gmail.com>.
On 10/17/05, apache.org@donnacha.com <ap...@donnacha.com> wrote:
> To test it, I browsed to docmo.com which is pointed to my nameservers,
> ns1.cvfx.com and ns2.cvfx.com, but which has not been entered as a
> virtualhost entry on this server.

docmo.com does not resolve in DNS to an IP address.  This has nothing
to do with apache configuration and everything to do with your DNS.

> One question I have about doing this as a redirect is, will this remove
> my PHP page's ability to know what domain the user originally wanted?

Yes, if you redirect, the original hostname will be lost.

Joshua.

---------------------------------------------------------------------
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


Re: [users@httpd] Redirecting limit for this URL exceeded.

Posted by ap...@donnacha.com.
Joshua, thanks a lot.

I created an entry in that form and restarted Apache but, unfortunately,
it doesn't seem to work.

Here is what I exactly entered:

-----------
<VirtualHost *:80>
 ServerName cvfx.com
 Redirect / http://www.cvfx.com/
 </VirtualHost>
-----------

... and the existing entry for cvfx is as follows:

-----------
<VirtualHost 72.36.161.82>
ServerAlias www.cvfx.com
ServerAdmin webmaster@cvfx.com
DocumentRoot /home/cvfx/public_html
BytesLog domlogs/cvfx.com-bytes_log
ServerName www.cvfx.com

User cvfx
Group cvfx
CustomLog /usr/local/apache/domlogs/cvfx.com combined
ScriptAlias /cgi-bin/ /home/cvfx/public_html/cgi-bin/
</VirtualHost>
-----------

To test it, I browsed to docmo.com which is pointed to my nameservers,
ns1.cvfx.com and ns2.cvfx.com, but which has not been entered as a
virtualhost entry on this server.

Unfortunately, both "docmo.com" and "www.docmo.com" resulted in a Site
Not Found error. 

One question I have about doing this as a redirect is, will this remove
my PHP page's ability to know what domain the user originally wanted? 
That's a pretty important part of the service I want to offer.

I very much appreciate your help, thank you.

Donnacha



On Mon, 17 Oct 2005 17:54:04 -0400, "Joshua Slive" <js...@gmail.com>
said:
> On 10/17/05, Mukarram Syed <mu...@yahoo.com> wrote:
> > <VirtualHost *:80>
> > ServerName esalton.com
> > ServerAlias www.esalton.com
> > Redirect / http://www.esalton.com/
> > </VirtualHost>
> 
> This is our second redirect-loop question today.  This is a
> redirection loop because the redirected URL hits the same Redirect as
> the original URL.  You want.
> 
>  <VirtualHost *:80>
>  ServerName esalton.com
>  Redirect / http://www.esalton.com/
>  </VirtualHost>
> 
> <VirtualHost *:80>
>   ServerAlias www.esalton.com
>  DocumentRoot ...
> </VirtualHost>
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> 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
> 

---------------------------------------------------------------------
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


Re: [users@httpd] Redirecting limit for this URL exceeded.

Posted by Joshua Slive <js...@gmail.com>.
On 10/17/05, Mukarram Syed <mu...@yahoo.com> wrote:
> Thanks Joshua for your response...
>
> Having difficulty with the ssl.conf file as well:
> Redirecting https://pan.eci.mgn-us.net to
> https://staging.esalton.com
>
> I have tried the following in my research...
> Added the following lines to ssl.conf:
>
> <VirtualHost *:443>
> RewriteEngine On
> RewriteCond   %{SERVER_PORT}  !^443$
> RewriteRule ^/$ https://staging.esalton.com/ [L,R]
> </VirtualHost>

That makes no sense.  If you are in a <VirtualHost> on port 443, then
the port will always be 443.  What is the point of the RewriteCond?

Joshua.

---------------------------------------------------------------------
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


Re: [users@httpd] Redirecting limit for this URL exceeded.

Posted by Mukarram Syed <mu...@yahoo.com>.
Thanks Joshua for your response...

Having difficulty with the ssl.conf file as well: 
Redirecting https://pan.eci.mgn-us.net to
https://staging.esalton.com

I have tried the following in my research...
Added the following lines to ssl.conf:

<VirtualHost *:443>
RewriteEngine On
RewriteCond   %{SERVER_PORT}  !^443$
RewriteRule ^/$ https://staging.esalton.com/ [L,R]
</VirtualHost>

I also tried:
<VirtuaHost _default_:443>
ServerName pan.eci.mgn-us.net
ServerAlias staging.esalton.com
Redirect permanent / https://staging.esalton.com/
...
...
<\VirtualHost>

This does not work as well

Help is appreciated.

thanks in advance.
regards,
-Mukarram.

--- Joshua Slive <js...@gmail.com> wrote:

> On 10/17/05, Mukarram Syed <mu...@yahoo.com>
> wrote:
> > <VirtualHost *:80>
> > ServerName esalton.com
> > ServerAlias www.esalton.com
> > Redirect / http://www.esalton.com/
> > </VirtualHost>
> 
> This is our second redirect-loop question today. 
> This is a
> redirection loop because the redirected URL hits the
> same Redirect as
> the original URL.  You want.
> 
>  <VirtualHost *:80>
>  ServerName esalton.com
>  Redirect / http://www.esalton.com/
>  </VirtualHost>
> 
> <VirtualHost *:80>
>   ServerAlias www.esalton.com
>  DocumentRoot ...
> </VirtualHost>
> 
> Joshua.
> 
>
---------------------------------------------------------------------
> 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
> 
> 


Mukarram Syed
muksyed@yahoo.com


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
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


Re: [users@httpd] Redirecting limit for this URL exceeded.

Posted by Joshua Slive <js...@gmail.com>.
On 10/17/05, Mukarram Syed <mu...@yahoo.com> wrote:
> <VirtualHost *:80>
> ServerName esalton.com
> ServerAlias www.esalton.com
> Redirect / http://www.esalton.com/
> </VirtualHost>

This is our second redirect-loop question today.  This is a
redirection loop because the redirected URL hits the same Redirect as
the original URL.  You want.

 <VirtualHost *:80>
 ServerName esalton.com
 Redirect / http://www.esalton.com/
 </VirtualHost>

<VirtualHost *:80>
  ServerAlias www.esalton.com
 DocumentRoot ...
</VirtualHost>

Joshua.

---------------------------------------------------------------------
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