Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Directory Autoindexing - /cgi-bin

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  apache +ssl probelm  
Author Message
nandagopalnair

External


Since: Oct 07, 2003
Posts: 8



(Msg. 1) Posted: Wed Oct 22, 2003 2:35 pm
Post subject: Directory Autoindexing - /cgi-bin
Archived from groups: alt>apache>configuration (more info?)

LoadModule cgi_module lib/httpd/mod_cgi.so

ScriptAlias /cgi-bin /var/www/cgi-bin

<Directory "/var/www/cgi-bin">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>

From what I understand from the docs, I should get an auto index under
virtual path /cgi-bin . Instead I get a 403 Forbidden.

The directory /var/www/cgi-bin is world readable and the scripts under
it world executable - If I point it to /cgi-bin/script.cgi it executes
the script and throws me the output as expected. The only thing I don't
get is an auto index.

Makes me wonder if ScriptAliasing somehow disables autoindexing.

Any ideas guys?

 >> Stay informed about: Directory Autoindexing - /cgi-bin 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Oct 22, 2003 11:04 pm
Post subject: Re: Directory Autoindexing - /cgi-bin [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

N Nair <nandagopalnair DeleteThis @netscape.net> wrote:
 > Makes me wonder if ScriptAliasing somehow disables autoindexing.

Yes it does. Since the ScriptAlias directive has the side effect
of making Apache considering everything that stand in the pointed
directory as a CGI script to execute, so that effectively prevent
the creation of a directory listing.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Directory Autoindexing - /cgi-bin 
Back to top
Login to vote
nandagopalnair

External


Since: Oct 07, 2003
Posts: 8



(Msg. 3) Posted: Wed Oct 22, 2003 11:04 pm
Post subject: Re: Directory Autoindexing - /cgi-bin [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply David. I confirmed the theory by changing the
scriptalias to alias, when it started generating indexes.

Maybe I should just alias it and give it +ExecCGI . Or do an extension
based AddHandler.

Davide Bianchi wrote:
 > Yes it does. Since the ScriptAlias directive has the side effect
 > of making Apache considering everything that stand in the pointed
 > directory as a CGI script to execute, so that effectively prevent
 > the creation of a directory listing.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Directory Autoindexing - /cgi-bin 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
upload directory - Hello All, <font color=purple> ; How can I configure Apache to use a DIFFERENT upload directory? </font> OR, allow .php to override Apache's default upload dir of /tmp? thanks B

directory sharing - how can i share directory(-ies) from outside of Apache htdocs tree as subfolders in that tree? is it possible to do in Apache configuration file or maybe by another way ? ps:sorry for my english;) -- pozdr;) zhisol

<Directory> question - Shouldn't the following container deny access to files in the /var/www directory (and beyond) from all clients except 12.34.56.78 ?? <Directory /var/www> order deny,allow deny from all allow from 12.34.56.78 </Directory> I put...

Can run cgi scripts in different directory? - I am trying to get apache to run scripts from a different directory other than the standard one. (/var/www/cgi-bin). I have added the add handler statement and believe I have set up apache correctly. I here that It has something to do with chroot? Any...

user directory index - Hi all, On my Mac OS X system Apache creates an index in the DocumentRoot (http://localhost/) if no index.html is present but in the user directory (http://localhost/~username/) no index is created if no index.html page is present. I get permission denie...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]