[Chameleon] How do I limit the access of the Chameleon folder
Paul Spencer
pspencer at dmsolutions.ca
Fri Nov 11 11:01:54 EST 2005
Hi,
put your application in a directory parallel to the chameleon directory:
/ms4w/apps/chameleon/
/ms4w/apps/myApp/
then create an htdocs (or whatever you want to call it) directory
inside myApp that will contain only the web-accessible portion of
your application
then create an alias file in /ms4w/httpd.d/ ... see one of the
existing files. It MUST be named httpd_<something>.conf to work.
Then restart apache and your new alias will point to your htdocs
folder only, the rest of your app is hidden to the web.
example alias file:
Alias /myApp "/ms4w/apps/myApp/htdocs"
<Directory "/ms4w/apps/myApp/htdocs">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
and the url becomes http://localhost/myApp
Cheers
Paul
On 11-Nov-05, at 10:56 AM, Steven De Vriendt wrote:
> I've set up ms4w with chameleon on localhost. I've set up
> an application folder under the chameleon/htdocs folder
> now I see that everything in my web directory can be
> browsed...How can I set up a working envirnoment where
> only access to my application dir is done ??
>
> Thanks to the list and developpers of mapserver
> and chameleon for their great effort making this a
> wonderfull tool !
>
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list