Apache Server configuration support - What are ScriptAliased directories?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > What are ScriptAliased directories?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author What are ScriptAliased directories?
joe

2006-02-17, 10:29 pm

I am having trouble getting CGI's to work in user directories. I think
part of the problem is that I don't understand how apache handles CGI
scripts.

I am working on a mac and have started with the default apache config,
which has CGI scripts go into the directory:
/Library/WebServer/CGI-Executables/

Does the apache directive 'ScriptAlias /cgi-bin/
"/Library/WebServer/CGI-Executables/"' mean that a directory placed in
a user's Sites folder called "cgi-bin" should be able to call any
script in CGI-Executables? Is an actual directory called cgi-bin
treated as an alias for CGI-Executables?

Yes, I'm a newbie...

MikeDawg

2006-02-17, 10:30 pm

/Library/WebServer/CGI-Executables is being treated as an alias for
/htdocs/cgi-bin (where htdocs is the root of your httpd server).

If a user goes to http://your.site/cgi-bin/ in all actuality they
are really aiming towards your /Library/WebServer/CGI-Executables/
directory.

joe

2006-02-17, 10:30 pm

Thanks MikeDawg - I've finally got this working.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com