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.
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.
- Login to your server using
- Create a backup of your vhost files:
cp /etc/nginx/conf.d/*.conf /root/
- 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.
- 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.
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
Hit these commands:
ls -al /etc/nginx/conf.d
sudo nano /etc/nginx/conf.d/wordpress_http.conf
sudo /etc/init.d/nginx restart