[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
lines:

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

although thanks your advice, but after I modify(adding that 3 lines) my /etc/apache/httpd.conf
then reboot
open mozilla 1.2.1-3 newest from debian upgrade of unstable, type in http://www.linuxspice.com/checkout
it still a piece of white
but if you click my wite's bottom's hyperlink checkout, it do can show the content I edit in my /var/www/checkout/index.html
please help again or any linuxer's advice
sincere Eric



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
</Directory>

[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:
http://httpd.apache.org/docs/mod/mod_cgi.html

:P

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
/usr/share/doc/apache/manual/mod/mod_dir.html.en
/usr/share/doc/apache/manual/mod/mod_dir.html.html
/usr/share/doc/apache/manual/mod/mod_dir.html.ja.jis
/usr/lib/apache/1.3/110mod_dir.info
/usr/lib/apache/1.3/mod_dir.so
www:/# cd /var/www
www:/var/www# DirectoryIndex index.html /cgi-bin/index.pl
bash: DirectoryIndex: command not found
www:/var/www#

/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:
http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex

:P

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
http;//www.myregistereddomain.com/checkout

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

please help
--
Sincere Eric
www.linuxspice.com
linux pc for sale




--
Sincere Eric
www.linuxspice.com
linux pc for sale





--
Sincere Eric
www.linuxspice.com
linux pc for sale



Reply to: