1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

how do i do this

Discussion in 'Plesk for Linux - 8.x and Older' started by ilustrate, Aug 8, 2005.

  1. ilustrate

    ilustrate Guest

    0
     
  2. poke

    poke Guest

    0
     
  3. jamesyeeoc

    jamesyeeoc Guest

    0
     
    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>
     
  4. ilustrate

    ilustrate Guest

    0
     
    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?
     
  5. jamesyeeoc

    jamesyeeoc Guest

    0
     
    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>
     
  6. ilustrate

    ilustrate Guest

    0
     
    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.
     
  7. mikk

    mikk Basic Pleskian

    23
    73%
    Joined:
    Jan 29, 2005
    Messages:
    83
    Likes Received:
    0
    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.
     
  8. ilustrate

    ilustrate Guest

    0
     
    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 ?
     
  9. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Just remember about httpd.conf being overwritten by Plesk...

    Doing it the other way never gets overwritten. (just my 2 cents)
     
  10. mikk

    mikk Basic Pleskian

    23
    73%
    Joined:
    Jan 29, 2005
    Messages:
    83
    Likes Received:
    0
    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.
     
Loading...