Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Iron Speed
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 16th, 2000, 02:08 PM
rtna rtna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 79 rtna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Our students have their own virtual space of WWW homepage in /home/userID/html/,
Their URL are http://aaa.com/~userID/
Now we need to set CGI execable for each directory of users in a subdirectory.
The URL is http://aaa.com/~userID/cgi-bin/
Therefore we add a Directory tag in httpd.conf,
--Directory "/home/*/html/cgi-bin-------
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
--Directory-----------------------------
When we run hello.pl using browser, http://aaa.com/userID/cgi-bin/hello.pl
but the browser print the source code of hello.pl.
What should we do ?

Reply With Quote
  #2  
Old May 16th, 2000, 10:13 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
# add this line to your httpd.conf

AddHandler cgi-script .pl .cgi

Reply With Quote
  #3  
Old May 17th, 2000, 11:28 AM
rtna rtna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 79 rtna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
I have these line in htt[d.conf:
-Directory /home/*/html-
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
-Limit GET POST OPTIONS PROPFIND-
Order allow,deny
Allow from all
-/Limit-
-LimitExcept GET POST OPTIONS PROPFIND-
Order deny,allow
Deny from all
-/LimitExcept-
-/Directory-

AddHandler cgi-script .cgi .pl
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"

-Directory "/home/httpd/cgi-bin"-
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
-/Directory-

-Directory "/home/*/html/cgi"-
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
-/Directory-
The result is:
HTTP/1.1 200 OK Date: Thu, 18 May 2000 08:14:27 GMT Server: Apache/1.3.12 (Unix) PHP/4.0RC2 mod_layout/1.6 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1
OK
You don't have permission to access /~gigi/cgi/hello.pl on this server.

Reply With Quote
  #4  
Old May 17th, 2000, 02:55 PM
rtna rtna is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 79 rtna User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
It's work
/home/*/html/cgi/hello.pl ----200 OK(Error)
/home/*/html/cgi/hello.cgi ---It's work
But I don't know why
Because
/home/httpd/cgi-bin/hello.pl --- It's work

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > How to set CGI execable for each user ?


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway