How to Remove HTTP login prompt for WordPress in Vultr?

I hosted my site on Vultr. Every time I access my website wp-admin panel, it is prompting for Vultr IP address username and password first and then asking for WordPress username and password. How to remove the IP address login prompt?

Try opening it on a different browser… local cache/cookies could be responsible for this.

No. No. It’s not required.

Removing wp-admin Login Prompt

For security purposes, your WordPress app has an initial login prompt that opens when accessing the /wp-admin/ page. To remove this prompt, follow these steps.

  1. Login to your server using ssh as root.
  2. Create a backup of your vhost files: cp /etc/nginx/conf.d/*.conf /root/
  3. Edit both vhost files in /etc/nginx/conf.d/ . You need to remove the block of code that starts with location ^~ /wp-admin/ . It is about 15 lines long.
  4. Save your changes, and restart the web server: systemctl restart nginx.service; systemctl restart php7.0-fpm.service

Related video, I found helpful.

Thank you. I will try this and revert if I need any further assistance.

You’re welcome!

Hi @GulshanKumar I tried the method in the video but it still prompting for login.

There will be two conf file, HTTP and HTTPS both you need to edit.

Ok I will try again. Thank you

It worked. Thank you @GulshanKumar

You’re welcome!

Hit these commands:

ls -al /etc/nginx/conf.d
sudo nano /etc/nginx/conf.d/wordpress_http.conf
sudo /etc/init.d/nginx restart