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.
102 visits (1 today, 1 this week, 31 this
month, 102 this year)
Uptime: 02:49:38 up 11 days, 8:33, 7 users, load average: 0.00, 0.02, 0.00
18.227.134.165 GET from server
z.larryforalaska.com
Sunday, December 29, 2024 @ 2:49:38 AM
z.ServerAdmin@lam1.us