• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

how do i do this

All he has done is to create an index.html file and placed it into the directory /home/httpd/vhosts/sonorahost.com/panel

The contents of the file are:

<script>

location.href="https://www.sonorahost.com:8443"

</script>
 
i would like to add this to my site i'll be using for the hosting. so basically i'll first create a subdomain or directory (i'd rather use a subdomain would this still work with a subdomain) and I leave the directory empty?

i place an index.html file within

/home/httpd/vhosts/sonorahost.com/panel

i'm lost again. can i actually place an index.html file within my above directory?

do i also need to do this via SSH?

i guess since i usually create most of my html files within dreamweaver i now have no idea how to get the file to the location you are telling me to? am i on the right track?
 
You would create your subdomain, then create an index.html file which would contain what I posted earlier (change the URL of course).

If you create the subdomain with Plesk CP, then you would place the index.html file in:

/home/httpd/vhosts/domain.com/subdomains/yoursubname

Then when someone browses to:

http://yoursubname.domain.com

they will get the index.html file, which will redirect their browser to the URL which you specified in the location.href statement. Such as:
<script>

location.href="https://www.yourdomain.com:8443"

</script>
 
thanks james. when i saw the path of /home/httpd/vhosts/domain.com/subdomains/yoursubname

i assumed it had to do with having to SSH to the server and all that. i hadn't realized it was just a matter of going in to my subdomain folder. i guess i'm not used to looking at the paths that way. worked like a charm. thanks. i think i'll probably take the extra step in installing this on my clients site. that should make it easier for them to remember how to get to the panel. thanks.
 
A nice simple way is a one line entry in httpd.conf

Redirect /panel https://DOMAIN.com:8443/

then all domains when going to http://DOMAIN.com/panel will automatically go to the login page

(remember to restart apache after altering the httpd.conf)

Much easier than setting up subdomains etc on every single domain you may host.
 
awesome

that is cool as hell. thank you very, very much. my girlfriend doesn't understand why i love this computer so much.....

how would i type it so that it goes to a subdomain instead of a directory. i would like it go to panel.customersite.com


do i add this anywhere in http.conf ?
 
Just remember about httpd.conf being overwritten by Plesk...

Doing it the other way never gets overwritten. (just my 2 cents)
 
Ive never known httpd.conf to get overwrote except on an upgrade?

I am not sure how you could do it with a subdomain to be honest.

Possibly something with ServerAlias panel.* in a virtualhost container block, but i cant say i have tried.
 
Back
Top