httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madere, Colin" <colin.mad...@ieminc.com>
Subject RE: [users@httpd] IP-based vhosts and domain names problem
Date Tue, 28 Jan 2003 23:01:58 GMT
Nothing funny and DNS is correct.  SSL and SSI are on and working.

Here's a less obscured httpd.conf (SSL setup is for testing and works, I
know I should use urandom and such):

...
ServerName brsun3.ieminc.com
UseCanonicalName Off
DocumentRoot "/www"
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/www">
    Options Indexes FollowSymLinks IncludesNOEXEC
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
...
Listen 192.168.16.208:80
...
<VirtualHost 192.168.16.208:80>
    DocumentRoot "/www/one/two/three/four"
    ServerName www.company.com
    ServerAdmin webmaster@b.com
    ErrorLog logs/error_log
    TransferLog logs/access_log

    Include conf/jk-publicapps.conf
</VirtualHost>

# SSL-secured sites
<IfDefine SSL>

Listen 192.168.16.171:443
Listen 192.168.16.172:443
Listen 192.168.16.173:443

AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

SSLSessionCache         dbm:logs/ssl_scache
SSLSessionCacheTimeout  300

SSLMutex  file:logs/ssl_mutex

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin

##
## SSL Virtual Host Context
##

############### three ##################
<VirtualHost 192.168.16.171:443>

#  General setup for the virtual host
DocumentRoot "/www/one/two/three"
ServerName www-three.company.com
ServerAdmin webmaster@b.com
ErrorLog logs/error_log
TransferLog logs/access_log

#  SSL stuff
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.pem

SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>                                  

####################### two #####################
<VirtualHost 192.168.16.172:443>

#  General setup for the virtual host
DocumentRoot "/www/one/two"
ServerName www-two.company.com
ServerAdmin webmaster@b.com
ErrorLog logs/errorfoo_log
TransferLog logs/accessfoo_log

#  SSL stuff
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.pem

SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>                                  

################ one #####################
<VirtualHost 192.168.16.173:443>

#  General setup for the virtual host
DocumentRoot "/www/one/"
ServerName www-one.company.com
ServerAdmin webmaster@b.com
ErrorLog logs/error_log
TransferLog logs/access_log

#  SSL stuff
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/server.pem

SetEnvIf User-Agent ".*MSIE.*" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>                                  

</IfDefine>


> -----Original Message-----
> From:	Joshua Slive [SMTP:joshua@slive.ca]
> Sent:	Tuesday, January 28, 2003 4:35 PM
> To:	'users@httpd.apache.org'
> Subject:	Re: [users@httpd] IP-based vhosts and domain names problem
> 
> 
> On Tue, 28 Jan 2003, Madere, Colin wrote:
> > Problem:
> >   When using IPs to browse to servers, all works fine.  When using names
> to
> > browse, requests to all domain names serve up content from the
> default/first
> > site (or vhost #1) on port 80.  With log files set up for each different
> > vhost, the hit gets recorded in that vhosts log file, but the content is
> > pulled from the DocumentRoot of the site on port 80 (vhost #1).  As I
> said
> > above, when IPs are used the appropriate content gets served.
> 
> You've so thouroughly obscured your config that it is very difficult to
> tell what is going on.  The first things I would check are:
> 
> 1. Is the DNS mapping really correct?
> 
> 2. Are you running any "funny" third-party modules, like mod_dyn_vhost for
> example?
> 
> Other than that, please post the unobscured vhost configuration (real
> names and IP addresses) so we can check it more easily.
> 
> 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

---------------------------------------------------------------------
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


Mime
View raw message