Skip to content

URI encryption doesn't work #93

Open
@shaghayegh9574

Description

@shaghayegh9574

I'm using nginx-secure-token-module for uri encryption.
I want to encrypt my uri from root so add the bellow configuration to location "/":
location /
{

	proxy_pass http://192.168.252.3:80;
	proxy_set_header Host	$host;
	secure_token_encrypt_uri on;
	secure_token_encrypt_uri_key 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f;
	secure_token_encrypt_uri_iv 00000000000000000000000000000000;
	secure_token_types text/html;
			
}

but when open my site,by clicking on any uri got response 400 and on got the bellow error on nginx error log :
ngx_http_secure_token_decrypt_uri: ngx_decode_base64url failed -1, client: 192.168.0.100, server: example.com, request: "GET /tmp/ HTTP/1.1", host: "example.com"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions