You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/12/04 02:25:34 UTC
Re: [users@httpd] Question about starting httpd
On Wed, 4 Dec 2002, H. Carter Harris wrote:
> httpd -f /usr/www/site.first/conf/httpd.conf -d /usr/www/site.first
>
> The httpd.conf is a very simple config file to allow me to play with the
> directives and hopefully learn something. The site is three pages also
> very simple. The other files and directories are also very simple.
>
> Here is the question: If I start apache this way is it limited to the
> directives in the file after the -f parameter?
Yes. But be careful that the ServerRoot in that file match the one you
pass on the command line, or wierd things can happen when apache takes a
second pass through httpd.conf.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Question about starting httpd
Posted by "H. Carter Harris" <ca...@technettn.net>.
I'm running a very simple conf file and webpage trying to figure it all out.
I have managed to get the log working using the following conf file but I
can't get the thing to find my index.html file without typing it as part of
the url (i.e. www.domain.com/index.html.
*******Begin*******
LoadModule config_log_module /usr/lib/apache/mod_log_config.so
LoadModule autoindex_module /usr/lib/apache/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/mod_dir.so
# The following lines generate a warning when conf is loaded saying they are
already loaded
# AddModule mod_log_config.c
# AddModule mod_dir.c
#
User webuser
Group webgroup
ServerName Mserver01
#
DocumentRoot /usr/www/site.first/htdocs
TransferLog /usr/www/site.first/logs/access_log
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.php3 index.shtml index.cgi
index.pl index.htm Default.htm default.htm
</IfModule>
*******End*******
I use "apachectl stop" to stop apache and then
httpd -f /usr/www/site.first/conf/httpd.conf -d /usr/www/site.first/htdocs
For the life of me I can't see why it won't see my index.html file. I must
be leaving a directive out or something. Thanks in advance for any
assistance. Carter
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Question about starting httpd
Posted by "H. Carter Harris" <ca...@technettn.net>.
Thanks, Joshua. I've had a problem that prompted the question. I'll check
that
next. -Carter
> directives in the file after the -f parameter?
>Yes. But be careful that the ServerRoot in that file match the one you
>pass on the command line, or wierd things can happen when apache takes a
>second pass through httpd.conf.
>Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org