Patrick,
 
The cgi-bin directory is meant for scripts by default bcoz of the setting mentioned in httpd.conf. The default document root is <apache_home>/htdocs if you place the html files in this directory you can view them thru browser using the URL:
 
my.html is your html filename.
 
 But if you want to see html files in cgi-bin directory only then:
 

you wil be required to modify the DocumentRoot from the default <apache_home>/htdocs to <apache_home>/cgi-bin and make the change for the above mentioned path from cgi-bin to some other directory

 

ScriptAlias /some_other_dir/ “/usr/local/some_other_dir/”

 

<Directory “/usr/local/some_other_dir”>

            Options +ExecCGI

            AllowOverride All

</Directory>

 

Regards,

Rahul Kohli
-----Original Message-----
From: Patrick Lam [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:38 PM
To: [EMAIL PROTECTED]
Cc: 'Vincent'
Subject: How can I display .html files in the /cgi-bin directory...

Dear all:

 

I have the following lines in my httpd.conf file:

 

-------------

ScriptAlias /cgi-bin/ “/usr/local/cgi-bin/”

 

<Directory “/usr/local/cgi-bin”>

            Options +ExecCGI

            AllowOverride All

</Directory>

------------------

 

However, I happen to have some .html files inside the /cgi-bin/ directory (it’s how the code is written).  I found that whenever I try to access the .html files in this directory I would get “500 Internal Server Error”.

 

How can I fix this problem?  I think this should be a pretty common one, right?

 

Thanks very much in advance,

 

Patrick

 

Reply via email to