Web Hosting Talk







View Full Version : accessing different directories on RAQ...


ememex
03-24-2001, 12:45 PM
i wanted to find out one thing...

i have a cgi script which stores data on one account, say http://www.me.com, on a raq. so its folder would be something like /home/users/me-www or whatever.

now i have another user, http://www.metoo.com, on the same raq, with /home/users/metoo-www. now can i set permissions so that the metoo.com person can access files from /home/users/me-www/cgi-bin or not?

what if both sites are my own and i am the admin? does someone know how to do this? i want to create two sites with the same content but different layout/design/additional stuff on one site so i need to pick up data from one account and use it on the other site.

please let me know!

thanx!

Phiberop
03-24-2001, 07:48 PM
Here is something you can try. This will create a cgi-bin that anybody with a virtual site can access.

Telnet/SSH into your RaQ as admin

Do this: mkdir /home/sites/home/web/pub-cgi/ <------or whatever you want the cgi-bin to be named

Then do: chmod 755 /home/sites/home/web/pub-cgi/

Login as root via su -

Open up your httpd.conf file with your fav text editor such as pico with: pico /etc/httpd/conf/httpd.conf

Add this line in httpd.conf anywhere: ScriptAlias /pub-cgi//home/sites/home/web/cgi-pub/

Restart apache with: /etc/rc.d/init.d/httpd restart

This will replicate the pub-cgi directory to all the virtual sites and they may then access any scripts you upload to /home/sites/home/web/pub-cgi/ just make sure you upload them as admin.

Regards,

Mike

ememex
03-25-2001, 07:12 AM
thanx a lot for this, i havent tried it but i hope it works.

just one thing - is there a space in the ScriptAlias line you wrote?

thanks again!

eMeMeX

Phiberop
03-25-2001, 10:31 PM
Oops, yes there is a space between in the ScriptAlias line, it should be as follows:

ScriptAlias /pub-cgi/ /home/sites/home/web/cgi-pub/

Regards,

Mike