Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
  #1  
Old February 18th, 2002, 05:28 PM
jburris jburris is offline
PHP wannabe
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Tyler, Tx
Posts: 16 jburris User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
setting .htaccess on cgi-bin directory

I have a ShopSite Shopping cart program and it uses .htaccess to login the program. It is a perl program. I have switched to a new ISP and I am now administrating the apache server. On the old server it allowed the .htaccess in the cgi-bin. The ISP who set the server does not know how to change apache to allow .htaccess in anything but the web directory. Does anybody know how to allow additional directories (mainly the cgi-bin) to have .htaccess and .htpasswd abilities.

Thanks in advance. If you need anymore information just let me know and I will give it.

John Burris
webmaster

Reply With Quote
  #2  
Old February 18th, 2002, 06:33 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
When your ShopSite Shopping cart program tells you to put non CGI stuffs into your cgi-bin directory, I have to tell you not to use them, because their software is probably not written with security in mind.
What is cgi-bin for?
That's a centralize location for you to place all your CGI scripts into, so CGI scripts don't reside all over your docroot.
When your cgi-bin is ScriptAlias'ed, this enforces you to follow cgi-bin security standard. That is, you cannot place anything beside true CGI scripts into your cgi-bin directory, no nav.gif, no env.php, no .htaccess, no .htpasswd, no foobar.html and only true CGI scripts, nothing else.

>> how to allow additional directories (mainly the cgi-bin) to have .htaccess and .htpasswd abilities

You should place your .htpasswd above your docroot. You also don't need .htaccess because things that you put in .htaccess can always be defined in httpd.conf. If you must place them in cgi-bin, just don't ScriptAlias your cgi-bin directory and give it a Options +ExecCGI.
When you need to put non-CGI scripts or mkdir a directory under cgi-bin, why bother to use cgi-bin in the first place, as that defeats the whole security purpose for making a ScriptAlias directive.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > setting .htaccess on cgi-bin directory


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
Stay green...Green IT