The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Losing Market Share to Windows Server - eWeek iBot UNIX and Linux RSS News 0 10-25-2007 09:40 PM
Linux Losing Market Share to Windows Server - eWeek iBot UNIX and Linux RSS News 0 10-25-2007 09:10 PM
How to share CGI Scripts across UNIX web server? karlsworld Shell Programming and Scripting 1 02-05-2007 09:32 PM
how i can share the file between unix or linux in windows ?? msn22 Linux 4 12-07-2006 03:13 PM
Accessing files on unix share from xp? MrB UNIX for Dummies Questions & Answers 1 08-22-2005 03:50 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-05-2007
karlsworld karlsworld is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 6
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 (permalink)  
Old 02-05-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Hmm ... does the mod_rewrite + Alias directive combination work for you?
  #3 (permalink)  
Old 02-05-2007
karlsworld karlsworld is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 6
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 (permalink)  
Old 02-06-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
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 (permalink)  
Old 02-06-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
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 (permalink)  
Old 02-06-2007
karlsworld karlsworld is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 6
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!
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0