How to remove login prompt for my website?


#1

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?


#2

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


#3

No. No. It’s not required.


#4

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.


#5

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


#6

You’re welcome!


#7

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


#8

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


#9

Ok I will try again. Thank you


#10

It worked. Thank you @GulshanKumar


#11

You’re welcome!