mercredi 17 juin 2015

Apache 2.4.10 - RealUrl funktioniert nicht mehr

Hallo,

ich habe eine funktionierende Website mit Typo3 6.2.9 auf einem Apache 2.2-Server am Laufen. Dabei funktioniert die RealURL auch bestens mit folgendem TS:

PHP-Code:

config {
   
doctype = <!DOCTYPE html>
   
xhtml_cleaning all
   disablePrefixComment 
1
   index_enable 
1
   prefixLocalAnchors 
all
   metaCharset 
utf-8
   additionalHeaders 
Content-Type:text/html;charset=utf-8
   prefixLocalAnchors 
all
   spamProtectEmailAddresses 
ascii
   spamProtectEmailAddresses_atSubst 
= (at)
   
removeDefaultJS external
   inlineStyle2TempFile 
1
   noScaleUp 
1
   meaningfulTempFilePrefix 
50
   index_metatags 
0
  
   
// Einstellungen für die Standardsprache
   
language de
   locale_all 
de_DE
   locale_all 
german
   locale_all 
de.UTF-8

   baseURL 
https://www.example.com/
   
  
   
simulateStaticDocuments 0
   tx_realurl_enable 
1
   inlineStyle2TempFile 
1  
   
}
 

plugin {
    
tx_srlanguagemenu_pi1._CSS_DEFAULT_STYLE >
    
tx_newloginbox_pi3._CSS_DEFAULT_STYLE >
    
tx_newloginbox_pi1._CSS_DEFAULT_STYLE >
    
tx_wecknowledgebase_pi1._CSS_DEFAULT_STYLE >
    
tx_cssfilelist._CSS_DEFAULT_STYLE >
    
tt_news._CSS_DEFAULT_STYLE >
    
tx_felogin_pi1._CSS_DEFAULT_STYLE >
    
tx_ptextlist_pi1._CSS_DEFAULT_STYLE >
    
tx_indexedsearch._CSS_DEFAULT_STYLE >
    
#tx_cssstyledcontent._CSS_DEFAULT_STYLE >


Ich habe jetzt die Typo3-Installation auf einen Apache 2.4.10-Server verlegt. Hier funktioniert alles bis auf die RealURL. Hier bekomme ich die Browsermeldung,
"The requested URL http://ift.tt/1dKf2ow was not found on this server."
Ich habe an der Konfiguration des TS und der .htaccess nichts verändert:
.htaccess:
[CODERewriteEngine On
RewriteBase /

RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]

RewriteRule ^(typo3|t3lib|tslib|fileadmin|typo3conf|typo3temp|uploads|showpic\.php|favicon\.ico)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php

#RewriteRule ^[^/]*\.html$ /index.ph][/CODE]

Meine vhost-Datei sieht so aus:
Code:

<VirtualHost 192.168.1.7:80>
        ServerAdmin hostmaster@excample.com
        DocumentRoot /srv/www/typo3cms/excample.com
        ServerName www.excample.com
        ServerAlias excample.com

        #<Directory />
        #        Options FollowSymLinks
        #        AllowOverride None
        #</Directory>
        <Directory /srv/www/typo3cms/excample.com/>
                Options +Indexes +FollowSymLinks +MultiViews
                AllowOverride All
                #Order allow,deny
                #allow from all
                Require all granted
        </Directory>

        ScriptAlias /scripts "/srv/www/typo3cms/http://ift.tt/1fh0sG4;

        <Directory "/srv/www/typo3cms/http://ift.tt/1dKf2F4;
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                #Order allow,deny
                #Allow from all
                Require all granted
        </Directory>

        Alias /Admin "/srv/www/typo3cms/http://ift.tt/1fh0sG9;

        <Directory "/srv/www/typo3cms/http://ift.tt/1dKf2F6;
                Options -Indexes +MultiViews +FollowSymLinks
                AllowOverride None
                #Order allow,deny
                #Allow from all
                Require all granted
        </Directory>

        ScriptAlias /cgi-bin/ "/srv/www/typo3cms/http://ift.tt/1fh0sGd;

        <Directory "/srv/www/typo3cms/http://ift.tt/1dKf2Vm;
                AllowOverride None
                Options +ExecCGI
                AddHandler cgi-script .cgi .pl
                #Order allow,deny
                #Allow from all       
                Require all granted
        </Directory>

        ErrorLog /var/log/apache2/http://ift.tt/1fh0r4R

        LogLevel warn

        CustomLog /var/log/apache2/http://ift.tt/1dKf2Vo combined
        ServerSignature On

        RewriteEngine on
#        RewriteLogLevel 2
        RewriteCond %{HTTP_HOST} ^www.excample.com$ [NC]
        RewriteRule ^(.*) http://ift.tt/1dKf2Vq [L,R=301]
        RewriteCond %{HTTP_HOST} ^excample.com$ [NC]
        RewriteRule ^(.*) https://excample.com$1 [L,R=301]

</VirtualHost>

Kann mir jemand unter euch weiterhelfen? Vielleicht mache ich etwas beim Apache falsch oder RealURL 1.12.8 funktioniert beim Apache 2.4.10 anders.

Grüße
Diani


Apache 2.4.10 - RealUrl funktioniert nicht mehr

Aucun commentaire:

Enregistrer un commentaire