[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] ASP Error



> > 
> > Dear All,
> > 
> > Does any body know how to fix this error :
> > 
> > Active Server Pages error 'ASP 0131'
> > Disallowed Parent Path /daily_report/pilot_report/pk-kdk1.asp, line 
> > 127 The Include file '../../_fpclass/fpdblib.inc' cannot contain
> > '..' to indicate the parent directory.
> > 
> 
> When using ASP, try using the Server.MapPath
> varFileName = Server.MapPath("../../_fpclass/fpdblib.inc")
> 
> With SUN Chilisoft, there is an option to allow /disallow 
> access to the directory at any level above the path of the 
> script you are running. If this is set to disallow, your 
> script will not work. I don't remember the setting, but it 
> may only be available in the config file, not in the GUI, I forget.

I think you need this is your config file
(home/chiliasp/asp-apache-3000/casp.cnfg)
[default application]
enableparentpaths=yes

Be careful, you are opening some security holes if you do this,
especially if you are not running every script with user privileges. In
that case, every script will have the permissions of whatever user the
asp server is running as.
The running as script owner is found under
[default machine]
inherit_user=1 (I think this is 0 by default - bad)

Vidar