Current time: 05-22-2024, 08:39 AM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT] Umleiten von /webmail etc. auf :443
Author Message
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #1
Question [ERLEDIGT] Umleiten von /webmail etc. auf :443
Ich möchte die Dienste wie Webmail und Filemanager alle automatisch auf https://www.meinedomain.de/webmail weiterleiten lassen, da mein SSL-Zertifikat nur für die Rootdomain gültig ist.
Nicht für alle Domains des Servers sondern nur für eine (Hauptdomain).
Wie sieht der dazu passende VHost Eintrag für Apache aus?
Danke.

Bisher sieht es so aus:

Code:
<VirtualHost 12.34.56.78:443>

    #
    # SSL Start
    #
     SSLEngine On
     SSLCertificateFile /etc/apache2/ssl/domain.crt
     SSLCertificateKeyFile /etc/apache2/ssl/domain.key
    #
    # SSL End
    #

    ServerAdmin     support@meinedomain.de
    DocumentRoot    /var/www/ispcp/gui
    ServerName      meinedomain.de
    ErrorLog        /var/log/apache2/users/ssl.meinedomain.de-error.log
    TransferLog     /var/log/apache2/users/ssl.meinedomain.de-access.log
    CustomLog       /var/log/apache2/ssl.meinedomain.de-traf.log traff
    CustomLog       /var/log/apache2/ssl.meinedomain.de-combined.log combined
    Alias /errors   /var/www/ispcp/gui/errordocs/

    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

    Alias /pma      /var/www/ispcp/gui/tools/pma/
    Alias /webmail  /var/www/ispcp/gui/tools/webmail/
    Alias /ftp      /var/www/ispcp/gui/tools/filemanager/
    Alias /antispam /var/www/ispcp/gui/tools/antispam/

    <IfModule suexec_module>
           SuexecUserGroup vu2000 vu2000
    </IfModule>

    <Directory /var/www/ispcp/gui>
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

    <IfModule mod_fcgid.c>
        <Directory /var/www/ispcp/gui>
            FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/master">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/master/
        <Directory "/var/www/fcgi/master">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    <IfModule mod_php5.c>
        <Directory /var/www/ispcp/gui>
            php_admin_value open_basedir "/var/www/ispcp/gui/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
            php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
            php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
        </Directory>
    </IfModule>

</VirtualHost>

#
# Master End
#
(This post was last modified: 01-19-2009 05:26 AM by BeNe.)
12-29-2008 02:20 AM
Visit this user's website Find all posts by this user
Knut Offline
Member
***

Posts: 736
Joined: Nov 2006
Reputation: 10
Post: #2
RE: Umleiten von /webmail etc. auf :443
Ich würde folgendes in /etc/apache2/ispcp/meinedomain.de.conf schreiben und den Apache neu starten:

Code:
RedirectMatch permanent ^/webmail([\/]?)    http://meinedomain.de/webmail/

Wenn das nicht klappt kannst Du es auch direkt in /etc/apache2/sites-enabled/ispcp.conf eintragen. In /etc/ispcp/apache/working/ispcp.conf natürlich auch.

Gruß Knut
(This post was last modified: 12-29-2008 03:31 AM by Knut.)
12-29-2008 03:31 AM
Find all posts by this user
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #3
RE: Umleiten von /webmail etc. auf :443
Dann gibt es eine endlose Schleife...
12-29-2008 03:53 AM
Visit this user's website Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Umleiten von /webmail etc. auf :443
Dann erstelle den Ordner "webmail" und mach eine normale html Weiterleitung auf deine SSL Seite. Oder mit htaccess weiterleiten.

Greez BeNe
12-30-2008 10:31 PM
Visit this user's website Find all posts by this user
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #5
RE: Umleiten von /webmail etc. auf :443
Danke, mit einem zusätzlichen Eintrag in eine extra Config für Apache hat es dann geklappt Smile
(This post was last modified: 01-08-2009 06:48 PM by DaSilva.)
01-08-2009 06:29 PM
Visit this user's website Find all posts by this user
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #6
RE: Umleiten von /webmail etc. auf :443
Update:

Klappt allerdings nicht bei der Subdomain admin.meinedomain.de, da diese ja schon von ispCP angelegt wurde. Wie kann ich das noch beheben?
Danke.
01-09-2009 08:40 AM
Visit this user's website Find all posts by this user
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #7
RE: Umleiten von /webmail etc. auf :443
Kann bitte jemand mir bei dem letzten Problem noch helfen?
Danke
01-14-2009 01:49 AM
Visit this user's website Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: Umleiten von /webmail etc. auf :443
Quote:Klappt allerdings nicht bei der Subdomain admin.meinedomain.de, da diese ja schon von ispCP angelegt wurde. Wie kann ich das noch beheben?
Was genau klappt denn nicht ? Bekommst Du Fehler ?

Greez BeNe
01-14-2009 05:12 AM
Visit this user's website Find all posts by this user
DaSilva Offline
Member
***

Posts: 302
Joined: Dec 2007
Reputation: 0
Post: #9
RE: Umleiten von /webmail etc. auf :443
Nein, ich habe die Subdomain genauso angelegt wie alle anderen aber es gibt wohl von ispCP schon die Regel, dass admin.domain.tld immer auf das Backend verlinkt und somit meine Richtlinie überschreibt.
Kann man das irgendwie umgehen?
01-16-2009 10:05 PM
Visit this user's website Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: Umleiten von /webmail etc. auf :443
Die Addresse in der /etc/ispcp/ispcp.conf unter BASE_SERVER_VHOST. Da kannst Du es ändern.
Das Master Template findest Du sonst hier:
Code:
/etc/ispcp/apache/00_master.conf

Nach den Änderungen die Configs neu generieren.

Greez BeNe
01-16-2009 11:59 PM
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


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