Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Tom Carroll on December 23, 2001, 12:56:23 PM
-
I've been discussing creating an e-smith-interchange custom RPM but I was told instead of setting up the store in an ibay, like I have, I should be installing it to the /opt/ directory for added security. My problem lies in the fact that the ibay I have interchange installed in is a virtual domain.
I have installed gallery and phpmyadmin on my sme server and I did some testing. Both of those applications are served from both domains (primary and virtual). This is not what I want.
I want the gallery and phpmyadmin served only from the primary domain and interchange served only from the virtual domain. Presently I cannot connect to the intechange store from my primary domain (http://www.myprimarydomain.net/store) which is good!
Is there a way to keep gallery and phpmyadmin from being served by my virtual domain, and to keep interchange from being served to the primary domain if I install interchange to the /opt/ directory? If there is a way I'll stick with the method of putting interchange under the /opt/ directory.
Hope this wasn't too confusing.
Tom Carroll
Dataware Computers
-
Tom,
I am very interested in how to install interchange on SME V5, either in primary, or in an ibay. I tried unsuccesfully before. Any tips would be appreciated.
Thanks,
Chaloner Hale
-
Tom Carroll wrote:
> Is there a way to keep gallery and phpmyadmin from being
> served by my virtual domain, and to keep interchange from
> being served to the primary domain if I install interchange
> to the /opt/ directory? If there is a way I'll stick with
> the method of putting interchange under the /opt/ directory.
Tom, the only way I can think of making this work is to put the httpd.conf Alias directives inside the VirtualHost directives, example below:
ServerName secure.virtualdomain1.com
ServerAlias virtualdomain1.com www.virtualdomain1.com
Alias /interchange /opt/interchange
Options -Indexes
AllowOverride None
order allow,deny
allow from all
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc off
php_flag track_vars on
To accomplish this 'correctly' would require some complex httpd.conf template editing, but definitely possible. Hopefully someone might have a better/simpler idea.
Regards,
Darrell