Private documents made Public

Private documents made Public

Regular rules
  1. Access to selected areas of private content is provided by symbolic links.

  2. Private and Public URLs are very similar with only the following differences:

    1. http://z.lam1.us for public version
    2. https://q.lam1.us for private version
Note that the file name and the path after the domain name is identical.

Exception 1 - change extension to enable / disable wrapping

    Example

  1. Capture private URL

    For this page: https://q.lam1.us/Zz/z09/z0901/090110/Public-by-link.html

  2. Replace "https://q.lam1.us" with "ln -s /mnt/ts" to create a command to be executed at the shell when current directory is the the appropriate folder within the public directory.

  3. Open shell and navigate to the appropriate folder within the public directory creating parent folders as necessary.

  4. Execute the command created above.

    For this page: ln -s /mnt/ts/Zz/z09/z0901/090110/Public-by-link.html
If sucessfull you now have a second URL to the document that does not require SSL or authentication.

In this case: http://z.lam1.us/Zz/z09/z0901/090110/Public-by-link.html

Via the /Public site alias there is a third URL that provides a link to the unwrapped version of the document. In this case: http://z.lam1.us/Public/Content/z/Zz/z09/z0901/090110/Public-by-link.html

    More Examples

Besides this page I have also linked:

/Zz/z09/z0901/090110/Net-email-problems.html - follows regular rules

/Zz/z09/z0901/090110/test.html - follows the regular rules.

    Why do this?

  1. Only one version of the document exists. It exists in a place that although set up for secure authenticated access already is backed up on a regular basis.
  2. The link provides a record of the documents published status.
  3. Little space is used on the web server where only the symbolic link actally exists. Space usage is actually on the file server where document access is controlled by authentication and files are protected by RAID and backed up daily.
  4. The UNIX/Linux symbolic link and Apache FollowSymLinks seems like the right way to do this.

96 visits (1 today, 1 this week, 25 this month, 96 this year)
Uptime: 02:10:06 up 4 days, 7:53, 3 users, load average: 0.00, 0.00, 0.00
52.14.173.116 GET from server z.lam1.us

Sunday, December 22, 2024 @ 2:10:06 AM
z.ServerAdmin@lam1.us