Can you disable Elastic Beanstalk URL or redirect it to your own?

Can you disable Elastic Beanstalk URL or redirect it to your own?

I feel that I had done this via a configuration file before.

I have already set the “NGINX_FORCE_SSL” but I am still able to access to app via the Beanstalk (http) url.