Working with multiple httpd.conf's

This is a discussion on Working with multiple httpd.conf's within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello! In our development environment we have a per user httpd.conf (actually it's a copy of httpd.conf ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-25-2003
Asaf B.
 
Posts: n/a
Default Working with multiple httpd.conf's

Hello!

In our development environment we have a per user httpd.conf (actually
it's a copy of httpd.conf with the name <username>.conf).

Each of these files defines different error log, access log etc in
order and of course different port under the 'Listen' directive.
I also change the httpd script to receive a username as parameter (in
addition to the action: stop, start, etc), and act according to the
right .conf file.
Like that we work here without disturbing each other.

I recently added https capabilities and therefore needed to configure
the use of SSL in the httpd.conf's, when I worked under RedHat 7.1
with apache 1.3-19 I just added the followings:
##############
<IfDefine HAVE_SSL>
##
## SSL Virtual Host Context
##

# Apache will only listen on port 80 by default. Defining the
virtual server
# (below) won't make it automatically listen on the virtual server's
port.
Listen 443

# SSL Session Cache:
# The cache speeds up processing of multiple parallel requests from
# the same client.
SSLSessionCache shm:/var/cache/ssl_gcache_data(524288)

<VirtualHost _default_:443>

# General setup for the virtual host
#DocumentRoot "/var/www/html"
DocumentRoot "/view/main-asaf1/vobs/mng/exadmin/var/www/cgi-bin"

# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on

# Server Certificate:
# Point SSLCertificateFile at a PEM encoded certificate. If
# the certificate is encrypted, then you will be prompted for a
# pass phrase. Note that a kill -HUP will prompt again. A test
# certificate can be generated with `make certificate' under
# built time. Keep in mind that if you've both a RSA and a DSA
# certificate you can configure both in parallel (to also allow
# the use of DSA ciphers, etc.)
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
#SSLCertificateFile /etc/httpd/conf/ssl.crt/server-dsa.crt

# Server Private Key:
# If the key is not combined with the certificate, use this
# directive to point at the key file. Keep in mind that if
# you've both a RSA and a DSA private key you can configure
# both in parallel (to also allow the use of DSA ciphers, etc.)
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
#SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server-dsa.key

<Files ~ "\.(cgi|shtml)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/var/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

# Notice: Most problems of broken clients are also related to the
HTTP
# keep-alive facility, so you usually additionally want to disable
# keep-alive for those clients, too. Use variable "nokeepalive" for
this.
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown

# Per-Server Logging:
# The home of a custom SSL log file. Use this when you want a
# compact non-error SSL logfile on a virtual host basis.
CustomLog /var/log/httpd/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>
</IfDefine>
##############

And it worked. Let me remind that I have an additional 'Listen 1010'
line upper in the file for assigning file for the proper user, this
worked on redHat 7.1.

Now I'm trying to do the same on RedHat 9.0 with httpd-2.0-40 (I
copied the same SSL section from the 7.1 httpd.conf both use mod_ssl
directives) and I get the following errors when trying to start httpd:
##############
_default_ VirtualHost overlap on port 443, the first has precedence
Address already in use: make_sock: could not bind to address
0.0.0.0:443
no listening sockets available, shutting down
##############

I already searched here for these errors and verified that I have no
other server running http.
Anyone can help here?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0