On Sat, 2002-05-11 at 03:29, Bill Eldridge wrote:
> I'd personally avoid httpd.conf and try using
> srm.conf instead, since it's processed after
> httpd.conf and unused otherwise.
> It seems to be begging for you to load all your
> site-specific stuff there and avoid parsing through
> all the other unnecessary parts of httpd.conf

You would probably just want to put an Include into your httpd.conf, and
thus keep all the generated code seperate.  I see you can even include a
directory (which includes all subfiles -- perfect for a
1-file-1-virtual-host setup -- I think I'll use that myself).

Here's the description:

Include directive
Syntax: Include file-path|directory-path
Context: server config
Status: Core
Compatibility: Include is only available in Apache 1.3 and later.

This directive allows inclusion of other configuration files from within
the server configuration files.

The file path specified may be a fully qualified path (i.e. starting
with a slash), or may be relative to the ServerRoot directory.

New in Apache 1.3.13 is the feature that if Include points to a
directory, rather than a file, Apache will read all files in that
directory, and any subdirectory, and parse those as configuration files.

Examples:
Include /usr/local/apache/conf/ssl.conf
Include /usr/local/apache/conf/vhosts/

Or, providing paths relative to your ServerRoot directory:
Include conf/ssl.conf
Include conf/vhosts/

Make sure that an included directory does not contain any stray files,
such as editor temporary files, for example, as Apache will attempt to
read them in and use the contents as configuration directives, which may
cause the server to fail on start up. Running apachectl configtest will
give you a list of the files that are being processed during the
configuration check:

root@host# apachectl configtest
 Processing config directory: /usr/local/apache/conf/vhosts
 Processing config file: /usr/local/apache/conf/vhosts/vhost1
 Processing config file: /usr/local/apache/conf/vhosts/vhost2
Syntax OK

This will help in verifying that you are getting only the files that you
intended as part of your configuration.


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to