Re: Paths, relative paths, webstar server setup andsecurity WebDNA-Talk@smithmicro.com

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 14856
interpreted = N
texte = >We're setting up the public webserver and want to make sure we optimize >WebStar and WebCatalog security features and folder hierarchies. > >Are their any security gotcha's that we need to look out for (like being >able to type www.mydomain.com/webstar.log and displaying a list of all >hits on the site ...NO, WebSTAR's log is already protected by creator WWW‡ security.>... or competitors typing in www.mydomain.com/items.db and >getting a dump of our hard-earned database)?Yes, change the creator of your db files to WWW‡. WebCat does this automatically, but not until it sees a [closedatabase] command in a template, so you're better off doing it manually from the beginning ... just in case you don't use [closedatabase] in your templates.>Also, for neatnicks who like to organize everything into folders, what >WebCatalog files have to be together?DONT MOVE STUFF!As soon as you start moving the files that come with the WebCat distribution into different places, you're bound to create problems for yourself. In other words, forget about being a neatnik, and leave things where they are, and you'll be a LOT happier in the long run ... :)As far as the locations of any new files you create, that will depend upon how and from where you're calling them. The best technique is to keep each project in its own folder, always use relative URLs, then you can move the whole folder to another location inside the WebSTAR hierarchy and everything will still work fine ... provided you're using security instead of WebCatalog hierarchy security.>Do databases have to be in the >same folder as Webstar or WebCatalog or the templates that use them >(I've never seen a relative path to a database in examples)?No, databases don't have to be located anywhere special, you call them the same way you call templates. All my paths are relative, so if the examples are absolute instead of relative, that's just a coincidence. You should always use relative URLs whenever possible. Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/. Associated Messages, from the most recent to the oldest:

    
  1. Re: Paths, relative paths, webstar server setup andsecurity WebDNA-Talk@smithmicro.com (Kenneth Grome 1997)
>We're setting up the public webserver and want to make sure we optimize >WebStar and WebCatalog security features and folder hierarchies. > >Are their any security gotcha's that we need to look out for (like being >able to type www.mydomain.com/webstar.log and displaying a list of all >hits on the site ...NO, WebSTAR's log is already protected by creator WWW‡ security.>... or competitors typing in www.mydomain.com/items.db and >getting a dump of our hard-earned database)?Yes, change the creator of your db files to WWW‡. WebCat does this automatically, but not until it sees a [closedatabase] command in a template, so you're better off doing it manually from the beginning ... just in case you don't use [closedatabase] in your templates.>Also, for neatnicks who like to organize everything into folders, what >WebCatalog files have to be together?DONT MOVE STUFF!As soon as you start moving the files that come with the WebCat distribution into different places, you're bound to create problems for yourself. In other words, forget about being a neatnik, and leave things where they are, and you'll be a LOT happier in the long run ... :)As far as the locations of any new files you create, that will depend upon how and from where you're calling them. The best technique is to keep each project in its own folder, always use relative URLs, then you can move the whole folder to another location inside the WebSTAR hierarchy and everything will still work fine ... provided you're using security instead of WebCatalog hierarchy security.>Do databases have to be in the >same folder as Webstar or WebCatalog or the templates that use them >(I've never seen a relative path to a database in examples)?No, databases don't have to be located anywhere special, you call them the same way you call templates. All my paths are relative, so if the examples are absolute instead of relative, that's just a coincidence. You should always use relative URLs whenever possible. Sincerely, Ken Grome WebDNA Solutions http://www.smithmicro.com/webdnasolutions/. Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[WebDNA] Storing time data in a database (2016) [WebDNA] [raw] tag with [interpret] question (2010) question about checkboxes (1999) transferring values (1998) OT: How to get more traffic to a site? (2005) MacAuthorize order data fields WAS:How To question... (1997) Corrupt Database Problem... (2000) Replace Statement (1997) SSL/Document Contains NO Data (1998) aaron kant add (2.x) (2000) Generating Pages (1999) Emailer.Out (1998) Linebreak as a delimiter in listwords? (2003) Mystery authentication (1997) [switch][case] (2004) Obtaining a dice result (2007) unable to launch acgi in WebCat (1997) Location of Webcat site in folder hierarchy (1997) Fufillment e-mail? (1998) Hard Questions ? (1997)