files from home/user/domains/

DAjonck

Verified User
Joined
Apr 19, 2005
Messages
24
I Have two users, let say:
user_1 and user_2 with each, one domain, domain_01.com and domain_02.com

user_2 needs a file for his domain_02 from user_1 domain_01

the file is in:


/home/user_1/domains/domain_01.com/public_html/cgi-bin/file_1

and must be used bij file

/home/user_2/domains/domain_02.com/public_html/cgi-bin/file_2

the error log says:
can't locate /home/user_1/domains/domain_01.com/public_html/cgi-bin/file_1
 
Can't you make a copy of the file for each user?

Or are you trying to share both domain between the users (in which case why not create a single user with two domains...)
 
No, I can't make a copy because the info of the file is changes many times.

The option to make 1 user with 2 domains is an option, but the lines below, gives the same error,

/home/user_1/domains/domain_01.com/public_html/cgi-bin/file_1
/home/user_1/domains/domain_02.com/public_html/cgi-bin/file_2
 
Try creating a permanent link (not a symbolic link) from the file in one of the domains to the other.

Note that these links cannot be identified as links, but deleting one won't matter, no matter which was made first. The file will exist as long as one of the references to it still exists. Either file can be changed and since both files share the same disk space both files will reflect the change.

Is this any clearer than mud :rolleyes: ?

Jeff
 
No not realy it's more mud.

How to creating a permanent link?

in the file
/home/user_1/domains/domain_01.com/public_html/cgi-bin/file_1

I have a line like:

reguire: ''/home/user_1/domains/domain_02.com/public_html/cgi-bin/file_2";
 
Yes.

:)
Code:
# ln /path/to/target/file /path/to/link/filename

Note that for regular (non-symbolic) links to work, both the target file and the link filename need to be on the same partition.

With directories you must use symbolic links.

Code:
#man link
will give a lot of information.

Jeff
 
Guys,

Where must i make the link ?

in the cgi script?
in the httpd.conf or....

i perfer in the script

i have treid many diffrent thing but nothing works for me
 
Back
Top