• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Setting up symlinks for previewing site

C

cmonnat

Guest
I'm looking to setup an account on our Plesk server that makes it simpler to preview sites through an easy to remember address.

I've setup a hosting account in Plesk for s3.practisinc.com. I would like to configure things so that by making a symlink in the web_users directory of s3.practisinc.com I am able to access other sites hosted on the server by visiting:

http://s3.practisinc.com/~domain-name.com

I have been working at this for a while without much success. So far, I have created a vhost.conf file in the conf directory of the s3.practisinc.com site with the following commands:

Code:
<Directory /var/www/vhosts/s3.practisinc.com/web_users>
    Options Indexes FollowSymLinks
</Directory>

<Directory /var/www/vhosts/s3.practisinc.com/web_users/* >
                Options -Includes +ExecCGI
                AddHandler cgi-script .cgi
        <IfModule sapi_apache2.c>
                php_admin_flag engine on
                php_admin_flag safe_mode on
        </IfModule>
        <IfModule mod_php5.c>
                php_admin_flag engine on
                php_admin_flag safe_mode on
        </IfModule>
</Directory>

After creating that file I run the websrvmng command to restart the services. It looks like it should totally work, but when I try to visit a site on the server after creating a symlink I am getting a "Not Found" error.

Anyone have any ideas on what I'm doing wrong?
 
Back
Top