From: David O. <da...@qc...> - 2012-11-01 16:32:10
|
Hi again, In Aolserver we used to change pageroot in the config as so: ns_param pageroot /new/page/root Should the same work in Naviserver? ns_info pageroot is returning /usr/local/ns/pages no matter what I put in the config for pageroot (built from the latest version in bitbucket). Trying to work out if this is a config error or a code difference... any pointers? Thanks, - David |
From: Jeff R. <dv...@di...> - 2012-11-01 17:00:37
|
It's "pagedir" rather than "pageroot", and it's relative to the server root for virtual hosts (it can still be absolute). The documentation appears to be not up to date on this item. -J David Osborne wrote: > Hi again, > > In Aolserver we used to change pageroot in the config as so: > ns_param pageroot /new/page/root > > Should the same work in Naviserver? > ns_info pageroot is returning /usr/local/ns/pages no matter what I put > in the config for pageroot (built from the latest version in bitbucket). > Trying to work out if this is a config error or a code difference... any > pointers? > > Thanks, > - David > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > > > > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > |
From: Gustaf N. <ne...@wu...> - 2012-11-01 19:51:58
|
hmm, i found two occurrences of "nsparam pageroot", and changed these. % egrep -R "ns_param *pageroot" * openacs-config.tcl: ns_param pageroot $pageroot tests/http-test-config.tcl:ns_param pageroot $pageroot i have added as well "ns_info pagedir" as an alias for "ns_info pageroot". One should mark the latter as deprecated. -gustaf On 01.11.12 18:00, Jeff Rogers wrote: > It's "pagedir" rather than "pageroot", and it's relative to the server > root for virtual hosts (it can still be absolute). The documentation > appears to be not up to date on this item. > > -J > > > David Osborne wrote: >> Hi again, >> >> In Aolserver we used to change pageroot in the config as so: >> ns_param pageroot /new/page/root >> >> Should the same work in Naviserver? >> ns_info pageroot is returning /usr/local/ns/pages no matter what I put >> in the config for pageroot (built from the latest version in bitbucket). >> Trying to work out if this is a config error or a code difference... any >> pointers? >> >> Thanks, >> - David >> >> >> ------------------------------------------------------------------------------ >> Everyone hates slow websites. So do we. >> Make your web apps faster with AppDynamics >> Download AppDynamics Lite for free today: >> http://p.sf.net/sfu/appdyn_sfd2d_oct >> >> >> >> _______________________________________________ >> naviserver-devel mailing list >> nav...@li... >> https://lists.sourceforge.net/lists/listinfo/naviserver-devel >> > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel |
From: David O. <da...@qc...> - 2012-11-02 09:49:37
|
Thanks Jeff and Gustaf. I found that setting pagedir had no effect under the server section (as is in the newly changed tests/http-test-config.tcl file) eg: ns_section "ns/server/${server_name}" ns_param pagedir $pageroot But if I added a subsequent fastpath section and added it there instead then it worked. Is this what would be expected? ns_section "ns/server/${server_name}/fastpath" ns_param pagedir $pageroot On 1 November 2012 19:51, Gustaf Neumann <ne...@wu...> wrote: > > hmm, i found two occurrences of "nsparam pageroot", and > changed these. > > % egrep -R "ns_param *pageroot" * > openacs-config.tcl: ns_param pageroot $pageroot > tests/http-test-config.tcl:ns_param pageroot $pageroot > > i have added as well "ns_info pagedir" as an alias for > "ns_info pageroot". > One should mark the latter as deprecated. > > -gustaf > |
From: Gustaf N. <ne...@wu...> - 2012-11-02 10:04:12
|
Hi David, i think, this is intentional. all config options for serving static files are under ns/server/${servername}/fastpath see: https://bitbucket.org/naviserver/naviserver/src/d34fc2681cf1fb4dec89b7172d09a187c37efe32/sample-config.tcl.in?at=default#cl-301 -gustaf On 02.11.12 10:22, David Osborne wrote: > Thanks Jeff and Gustaf. > > I found that setting pagedir had no effect under the > server section (as is in the newly changed > tests/http-test-config.tcl file) eg: > > ns_section "ns/server/${server_name}" > ns_param pagedir $pageroot > > But if I added a subsequent fastpath section and added it > there instead then it worked. Is this what would be expected? > > ns_section "ns/server/${server_name}/fastpath" > ns_param pagedir $pageroot > > > On 1 November 2012 19:51, Gustaf Neumann <ne...@wu... > <mailto:ne...@wu...>> wrote: > > > hmm, i found two occurrences of "nsparam pageroot", and > changed these. > > % egrep -R "ns_param *pageroot" * > openacs-config.tcl: ns_param pageroot > $pageroot > tests/http-test-config.tcl:ns_param pageroot $pageroot > > i have added as well "ns_info pagedir" as an alias for > "ns_info pageroot". > One should mark the latter as deprecated. > > -gustaf > > > > ------------------------------------------------------------------------------ > LogMeIn Central: Instant, anywhere, Remote PC access and management. > Stay in control, update software, and manage PCs from one command center > Diagnose problems and improve visibility into emerging IT issues > Automate, monitor and manage. Do more in less time with Central > http://p.sf.net/sfu/logmein12331_d2d > > > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel |
From: Stephen D. <sd...@gm...> - 2012-11-02 10:44:18
|
On Thu, Nov 1, 2012 at 4:03 PM, David Osborne <da...@qc...> wrote: > > Trying to work out if this is a config error or a code difference... any > pointers? In general, add this to your config: ns_section "ns/parameters" ns_param logdev true And the log file will tell you exactly which config parameters are being accessed, with which values and types, what the defaults are, etc. It's worthwhile doing this just because config files tend to accumulate cruft after a while. |