• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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