Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5060

Adding security token to url

$
0
0

I have created a static website https://my_ip_adress/index.html running on nginx. I need to add security token to the URL such that my URL should be https://my_ip_address/abcd/index.html. I want any user to access my website only when the path is https://my_ip_address/abcd/index.html

I am new to this concept and would appreciate any help.

Here is my config file for more context:

server {

    listen       80;

    server_name  my.ip.add.ress;

    return 301 https://$server_name$request_uri;

}

server {

    listen       443 ssl;

    server_name   my.ip.add.ress;

    ssl_certificate      /etc/nginx/ssl/nginx.crt;

    ssl_certificate_key  /etc/nginx/ssl/nginx.key;

}

    error_page   500 502 503 504  /50x.html;

    location = /50x.html {

        root   /usr/share/nginx/html;

    }

}

Viewing all articles
Browse latest Browse all 5060


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>