How to Add httpd.conf for Your Virtual Site on Plesk

Introduction

This tutorial is made to help Plesk hosting providers setup a different rule per virtual site on their Plesk Shared Hosting Server

Procedure

1. Login to you server by ssh
2. go to the virtual site directory
# cd /var/www/vhosts//conf
3. edit your vhost.conf file. It has to be named vhost.conf
for example:
# vi vhost.conf
Alias /some_link /var/some_directory_to_link_to/

SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER


    Options +Indexes +FollowSymLinks +ExecCGI -Includes
    Deny from all



4. In order for the changes to take effect, you can run the following. It doesn’t restart your web server(!) however it will reload the configuration so you’ll have your directives inserted to the apache.

# /usr/local/psa/admin/sbin/websrvmng -u –vhost-name=virtualsite.com

Enjoy.