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

Subdomain DocumentRoot

Discussion in 'Plesk 11.x for Linux' started by AlexanderPolizu, Jul 30, 2012.

  1. AlexanderPolizu

    AlexanderPolizu New Pleskian

    11
    85%
    Joined:
    Jul 30, 2012
    Messages:
    18
    Likes Received:
    0
    Hi Guys,

    It's possible to change the subdomain DocumentRoot to an existing document outside of his home directory? For example I want to change the docroot for the test.sstest.com to a directory owned by the primary domain sstest.com

    /var/www/vhosts/test.sstest.com/httpdocs/ to /var/www/vhosts/sstest.com/httpdocs/somethingelse.

    Thank you.
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
  3. AlexanderPolizu

    AlexanderPolizu New Pleskian

    11
    85%
    Joined:
    Jul 30, 2012
    Messages:
    18
    Likes Received:
    0
    I've made the changes and now it's trying to download a file when accessing the website

    # cat /var/www/vhosts/sstest.test.com/conf/vhost.conf
    DocumentRoot /var/www/vhosts/test.com/httpdocs/payment
    <Directory /var/www/vhosts/test.com/httpdocs/payment>
    <IfModule sapi_apache2.c>
    php_admin_flag engine on
    php_admin_flag safe_mode off
    php_admin_value open_basedir "/var/www/vhosts/test.com/httpdocs:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_flag engine on
    php_admin_flag safe_mode off
    php_admin_value open_basedir "/var/www/vhosts/test.com/httpdocs:/tmp"
    </IfModule>
    Options -Includes -ExecCGI
    </Directory>

    Do you know why it goes for a download instead of showing the webpage?

    Thank you for the link, Igor. I will continue to investigate.
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Just enable php for that subdomain name through the control panel it self -> websites and domains -> click on the domain ->
     
Loading...