[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: need help on webserver or apache

pasha wrote:
You should be modifying /etc/apache/httpd.conf (unless you have built the
source by hand - then: find /etc -iname "httpd.conf")

According to the documentation for apache 1.3 - you should be loading
mod_dir module somewhere in your httpd.conf (usually it is already included,
but could be commented out - in which case you should uncomment the line;
otherwise, this is the line from my httpd.conf:

LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so

then, somewhere in your httpd.conf you should also include the following

<IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.cgi
This 'should do the trick'.

As far as your cgi's are concerned, debianized system would often keep its
cgi scripts in /usr/lib/cgi-bin - but you should make sure that your
httpd.conf has appropriate entries for cgi's:

LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory /usr/lib/cgi-bin/>
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all

same thing , after i adding these line reboot, to my site fill out some info in my form, hit submit
the browser show

Method Not Allowed
The requested method POST is not allowed for the URL /index.html.

please help again, or any linuxer's advice

[these lines were taken from the default httpd.conf supplied with debian's
apache package]

Hope this helps... if you are having problems with cgi's in apache, you
should read over the following:


On Wed, Dec 11, 2002 at 04:51:50AM -0700, eric lin wrote:

but what exact command i should use or what file I should modify/ I search whole my disk only

www:/# find . | grep mod_dir
www:/# cd /var/www
www:/var/www# DirectoryIndex index.html /cgi-bin/index.pl
bash: DirectoryIndex: command not found

/usr/lib/apache/1.3/mod_dir.so  related

also I have a source code line is

<form method="post" enctype="text/plain" section="http://www.linuxspice.com/cgi-bin/entrance.cgi"; >

in my websource, should I create a directory cgi-bin and create a file name entrance.cgi in that dir in /var/www?

highly apprecaite your help on this issue

pasha wrote:

Have you tried specifying a 'DirectoryIndex' directive?

For info, go to:


On Wed, Dec 11, 2002 at 03:12:32AM -0700, eric lin wrote:

Dear Linuxer:

I also have a webserver and website question, I create a directory checkout in my /var/www which contain index.html itself
but if I type in any browser

it did not show the content in my /var/www/checkout/index.html

please help
Sincere Eric
linux pc for sale

Sincere Eric
linux pc for sale

Sincere Eric
linux pc for sale

Reply to: