Brad Hards <[EMAIL PROTECTED]> said:

> Can someone comment on the right place for these apps.

Anywhere under /opt (which is short for option) seems the preferred choice.

/opt/your_app_here

Then if you are building an rpm you would create an httpd.conf template
fragment(s).  Here is one example for a php app:

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86Your_app_hereAlias

# Your_app_here
Alias /your_app_here /opt/your_app_here
<Directory /opt/your_app_here>
    RequireSSL on
    Options -Indexes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    Satisfy all
    AddType application/x-httpd-php .php .php3
    php_flag  magic_quotes_gpc  on
    php_flag  track_vars        on
</Directory>

> but I worry about what happens if someone creates a ibay called twiki.

In your rpm .spec file you would add something like this:

%post
/sbin/e-smith/db accounts set your_app_here reserved
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/init.d/httpd-e-smith graceful

%preun

%postun
/sbin/e-smith/db accounts delete your_app_here
/etc/rc.d/init.d/httpd-e-smith graceful

You can download and install any of my source rpms (or any contributor's
.src.rpm) and review the .spec files to get a complete look at the entire
procedure.  Some auto-build mySQL databases, some implement different
security access levels etc.  Lot's of examples to look at.

Regards,

--
Darrell May
DMC Netsourced.com
http://netsourced.com
http://myEZserver.com


--
Please report bugs to [EMAIL PROTECTED]
Please mail [EMAIL PROTECTED] (only) to discuss security issues
Support for registered customers and partners to [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org

Reply via email to