Welcome! Log In Create A New Profile

Advanced

open cart control panel keeps redirecting asking for password

August 21, 2016 12:45PM
hello there
i have nginx newly installed as reverse proxy infront of apache
but i found a strange problem
when i try to login to open cart control panel it keeps redirecting me to control panel without enabling me to login
the authentication informations that i used are correct & after i have disabled nginx it works without problem
here are the contents of configuration files that i uses

# nginx.conf contents
user nginx;
worker_processes 2;
worker_rlimit_nofile 4000;
thread_pool default threads=32 max_queue=65536;
pid /usr/local/nginx/logs/nginx.pid;
events {
use epoll;
worker_connections 4000;
multi_accept On;
accept_mutex off;
}


http {
aio threads=default;
access_log /dev/null;
error_log /dev/null;
server_tokens Off;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
include /usr/local/nginx/conf/mime.types;
default_type application/octet-stream;
client_body_temp_path /tmp;
proxy_cache_path /home/nginx_cache levels=1:2 keys_zone=nginx-cache:1m max_size=4g inactive=6h;
open_file_cache max=3000 inactive=6h;
open_file_cache_valid 6h;
open_file_cache_min_uses 3;
open_file_cache_errors Off;
proxy_temp_path /home/nginx_cache/tmp;
server_names_hash_max_size 512;
server_names_hash_bucket_size 512;
server_name_in_redirect On;
port_in_redirect Off;
tcp_nodelay On;
tcp_nopush On;
sendfile on;
sendfile_max_chunk 512k;
keepalive_timeout 5;
keepalive_requests 80;
reset_timedout_connection On;
if_modified_since before;
gzip On;
gzip_static Off;
gzip_buffers 16 8k;
gzip_comp_level 6;
gzip_disable "msie6";
gzip_min_length 1500;
gzip_proxied any;
gzip_types
application/atom+xml
application/javascript
application/json
application/ld+json
application/manifest+json
application/rss+xml
application/vnd.geo+json
application/vnd.ms-fontobject
application/x-font-ttf
application/x-javascript
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/bmp
image/svg+xml
image/x-icon
text/cache-manifest
text/css
text/javascript
text/plain
text/vcard
text/vnd.rim.location.xloc
text/vtt
text/x-component
text/x-cross-domain-policy
text/x-js
text/xml;
gzip_vary on;
server {
server_name xxxxx;
root /usr/local/nginx/html;
listen xx.xx.xx.xx:80;
location / {
include /usr/local/nginx/conf/proxy.conf;
proxy_pass http://xx.xx.xx.xx:8080;
}
}
include /usr/local/nginx/conf/vhost.conf;
}


# proxy.conf contents
proxy_buffering On;
proxy_cache_valid 404 3h;
proxy_cache_valid 500 502 504 406 3h;
proxy_cache_valid 200 6h;
proxy_buffers 32 4m;
proxy_busy_buffers_size 25m;
proxy_buffer_size 512k;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_cache nginx-cache;
proxy_cache_key "$host$request_uri";
proxy_ignore_headers "Cache-Control" "Expires" "Set-Cookie";
proxy_hide_header "Set-Cookie";
proxy_cache_min_uses 3;
proxy_max_temp_file_size 0;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 4m;
proxy_connect_timeout 300s;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_ignore_client_abort off;
proxy_intercept_errors off;
proxy_cache_bypass $cookie_nocache $arg_nocache $arg_comment;
proxy_cache_bypass $http_pragma $http_authorization;

i suspecious set-cookies directives
please could anyone help me
Subject Author Posted

open cart control panel keeps redirecting asking for password

HuMaN-BiEnG August 21, 2016 12:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready