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

Chaning File Path for Domain

Discussion in 'Plesk 11.x for Linux' started by JonathanY, Aug 9, 2012.

  1. JonathanY

    JonathanY Guest

    0
     
    Hello guys,

    I added a domain to my plesk panel, and it says it is located at /httpdocs

    but after setting up the namservers and everything, the actual files it displays on my site is located at

    /var/www instead of var/www/vhosts/domain.com/httpdocs

    How can I fix this?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    What sort of output

    # grep HTTPD_VHOSTS_D /etc/psa/psa.conf

    ?
     
  3. JonathanY

    JonathanY Guest

    0
     
    It outputs this:

    HTTPD_VHOSTS_D /var/www/vhosts
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    The website files you see in the browser, are they the website files you uploaded or just some default parking page ..?
     
  5. JonathanY

    JonathanY Guest

    0
     
    They are the pages I uploaded. I originally uploaded it to the var/www/vhosts/domain/httpdocs folder but they were not displayed, after I moved them to the /www/ folder they can be seen.
     
  6. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    OK, that is interesting ...Had you already rebuilt the vhost configurations ? If not please do so right away with /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

    if that fails to resolve your problem, I would love to take alook at your server configurations, you can PM me.
     
  7. JonathanY

    JonathanY Guest

    0
     
    What do you mean by rebuilding my vhosts config? How can I do so?
     
  8. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    To rebuild the vhosts, you run the command from SHELL:

    /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
     
Loading...