(Jan 22) Release 0.9.8-19 with bug fixes available now. Run this command for update v-update-sys-vesta-all

OpenCart on Nginx as reverse proxy causing login issue?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
Posts: 2
Joined: Tue Sep 12, 2017 6:00 pm

OpenCart on Nginx as reverse proxy causing login issue?

Postby cosmicx » Tue Sep 12, 2017 6:08 pm

Hi! First time to post here in the Forum.

I've been testing VestaCP live using OpenCart. It has very little traffic and I encounter an issue as reported by a customer. Not sure if this is server/hosting related, but maybe I can get some help here to further investigate on the issue.

The issue reported to me:

When user go to the login page, the user and password field gets auto populated or auto filled, and eventually logs in. The account that get auto logged in wasn't really his account, but of some else's account.

How can I investigate on this issue? Someone says it might be a session issue. I looked at my /home/username/tmp directory and I just see tons of sess_ files. The directory has RW permission only by the VestaCP user.

Could this be a server related issue?

Posts: 46
Joined: Thu Jan 05, 2017 9:20 pm

Re: OpenCart on Nginx as reverse proxy causing login issue?

Postby noogen » Thu Sep 14, 2017 6:39 pm

It's really hard to troubleshoot without you trying to figure out where the issue is first: is the problem with apache or nginx? The most important thing is know how to recreate the issue.

In this case, we have to make a couple of assumption or guesses and begin testing out the theory. Let assume that it is a caching issue.

1. Is is a problem at apache level? can we recreate the issue if you don't have nginx in front of apache? If not, it must be nginx.
2. If it is nginx, is it a proxy cache issue? Do you have setting to bypass cache for certain OpenCart session cookie name?

Return to “Web Server”

Who is online

Users browsing this forum: No registered users and 3 guests