Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Multiple redirects on login link --new install--

    I just got my virtual host to work on apache, and tested that completely before installing Zencart. I have three sites that are being hosted on this box, one dot com, one dot net, one dot org. I have phpBB sitting in the org site, and my main HTML sites on the net site, with the net site being the default. The only bleed over between sites I see is when an error page is served. The org site works, and my Zen lives in the dot com world on my server. The install went smooth, everything else looks good as well. I checked the permissions, searched the forum, tried the SSL=false in the admin area, checked tcpdump, checked and rechecked the vhost set up, and finally did a few curls on the box, and found a few chunks of problems, which is rather amusing. The curl output is:

    [SRC]Thu Dec 11-10:30:06-root@haruhi:includes> curl -k https://www.tsukinokage.com/store/in...ain_page=login
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>302 Found</title>
    </head><body>
    <h1>Found</h1>
    <p>The document has moved <a href="https://www.tsukinokage.com/store/index.php/?main_page=login">here</a>.</p>
    </body></html>
    Thu Dec 11-10:30:13-root@haruhi:includes> curl -k https://www.tsukinokage.com/store/in...ain_page=login
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>302 Found</title>
    </head><body>
    <h1>Found</h1>
    <p>The document has moved <a href="http://www.tsukinokage.net/defaults/404.html">here</a>.</p>
    </body></html>[/SRC]

    As you can see, there is a bungled URI being sent back for the redirect, that ends up in the 404 error page I have set up:
    [SRC]https://www.tsukinokage.com/store/index.php/?main_page=login[/SRC]


    So far this has been the only thing I have noticed. I don't have the site really populated yet, so my troubleshooting is limited to the admin site right now. I would like to start the admin of the site before building it up more, so I don't lose that much if I decide to trash it and start from unzip.

  2. #2
    Join Date
    May 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    Your were mentioning that your problem is with the admin page, but your curl request was to the front end of the store (the customer login page). So I assume that is the problem page, or both that and the admin page?

    Also, it seems your server isn't responding, at least publicly.

  3. #3
    Join Date
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    I apologize, the problem is with the customer login portion. As well, currently the site isn't publicly accessible. The proxy that sites in front of the site is offline so I am stuck with no external access. I have access to the admin page (now) but that link is still broken.

  4. #4
    Join Date
    May 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    What happens when you https any portion of your site? Say https://www.tsukinokage.com? Does that work?

  5. #5
    Join Date
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    It works perfectly. SSL shows my .com site SSL cert. Now, when I go to https://www.tsukinokage.net/store/ it dies as demonstrated above. It seems the site is broken only with SSL. I just realized that as well, is why I was able to get into the admin page, is because I turned off ssl on it.

  6. #6
    Join Date
    May 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    In includes/configure.php you do have these set appropriately right?

    define('HTTPS_SERVER', ' https://www.tsukinokage.net/store');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'true');

  7. #7
    Join Date
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    I don't have those set like that because for the define('HTTPS_SERVER' section, if I set it to https://www.tsukinokage.com/store/ it breaks the stylesheets, and nothing seems to work right, and the ssl enabled ends up getting a 404 error all the time. Even going to the store section itself. the VirtualServer for the SSL section is set up properly and works for everything else but the store directory.

  8. #8
    Join Date
    May 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    Sorry, actually in your case both of these:
    define('DIR_WS_CATALOG', 'store/');
    define('DIR_WS_HTTPS_CATALOG', 'store/');

    should be set to store, not HTTPS_SERVER

  9. #9
    Join Date
    Dec 2008
    Posts
    8
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    Ok, due to it being broken SSL is off on this, but here is the config for this currently(DB section removed):

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://www.tsukinokage.com');
    define('HTTPS_SERVER', 'https://www.tsukinokage.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/store/');
    define('DIR_WS_HTTPS_CATALOG', '/store/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'file');
    define('DIR_FS_SQL_CACHE', '/var/www/commercial/store/cache');

  10. #10
    Join Date
    May 2007
    Posts
    99
    Plugin Contributions
    0

    Default Re: Multiple redirects on login link --new install--

    I assume your setting it to true before a test?

    Is it possible for you to make the site public for a short time?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Can't login to admin after upgrade; can login with new install
    By dietcokelemon in forum Upgrading to 1.5.x
    Replies: 14
    Last Post: 9 Feb 2014, 05:16 PM
  2. v151 New Install Login Issues
    By jhutson456 in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2013, 06:26 AM
  3. v139h Admin login redirects to customers login
    By jolion in forum General Questions
    Replies: 4
    Last Post: 24 Aug 2012, 07:27 AM
  4. Admin Login page redirects to itself - can't login
    By fxchain in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 14 Jul 2009, 07:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR