Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XServe OS X Server 10.4 and HTTPS



Hi all,

I am trying to get a secure site up and running on my server but I am running into problems. I am sure they are with my .conf files, but after hours of messing with them and not getting things working I am looking for some help.

I used the instructions here: http://developer.apple.com/server/ security_ssl.html to generate my certificate request and key files and obtained a trial key from thawte. I was able to get the SSL connection working using this .conf file:

## Default Virtual Host Configuration
Listen 443
SSLProtocol all -SSLv2
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
SSLRandomSeed startup builtin
SSLLog /var/log/httpd/ssl_engine_log
SSLLogLevel info
<VirtualHost *:443>
ServerName secure.macsultants.com
ServerAdmin email@hidden
DocumentRoot "/Library/WebServer/Documents/clients/ peanutchewsstore.com"
DirectoryIndex "index.tpl"
CustomLog "/var/log/httpd/access_log" "%{PC-Remote-Addr}i %l %u %t \"%r\" %>s %b"
ErrorLog "/var/log/httpd/error_log"
ErrorDocument 404 /error.html
<IfModule mod_ssl.c>


SSLEngine On
SSLLog "/var/log/httpd/ssl_engine_log"
SSLCertificateFile "/private/var/root/newcert.crt"
SSLCertificateKeyFile "/private/var/root/newkey.pem"
SSLCACertificateFile "/private/var/root/ca_bundle.crt"
SSLCipherSuite "ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:!SSLv2:+EXP: +eNULL"
</IfModule>
<IfModule mod_dav.c>
DAVLockDB "/var/run/davlocks/.davlock100"
DAVMinTimeout 600
</IfModule>
<Directory "/Library/WebServer/Documents/clients/peanutchewsstore.com">
Options All -Indexes -ExecCGI -Includes +MultiViews
<IfModule mod_dav.c>
DAV Off
</IfModule>
AllowOverride None
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
</IfModule>
<IfModule mod_alias.c>
</IfModule>
LogLevel warn
</VirtualHost>


Then I used this to start both servers:

httpd -D SSL
apachectl start

I am able to get a secure connection to the SSL server via https but none of my http connections will work. In order to get http to work I need to delete that conf file and restart apache. I don't get any errors when starting apache or httpd.

Thanks for any assistance,
Charles

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.