1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Question Regardig Managing Domain while using Alias Domains...

Discussion in 'SiteBuilder' started by NeuroPsyche, Feb 9, 2009.

  1. NeuroPsyche

    NeuroPsyche Regular Pleskian

    26
    23%
    Joined:
    Nov 22, 2007
    Messages:
    207
    Likes Received:
    0
    Location:
    Pennsylvania, USA
    I have a domain with close to about 30 aliases and am having trouble coding anything in Plesk or Sitebuilder
    to use actual paths on the Plesk/Sitebuilder server.

    Does anyone know of a work-around to managing hardcoded paths, for example
    using the Hyperlink Module, using the FILE:\\ command to display a simple .pdf or .doc file to the
    web user...
    How does one code the FILE:\\ server\drive\path\file.ext if you want to use the
    domain's \HTTPDOCS\ directory and maintain a directory in the root of the domain
    ex. http://www.domain.com/<filesdirectory>
    ...whereas the <filesdirectory> is contained in the Primary domain physical path.

    ...where the problem occurs is if someone comes in on one of the alias domains. The path actually, if coded
    to use the domain root path, will change.

    Is there any variable, that anyone knows, which shows the actual Primary Domain Name? Instead of the actual
    domain the user is on.

    If anyone has any suggestions it would be greatly appreciated!
    Thanks!
     
Loading...