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

Re: need help on webserver or apache



pasha wrote:
can you send me your entire httpd.conf file? It isn't necessarily the
problem with these lines, but could also be affected by their location
within the file, among with other things... So, to make things much easier,
and quicker, to resolve - I'd like to take a loot at your entire httpd.conf
file.


On Wed, Dec 11, 2002 at 08:51:25AM -0700, eric lin wrote:

pasha wrote:

Check your apache's log to see what goes wrong...

tail -f /var/log/apache/errors.log

then restart your apache (using a different term window) and watch what goes
in your errors.log. If you don't find anything useful during restart of
apache - then see what happens when you access the directory with your
mozilla. Also, make sure that the directory in question is registered in
your httpd.conf (<Directory> directive)...

make sure you have the modules, and apache knows about them...
for example, you might need to add the following line to your httpd.conf:

AddModule mod_dir.c

and then restart your apache. After the modules have been loaded, you can
simply comment out the above line from your httpd.conf file.
The same applies to your cgi.

:P

I add these in the end of /etc/apache/httpd.conf

it turn out my site can not be access altogether

please feel free to modify, probably the order is not correct or other factor. It have 2 loadModule in the front part.

sincere Eric

<Directory /var/www/checkout/>
 AllowOverride None
 Option ExecCGI
 Order allow,deny
 Allow from all
</Directory>

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





AddModule mod_dir.c

<IfModule mod_dir.c>
   DirectoryIndex index.html index.htm index.shtml index.cgi
</IfModule>


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

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




# This is the main server configuration file. See URL http://www.apache.org/
# for instructions.

# Do NOT simply read the instructions in here without understanding
# what they do, if you are unsure consult the online docs. You have been
# warned.

# Originally by Rob McCool

# Shared Object Module Loading:
# To be able to use the functionality of a module which was built
# as a shared object you have to place corresponding `LoadModule'
# lines at this location so the directives contained in it are
# actually available _before_ they are used.
# Example:

# ServerType is either inetd, or standalone.

ServerType standalone



Reply to: