Apparently I don’t know enough about how your domains are set up.
You will have to do something for each domain. You’ll either have to have a separate copy of the PlugIt script or you will have to add an alias for each domain using Remap Sub-dir.
So here’s a walk through of using Remap Sub-dir:
- Make the directory /home/username/global and upload the text file there, eg “filename.txt”
- For each domain, upload the HTML file eg “statistics.shtml” to the web directory with the following include:
<!--#include virtual="/global/filename.txt" -->2. For each domain, in the web panel use Remap Sub-dir to map
http://domain/global/ to /home/username/global/
3. For each domain, verify that http://domain/global/ shows a directory index
4. For each domain, verify that http://domain/global/filename.txt shows the text file contents
5. For each domain, verify that http://domain/statistics.shtml shows the web page with the text file contents included.
It should be this simple and should work even if you were using more than one user, given that the permissions and ownership are compatible.
The first mistake that comes to mind is getting the virtual parameter wrong. It is a local url-path (no scheme and hostname), not a filesystem path. It should be relative to the document url or absolute where the web directory is root. That is to say
<!--#include virtual="http://domain/global/filename.txt" -->is not correct form and will not work.
When you get an error from the web site you will need to consult the error log file to determine what caused the error. Unless you can tell me the cause of the error you should either contact support or contact me privately.
I have used the same “trick” for a couple of years now to manage CSS and image files across more than one domain without problems.
openvein.org -//- One-time [color=#6600CC]$50.00 discount[/color] on [color=#0000CC]DreamHost[/color] plans: Use ATROPOS7