How to see, set, change or delete secret-URL of hosting panel

Post Reply
User avatar
myVesta
Site Admin
Posts: 756
Joined: Fri Jun 19, 2020 9:59 am

In order to see current secret-URL, do in your SSH:

Code: Select all

sudo cat /usr/local/vesta/web/inc/login_url.php
If you already have secret-URL, yow will see a line that looks like this:

Code: Select all

<?php $login_url='SOMETHING';
The string between quotes is your secret URL (in this example it's SOMETHING string).

If you don't have secret-URL (and you want to set it), you will get empty file, and then simply copy-paste above string and save the file (just change SOMETHING according your wish).

To use this secret-URL, you can point your browser to:

Code: Select all

https://yourhostname:8083/?SOMETHING
----------------------------------------

In order to change secret-URL, do:

Code: Select all

sudo vi /usr/local/vesta/web/inc/login_url.php
Yow will see:

Code: Select all

<?php $login_url='SOMETHING';
Change the string between quotes (in this example it's SOMETHING string).

Save the file.
----------------------------------------

In order to remove secret-URL, do:

Code: Select all

sudo rm /usr/local/vesta/web/inc/login_url.php

Tags:
Post Reply