Current time: 05-02-2024, 01:56 PM Hello There, Guest! (LoginRegister)


Post Reply 
vHost-Config für SSL
Author Message
Blister Offline
Junior Member
*

Posts: 48
Joined: Sep 2010
Reputation: 0
Post: #1
vHost-Config für SSL
Hallo Zusammen,

ich habe das Forum stundenlang durchsucht, etliche Beiträge zu diesen Thema gefunden, aber leider scheint keine angepriesene Config mehr zu funktionieren.

Von daher habe ich mir nun eine eigene Config erstellt.
Ich bitte euch darum, meine Config bezüglich Sicherheit zu überprüfen und ggf. auch konkrete Verbesserungsvorschläge abzugeben.

Code:
<VirtualHost 88.88.88.88:443>
    SSLEngine On
    SSLCertificateFile /etc/ssl/meine-domain.com/meine_domain_com.crt
    SSLCertificateKeyFile /etc/ssl/meine-domain.com/ymeine_domain_com.key
    SSLCACertificateFile /etc/ssl/meine-domain.com/meine_domain_com.ca-bundle

    ServerAdmin info@meine-domain.com
    DocumentRoot /var/www/virtual/meine-domain.com/htdocs
    ServerName meine-domain.com
    ServerAlias www.meine-domain.com meine-domain.com vu2003.meine-domain.com

    Alias /errors   /var/www/virtual/meine-domain.com/errors/

    RedirectMatch permanent ^/ftp[\/]?$        http://server.meine-domain.com/ftp/
    RedirectMatch permanent ^/pma[\/]?$        http://server.meine-domain.com/pma/
    RedirectMatch permanent ^/webmail[\/]?$    http://server.meine-domain.com/webmail/
    RedirectMatch permanent ^/ispcp[\/]?$    http://server.meine-domain.com/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser meine-domain.com
    </IfModule>

    # httpd awstats support BEGIN.

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    # httpd dmn entry cgi support END.

    <Directory /var/www/virtual/meine-domain.com/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/meine-domain.com/:/var/www/virtual/meine-domain.com/phptmp/:/usr/share/php/"
        php_admin_value upload_tmp_dir "/var/www/virtual/meine-domain.com/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/meine-domain.com/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2003 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/meine-domain.com/
        <Directory "/var/www/fcgi/meine-domain.com">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
        <Directory /var/www/virtual/meine-domain.com/htdocs>
            FCGIWrapper /var/www/fcgi/meine-domain.com/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/meine-domain.com">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /etc/apache2/ispcp/meine-domain.com.conf

ErrorLog /var/log/apache2/users/ssl.meine-domain.com.com-error.log
TransferLog /var/log/apache2/users/ssl.meine-domain.com.com-access.log
CustomLog /var/log/apache2/ssl.meine-domain.com.com-traf.log traff
CustomLog /var/log/apache2/ssl.meine-domain.com.com-combined.log combined
LogLevel warn

<IfModule suexec_module>
    SuexecUserGroup vu2003 vu2003
</IfModule>

</VirtualHost>


Vielen Dank und freundliche Grüße,
Julian
(This post was last modified: 03-04-2012 10:24 PM by Blister.)
03-04-2012 10:23 PM
Find all posts by this user Quote this message in a reply
tomhb Offline
Member
***

Posts: 336
Joined: Apr 2010
Reputation: 4
Post: #2
RE: vHost-Config für SSL
Hallo Julian,

(03-04-2012 10:23 PM)Blister Wrote:  Ich bitte euch darum, meine Config bezüglich Sicherheit zu überprüfen und ggf. auch konkrete Verbesserungsvorschläge abzugeben.

Code:
    SSLEngine On
    SSLCertificateFile /etc/ssl/meine-domain.com/meine_domain_com.crt
    SSLCertificateKeyFile /etc/ssl/meine-domain.com/ymeine_domain_com.key
    SSLCACertificateFile /etc/ssl/meine-domain.com/meine_domain_com.ca-bundle

Koenntest Dir in diesem Zusammenhang noch einmal "SSLProtocol" und "SSLCipherSuite" ansehen, z.B. hier:
http://buecher.lingoworld.de/apache2/sho...=718&o=mod
http://buecher.lingoworld.de/apache2/sho...=723&o=mod

Die Sicherheit spielt sich auch an anderer Stelle ab, wie z.B. bei der php.ini
und/oder den weiteren eingesetzten Modulen vom Apache.


gruss tom
03-06-2012 06:54 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)