Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

httpd.conf and virtual hosts, mod_ssl - Need Help plz

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Virtual Hosts? - I'm wanting to use one IP address to host multiple domains, ie web hosting. I assume that are the thin I need to focus on here and is this basically a similar concept to Host Headers in IIS 5.0? I'm running Windows 2000 with Apache 2.0.46 ..

local virtual hosts - i've read many posts about this subject, but none have been exactly what i'm looking for. I have Apache 2.0.46 running Redhat 9. This PC along with 3 others are on a Dl-614+ router. I want to use the redhat machine as a server for several..

Virtual Hosts :: logs - Hey all- I have apache 2.0.46 running the following virtual hosts, plus a few more: *> *> awhc.org

Configuring virtual hosts on an intranet - I have seen how to configure virtual hosts by name when a server in connected to the internet. But can it be done when working in an intranet and you don't have DNS and you normally enter I would like to give a couple of people in a..

Virtual Hosts on seperate machines? - Hey Everyone, Simple question that I've not been able to figure out. I thought this was possible but now am about to accept it isn't. What I need to do is to set up a master machine with apache and then route traffic to other apache webserver based on..
Author Message
huwdixon

External


Since: Jul 07, 2003
Posts: 2



(Msg. 1) Posted: Tue Jul 08, 2003 1:36 am
Post subject: httpd.conf and virtual hosts, mod_ssl - Need Help plz
Archived from groups: alt>apache>configuration (more info?)

Hi - here's my situ: 1 server w/apache/mod_ssl with 3 virtual hosts
running behind firewall - 1 ip address. Trying to get one (1) of the
virtual hosts to be accessible thru ports 80 and 443. After 20 hours
of RTFM, my attempts to connect to https for that particular host just
hang. Everything else is fine.

Iv got the approp httpd.conf snippets below. Can someone tell me what
Im missing or have labeled wrong please? Many thanks for any pointers.

**********HTTPD.CONF *************
..
..
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
..
..
..
..
LoadModule ssl_module /usr/lib/apache/1.3/mod_ssl.so
..
..
..
#
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need apache to be run as root initially.
#

<IfModule mod_ssl.c>
Listen 80
Listen 443
</IfModule>
..
..
..
..
##
## SSL Global Context
##
## All SSL configuration in this context applies both to
## the main server and all SSL-enabled virtual hosts.
##

#<IfModule mod_ssl.c>
#Listen 80
#Listen 443
#</IfModule>

#
# Some MIME-types for downloading Certificates and CRLs
#
<IfModule mod_ssl.c>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfModule>

<IfModule mod_ssl.c>

# Pass Phrase Dialog:
# Configure the pass phrase gathering process.
# The filtering dialog program (uiltin' is a internal
# terminal dialog) has to provide the pass phrase on stdout.
SSLPassPhraseDialog builtin

# Inter-Process Session Cache:
# Configure the SSL Session Cache: First either one'
# or bm:/path/to/file' for the mechanism to use and
# second the expiring timeout (in seconds).
#SSLSessionCache none
#SSLSessionCache shm:logs/ssl_scache(512000)
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300

# Semaphore:
# Configure the path to the mutual explusion semaphore the
# SSL engine uses internally for inter-process synchronization.
SSLMutex file:/var/run/ssl_mutex

# Pseudo Random Number Generator (PRNG):
# Configure one or more sources to seed the PRNG of the
# SSL library. The seed data should be of good random quality.
# WARNING! On some platforms /dev/random blocks if not enough
entropy
# is available. This means you then cannot use the /dev/random
device
# because it would lead to very long connection times (as long as
# it requires to make more entropy available). But usually those
# platforms additionally provide a /dev/urandom device which doesn't
# block. So, if available, use this one instead. Read the mod_ssl
User
# Manual for more details.
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
#SSLRandomSeed startup file:/dev/random 512
#SSLRandomSeed startup file:/dev/urandom 512
#SSLRandomSeed connect file:/dev/random 512
#SSLRandomSeed connect file:/dev/urandom 512

# Logging:
# The home of the dedicated SSL protocol logfile. Errors are
# additionally duplicated in the general error log file. Put
# this somewhere where it cannot be used for symlink attacks on
# a real server (i.e. somewhere where only root can write).
# Log levels are (ascending order: higher ones include lower ones):
# none, error, warn, info, trace, debug.
#SSLLog /var/log/apache/ssl_engine_log
#SSLLogLevel info

</IfModule>



### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on
your
# machine you can setup VirtualHost containers for them.
# Please see the documentation at
<URL:http://www.apache.org/docs/vhosts/>
# for further details before you try to setup virtual hosts.
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# If you want to use name-based virtual hosts you need to define at
# least one IP address (and port number) for them.
#
NameVirtualHost 10.10.10.180:80
NameVirtualHost 10.10.10.180:443
<VirtualHost 10.10.10.180:80>
ServerAdmin joeblow RemoveThis @hotmail.com
DocumentRoot "/var/www/domain1.com"
ServerName www.domain1.com
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog /var/log/apache/domain1-error_log
CustomLog /var/log/apache/domain1-access_log combined
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin"
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
</VirtualHost>
#
<VirtualHost 10.10.10.180:443>
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache/server.crt
SSLCertificateKeyFile /etc/apache/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</IfModule>
ServerAdmin joeblow RemoveThis @hotmail.com
DocumentRoot "/var/www/domain1.com"
ServerName www.domain1.com
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog /var/log/apache/domain1-error_log
CustomLog /var/log/apache/domain1-access_log combined
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin"
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
</VirtualHost>

<VirtualHost 10.10.10.180:80>
ServerAdmin joeblow RemoveThis @hotmail.com
DocumentRoot "/var/www/domain2.com"
ServerName www.domain2.com
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog /var/log/apache/domain2-error_log
CustomLog /var/log/apache/domain2-access_log combined
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin"
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
</VirtualHost>
<VirtualHost 10.10.10.180:80>
ServerAdmin joeblow RemoveThis @hotmail.com
DocumentRoot "/var/www/domain3.org/webroot"
ServerName www.domain3.org
LogFormat "%h %l %u %t \"%r\" %>s %b" common
ErrorLog /var/log/apache/domain3_error_log
CustomLog /var/log/apache/domain3-access_log combined
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin"
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
<IfModule mod_php4.c>
DirectoryIndex index.php index.php3 index.html
</IfModule>
</VirtualHost>

 >> Stay informed about: httpd.conf and virtual hosts, mod_ssl - Need Help plz 
Back to top
Login to vote
davide

External


Since: Jul 07, 2003
Posts: 44



(Msg. 2) Posted: Tue Jul 08, 2003 8:49 am
Post subject: Re: httpd.conf and virtual hosts, mod_ssl - Need Help plz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Huw Dixon <huwdixon.RemoveThis@netrox.net> wrote:
 > of RTFM, my attempts to connect to https for that particular host just
 > hang

Your firewall is leaving port 443 open, doesn't he?

 > NameVirtualHost 10.10.10.180:80
 > NameVirtualHost 10.10.10.180:443

I'd do:

NameVirtualHost *

<VirtualHost *:80>
....
</VirtualHost>


<IfModule mod_ssl.c>
<VirtualHost *:443>
....
</VirtualHost>
</IfModule>

When you start Apache, can you connect with port 443 on the same
machine? Using telnet for example, just to be sure that Apache is
listening on that port?

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: httpd.conf and virtual hosts, mod_ssl - Need Help plz 
Back to top
Login to vote
huwdixon

External


Since: Jul 07, 2003
Posts: 2



(Msg. 3) Posted: Tue Jul 08, 2003 9:16 am
Post subject: Re: httpd.conf and virtual hosts, mod_ssl - Need Help plz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Actually David, you are correct, although I had just figgered it out.
It was sheer tiredness one my part. I woke up this morning and
instantly knew what the problem was. I was so buried in it yesterday I
was forgetting the basics. Geez. So - problem solved. Lesson learned.

Thanks much for the reply.

Huw



davide.DeleteThis@yahoo.com wrote in message news:<bedm1b$3o4cv$1@ID-18487.news.dfncis.de>...
 > Huw Dixon <huwdixon.DeleteThis@netrox.net> wrote:
  > > of RTFM, my attempts to connect to https for that particular host just
  > > hang
 >
 > Your firewall is leaving port 443 open, doesn't he?
 >
  > > NameVirtualHost 10.10.10.180:80
  > > NameVirtualHost 10.10.10.180:443
 >
 > I'd do:
 >
 > NameVirtualHost *
 >
 > <VirtualHost *:80>
 > ...
 > </VirtualHost>
 >
 >
 > <IfModule mod_ssl.c>
 > <VirtualHost *:443>
 > ...
 > </VirtualHost>
 > </IfModule>
 >
 > When you start Apache, can you connect with port 443 on the same
 > machine? Using telnet for example, just to be sure that Apache is
 > listening on that port?
 >
 > Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: httpd.conf and virtual hosts, mod_ssl - Need Help plz 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]