Custom Directives for httpd.conf

We save our most difficult migration to last: the ZenCart shopping site called minimela.com. For this site we created two duplicate instances of Zen Cart that you would find for the mainsite in public_html. Then we proceeded to add all kinds of interesting directives to "screwball Plesk locations" to tie these instances of Zen Cart into the main domain.

www.minimela.com/ goes to the US international store
www.minimela.com/in/ takes you to the India store

And there are additional caveats related to PHP and SSL to make the latter work...

So now, our challenge is: where to put these directive under the new configuration? The migration clearly could not see or incorporate this kind of lo-level customization. So we will need to do this by hand. I am pasting below the customization we made for the PLESK set up.. and the bottom line question is: if we add a new directory and a new httpd.include file like this:

/home/minimela/conf/httpd.include

are start and stop apache, will it get pick up? and b) are there places in the VirtualMin GUI where such customizations can be added? See below for what we were doing from our own in house documentation wiki:
(obviously we need to change the paths from root to
/home/minimela/* to replace /var/www/vhosts/minimela.com/

=====
1. DO NOT EDIT "#home#/conf/httpd.include" (ALTHOUGH THIS IS WHAT ANY APACHE SETUP DOCUMENT WILL RECOMMEND).
2. Since this server uses Plesk, it will need to control the additional information. So here's how you do it.
3. Since in this case we would like to add a "/in/" path to both HTTP and HTTPS of www.minimela.com we will need to create two files:
1. "#home#/conf/vhost_ssl.conf" and "#home#/conf/vhost.conf" with the following content:

vhost_ssl.conf

1.

1. Added By Venkatt Guhesan (443-414-9683)
2. for supporting minimela.com - india site

Alias "/in" "/var/www/vhosts/minimela.com/minimela-india/"

php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/minimela.com/minimela-india:/tmp"

php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/minimela.com/minimela-india:/tmp"

SSLRequireSSL
Options +Includes +ExecCGI

1.

vhost.conf

1.

1. Added By Venkatt Guhesan (443-414-9683)
2. for supporting minimela.com - india site

Alias "/in" "/var/www/vhosts/minimela.com/minimela-india/"

php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/minimela.com/minimela-india:/tmp"

php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/var/www/vhosts/minimela.com/minimela-india:/tmp"

Options +Includes +ExecCGI

1.

The key difference between the two files is this directive: "SSLRequireSSL"

1. Afterward, run the following command under "root":

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=minimela.com

This tells Plesk to update the "httpd.include" file with two additional includes under each virtual host. And then stop-start the httpd daemon. And watch for changes.

Status: 
Closed (fixed)