Private documents made Public
Regular rules
- Access to selected areas of private content is provided by symbolic links.
- Private and Public URLs are very similar with only the following differences:
- http://z.lam1.us for public version
- 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
- Capture private URL
For this page:
https://q.lam1.us/Zz/z09/z0901/090110/Public-by-link.html
- 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.
- Open shell and navigate to the appropriate folder within the public
directory creating parent folders as necessary.
- 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?
- 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.
- The link provides a record of the documents published status.
- 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.
- The UNIX/Linux symbolic link and Apache FollowSymLinks seems like
the right way to do this.
97 visits (2 today, 2 this week, 26 this
month, 97 this year)
Uptime: 03:01:47 up 4 days, 8:45, 3 users, load average: 0.00, 0.01, 0.00
3.135.214.226 GET from server
z.larrymurakami.com
Sunday, December 22, 2024 @ 3:01:47 AM
z.ServerAdmin@lam1.us