How to share CGI Scripts across UNIX web server?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to share CGI Scripts across UNIX web server?
# 1  
Old 02-05-2007
How to share CGI Scripts across UNIX web server?

Hi, is it possible to create a CGI folder somewhere on the server and allow all domains on that server be able to access the scripts? I tried a ScriptAlias addition in httpd.conf but still no luck. Would greatly appreciate any tips! Thanks.

Linux version 2.4.20-021stab028.3.777-enterprise
Plesk 7.5.4
# 2  
Old 02-05-2007
Hmm ... does the mod_rewrite + Alias directive combination work for you?
# 3  
Old 02-05-2007
Thanks for the reply! The only experiance I have with mod_rewrite is on a per-domain basis, modifying the .htaccess file if I remember correctly. But if there's a server-wide mod_rewrite possibility, I'll have to explore that avenue. Basically, though, I was looking for a modification at the top level so any domains created in the future would automatically have access to an "extra" cgi folder - one that is shared with all other domains. Unfortunately I'm a complete novice at Unix.
# 4  
Old 02-06-2007
I was thinking of something.... I assume that you want any new domain to benefit the content of this shared folder ? If yes, simple create a script who will copy all the files from the shared folder to a newly created one, logic follows :
add new virtual host/domain > create a cgi-bin folder > copy * from shared folder to cgi-bin folder.
# 5  
Old 02-06-2007
Quote:
Originally Posted by karlsworld
Unfortunately I'm a complete novice at Unix.
That is Apache configuration. Apache on Windows are configured in exactly the same way.

Surely mod_rewrite can be configured at httpd.conf. In fact, if you don't want your users to mess with whatever overrides, you should probably not allow them to use .htaccess to override URL rewriting stuff in the first place.

Just try the direction and see what you get.
# 6  
Old 02-06-2007
Excellent, I'll explore those possibilities and we shall see!

Sysgate, that's a good point, that I can simply use an automated task to duplicate a folder of pre-existing scripts for each newly created (or existing) domain, but I was trying to avoid having to perform that same task every time a script was updated. In my search for an answer, I did come across what looked like the ability to make a "default" cgi-bin folder that was pre-filled with scripts, and that could be added to each new domain by default. But was looking for more of a "shared" solution so that they could all access any updated scripts without having to copy it to each individual cgi-bin folder every time. Great idea though.

cbkihong, so far your mod_rewrite suggestion seems like it may be closest solution to what I'm looking for, so I am going to do some experimenting with that.

Thanks again guys!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Apache/CGI Bin Accessing mounted SMB share

Hey Guys, I need to copy some files from my Apache server to SMB share ... copy $file,"/Volumes/v1/x/test/$datestamp$name$suffix" Unfortunately this command when executed from Apache/cgi-bin is not able to access mounted volumes .. is there anything that can be done about that ... Can... (1 Reply)
Discussion started by: NDxiak
1 Replies

2. UNIX for Dummies Questions & Answers

To copy a file from one unix server to another unix server through scripts

I am getting the fallowing error when i am trying to execute the scp commomd in shell script warning: You have no controlling tty. Cannot read confirmation. warning: Authentication failed. Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.). scp2: warning: ssh2... (1 Reply)
Discussion started by: manit
1 Replies

3. UNIX for Dummies Questions & Answers

How do I share a directory in UNIX for another UNIX server?

Hi, Here's my newbie question! I've two servers with Oracle on. I've created an oralce export (10 GB) on server 1. Server 2 does not have enough space to copy the export and import it. I'd like to import the export from server 1 to server 2 remotely. If this was windows I'd create a... (2 Replies)
Discussion started by: AngryBunny
2 Replies

4. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. with simple example please. Thanks in... (2 Replies)
Discussion started by: phatan
2 Replies

5. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. Thanks in advance. Phatan:) (2 Replies)
Discussion started by: phatan
2 Replies

6. Shell Programming and Scripting

How to share CGI Scripts across UNIX web server?

Hi, is it possible to create a CGI folder somewhere on the server and allow all domains on that server be able to access the scripts? I tried a ScriptAlias addition in httpd.conf but still no luck. Would greatly appreciate any tips! Thanks. Linux version 2.4.20-021stab028.3.777-enterprise Plesk... (1 Reply)
Discussion started by: karlsworld
1 Replies

7. UNIX for Dummies Questions & Answers

How to connect unix server via web

How can I conncet web server via web? What are the pre- requist? I am having only one Public IP, I am useing SCO OPEN SERVER 5.0.5 Help Me. Thanks in advance (3 Replies)
Discussion started by: max_san007
3 Replies

8. UNIX for Advanced & Expert Users

Web server configuration in Unix

Dear All, i'm very new to this forum, infact just joined today. :o . i want to install and configure web server on Unix (Sco Openserver 5.0.7). i want any documents or text guide on this..... awaiting for experts help, Thanx Nikhil (1 Reply)
Discussion started by: niksharma
1 Replies

9. UNIX for Dummies Questions & Answers

Web browser and web server for Unix

Hi there all I am looking for both a web browser as well as a web server (Ie. Netscape Fasttrack) that will run on HPUX 10. If you know where I can get these free via FTP, please contact me as soon as possible!! Thanks, Mark (1 Reply)
Discussion started by: mleathers
1 Replies

10. UNIX for Dummies Questions & Answers

Dynamic web pages for Unix Web Server

Hi, my company is considering a new development of our web site, which used to run on Apachi over Solaris. The company who is going to do this for us knows only about developing it in ASP. I guess this means we'll have to have another ISS server on NT for these dynamic pages :( What are... (5 Replies)
Discussion started by: me2unix
5 Replies
Login or Register to Ask a Question