• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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