1

I need to access below url.

http://localhost/admin/logout.php/?access_token=21fd3cfe5bab26131ff5244c08e5f520&continue=/

In my NGINX server, it is redirecting me to default page. Please find below my configs : 1st config tried ##########

location / {
  try_files    $uri $uri/ /index.php;
  }

2nd config tried ##########

location / {
  #try_files $uri $uri/ /index.php?q=$uri&$args;
  }

Note : It(Script) is working in Apache server.

Updated ::::::::::::::::::::::::::::::::::::::

.conf file

server {
  server_name test.test.com www.test.test.com;
  access_log /home/log/access.log combcomed buffer=256k flush=60m;
  error_log /home/log/error.log;

  root /home/public;
  location ~ (?:^|/)\. {
   deny all;
  }

  location / {
  #try_files    $uri $uri/ /index.php;
  try_files $uri $uri/ /index.php?q=$uri&$args;
  }

  include /usr/local/nginx/conf/staticfiles.conf;
  include /usr/local/nginx/conf/php.conf;
  include /usr/local/nginx/conf/drop.conf;
  include /usr/local/nginx/conf/vts_server.conf;
}

Http response :

HTTP/1.1 302 Moved Temporarily
Date: Fri, 18 Aug 2017 14:55:04 GMT
Content-Type: text/html
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: /admin/main.php
Server: nginx centminmod
Content-Length: 5687
PKumar
  • 111

0 Answers0