Greetings,
So what I am trying to do is not new, I have come across a couple of posts on this site and some notes at apache.org that go over this, still I am not doing something right. I have one apache 1.3.29 server and I want to run two different sites off of it both having their own domain name and IP. They are and right now when I try those URLs the site comes up but in both cases it is pointing to the DocumentRoot.
So I tried to grab everything that looked relative to the problem out of the conf file:
Another question is this: I do all of my development on a local box that mirrors the production server. Of course this server has all a different IPs than the ones assigned to the production server. How do I test to see if the SSL virtual hosts are working on the dev machine before I post it to the production server?
Thanks
Jim
So what I am trying to do is not new, I have come across a couple of posts on this site and some notes at apache.org that go over this, still I am not doing something right. I have one apache 1.3.29 server and I want to run two different sites off of it both having their own domain name and IP. They are and right now when I try those URLs the site comes up but in both cases it is pointing to the DocumentRoot.
So I tried to grab everything that looked relative to the problem out of the conf file:
Code:
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
### Section 2: 'Main' server configuration
Listen 80
<IfDefine SSL>
Listen 443
</IfDefine>
ServerName [URL unfurl="true"]www.mysite.com[/URL]
DocumentRoot /usr/local/mysite/PHPsite/apache/htdocs
UseCanonicalName On
### Section 3: Virtual Hosts
# .com defined
NameVirtualHost ###.###.###.194
<VirtualHost ###.###.###.194>
ServerName [URL unfurl="true"]www.mysite.com[/URL]
ServerAlias mysite.com *.mysite.com
DocumentRoot /usr/local/mysite/PHPsite/apache/htdocs
Port 80
</VirtualHost>
NameVirtualHost ###.###.###.208
<VirtualHost ###.###.###.208>
ServerName [URL unfurl="true"]www.mysite.org[/URL]
ServerAlias mysite.org *.mysite.org
DocumentRoot /usr/local/mysite/PHPsite/apache/htdocs/dotorg
Port 80
</VirtualHost>
<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
<IfModule mod_ssl.c>
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/usr/local/mysite/PHPsite/apache/logs/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/usr/local/mysite/PHPsite/apache/logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /usr/local/mysite/PHPsite/apache/logs/ssl_engine_log
SSLLogLevel error
</IfModule>
<IfDefine SSL>
<VirtualHost ###.###.###.194>
# General setup for the virtual host
DocumentRoot /usr/local/mysite/PHPsite/apache/htdocs
ServerName [URL unfurl="true"]www.mysite.com[/URL]
ServerAdmin webmaster@mysite.com
ErrorLog /usr/local/mysite/PHPsite/apache/logs/error_log
TransferLog /usr/local/mysite/PHPsite/apache/logs/access_log
Port 443
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/mysite/PHPsite/apache/conf/ssl.crt/[URL unfurl="true"]www_mysite_com.crt[/URL]
SSLCertificateKeyFile /usr/local/mysite/PHPsite/apache/conf/ssl.key/server.key
SSLCACertificateFile /usr/local/mysite/PHPsite/apache/conf/ssl.crt/ComodoSecurityServicesCA.crt
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/mysite/PHPsite/apache/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
CustomLog /usr/local/mysite/PHPsite/apache/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
#.org
<VirtualHost ###.###.###.208>
DocumentRoot /usr/local/mysite/PHPsite/apache/htdocs/dotorg
ServerName [URL unfurl="true"]www.mysite.org[/URL]
ServerAlias mysite.org *.mysite.org
ServerAdmin webmaster@mysite.com
ErrorLog /usr/local/mysite/PHPsite/apache/logs/org-error_log
CustomLog /usr/local/mysite/PHPsite/apache/logs/org-access_log combined
Port 443
SSLCertificateFile /usr/local/mysite/PHPsite/apache/conf/[URL unfurl="true"]www.mysite.org/www_mysite_org.crt[/URL]
SSLCertificateKeyFile /usr/local/mysite/PHPsite/apache/conf/ssl.key/server.key
SSLCACertificateFile /usr/local/mysite/PHPsite/apache/conf/[URL unfurl="true"]www.mysite.org/ComodoSecurityServicesCA.crt[/URL]
</VirtualHost>
</IfDefine>
Thanks
Jim