The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

domain redirecting users to https

Discussion in 'General Discussion' started by almecho, Aug 5, 2008.

  1. almecho

    almecho Member

    Joined:
    Feb 6, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    I've got a problem on a newly configured server running php 5.2.6 in DSO mode with Apache 2.2

    What happens is when you go to the site http://www.websnork.com and use the surf box to browse out to another site, when you click surf the browser is being automatically redirected to the https:// version of the site rather than staying at http://

    It's strange as it's not the script or site doing it as it works fine on another server, and different scripts on this server are all behaving the same way.

    Is there any reason why it would be redirecting users to https:// ?
     
  2. almecho

    almecho Member

    Joined:
    Feb 6, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    Okay, now this is even stranger. I've done some further testing on this and if I switch the php configuration to use either cgi or suphp it works fine and the site stays on http://

    If I then switch it back to use php as a DSO then it tries to redirect the user to https:// instead...

    So it would seem that it's possibly a bug with php itself or the cpanel implementation of php as a DSO ?
     
    #2 almecho, Aug 5, 2008
    Last edited: Aug 5, 2008
  3. koolcards

    koolcards Well-Known Member

    Joined:
    Oct 8, 2003
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Tampa, Fl
    Following your instructions, when I use the "Surf" box to visit "yahoo.com", it works fine . :eek:
    might be something stored in your browser
     
  4. almecho

    almecho Member

    Joined:
    Feb 6, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    actually i accidentally left it switched over to php4 as the problem isn't present then.

    I've got a feeling it could be something quirky in php 5.2.6 as I've got it back on 5.2.5 now and it seems to be fine again, but I'm still experimenting with different build options as I stripped it right back to absolute bare bones.

    Seeing if I can reproduce the fault again now...
     
  5. almecho

    almecho Member

    Joined:
    Feb 6, 2005
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    0
    still having problems with this... i rebuilt apache again last night and at first it was fine, but checked it later on and it was redirecting to https again on doing the form post and the 302 redirect from the php script, which it isn't supposed to do. restarted apache and all was fine again...

    i've just checked it again now and it's redirecting to https again, but i did get an email from the server today with one of the standard errors...

    "httpd failed @ Tue Aug 19 21:01:41 2008. A restart was attempted automagically.

    Failure Reason: Timeout while trying to get data from service"

    the same thing happened before the first time it failed, so it's fine until something is happening in apache, and then it falls over... it's obviously not a simple setting but something obscure, and it's not getting any better...

    could really use a hand on this one as very shortly i'll be driving 100,000+ page views a day through this server.
     
Loading...

Share This Page