Results 1 to 2 of 2

Thread: How do I change the default vhost directory?

  1. #1

    Default How do I change the default vhost directory?

    We just got a dedicated server that has plesk installed. I set up a domain in the Plesk control panel which is located in:

    /var/www/vhosts/mydomain/

    If I upload a document to the httpdocs folder under the directory structure above I can never see that document.

    I found that right now that any request made is actually going through /var/www/vhosts/default/htdocs

    I can't seem to find how to make the requests go through the domain I set up.

    I looked in the psa.conf file but the vhosts line just points to /var/www/vhosts

    Any idea on where I can force everything to look in /var/www/vhosts/mydomain/httpdocs?

    I thought by setting up the domain in Plesk that it would take care of it for me.

    Thanks,
    Ben



  2. #2

    Default

    Values which you have required can be found in the following file:

    /etc/httpd/conf.d/zz010_psa_httpd.conf

    You can change the values at following variables: Here you can replace /default/htdocs with /mydomain/htdocs;


    DocumentRoot /var/www/vhosts/default/htdocs


    AND

    <VirtualHost \
    IP_1:80 \
    IP_2:80 \
    IP_3:80 \
    IP_4:80 \
    >
    ServerName default
    UseCanonicalName Off
    DocumentRoot /var/www/vhosts/default/htdocs
    ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
    <IfModule mod_ssl.c>
    SSLEngine off
    </IfModule>
    <Directory "/var/www/vhosts/default/cgi-bin/">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    <Directory /var/www/vhosts/default/htdocs>
    <IfModule sapi_apache2.c>
    php_admin_flag engine on
    php_admin_flag safe_mode on
    php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_flag engine on
    php_admin_flag safe_mode on
    php_admin_value open_basedir "/var/www/vhosts/default/htdocs:/tmp"
    </IfModule>
    </Directory>
    </VirtualHost>
    [B]Brajesh Singh[/B]
    [URL="https://dedicatedhosting.navisite.com"][COLOR="Navy"][I]NaviSite Dedicated Hosting[/I][/COLOR][/URL]
    [COLOR="Navy"][URL="http://www.surveymonkey.com/s.aspx?sm=A8ogUnc7xElzpOnqAB1_2bNw_3d_3d"]"24/7/365" Myth or Reality[/URL][/COLOR]



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •