View Single Post
  #29  
Old 26th February 2009, 21:07
koltz koltz is offline
Member
 
Join Date: Feb 2007
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Default

After I make the changes from post 21, it adds this to my site:

Code:
<IfModule mod_ssl.c>
###########################################################
# SSL Vhost
###########################################################

<VirtualHost 172.21.152.31:443>
      DocumentRoot /var/www/8bitclassics.com/web

    ServerName 8bitclassics.com
    ServerAlias www.8bitclassics.com
    ServerAdmin webmaster@8bitclassics.com

    ErrorLog /var/log/ispconfig/httpd/8bitclassics.com/error.log

    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html

    SSLEngine on
    SSLCertificateFile /var/clients/client1/web2/ssl/8bitclassics.com.crt
    SSLCertificateKeyFile /var/clients/client1/web2/ssl/8bitclassics.com.key
    SSLCACertificateFile /var/clients/client1/web2/ssl/8bitclassics.com.bundle

    # cgi enabled
    ScriptAlias  /cgi-bin/ /var/clients/client1/web2/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@8bitclassics.com"
    php_admin_value upload_tmp_dir /var/clients/client1/web2/tmp
    php_admin_value session.save_path /var/clients/client1/web2/tmp
    #php_admin_value open_basedir /var/clients/client1/web2:/usr/share/php5

php_admin_value memory_limit 64M
</VirtualHost>
</IfModule>
Apache2 fails to restart once the SSL cert is created, here is what Apache2 says when loading

Code:
 * Restarting web server apache2                                                                                                                             [Thu Feb 26 13:05:01 2009] [warn] NameVirtualHost 172.21.152.32:443 has no VirtualHosts
[Thu Feb 26 13:05:01 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
httpd (pid 26994?) not running
[Thu Feb 26 13:05:11 2009] [warn] NameVirtualHost 172.21.152.32:443 has no VirtualHosts
[Thu Feb 26 13:05:11 2009] [warn] NameVirtualHost *:80 has no VirtualHosts
[fail]
When I delete the SSL Vhost stuff added, the site starts running again.
Reply With Quote