---
title: "Apache 2.4.10 - RealUrl funktioniert nicht mehr"
url: "https://www.typo3.net/d/120345-apache-2410-realurl-funktioniert-nicht-mehr"
source: "typo3.net"
tags: ["Hosting","Server","Frage","RealURL","TYPO3 6"]
created: "2015-06-13"
last_reply: "2015-06-15"
replies: 3
solved: false
page: 1
pages: 1
lang: "de"
---

# Apache 2.4.10 - RealUrl funktioniert nicht mehr

Hosting › Server · 3 Antworten · gestartet 2015-06-13

## Eröffnungsbeitrag

**Snoopie** · 2015-06-13 · [Beitrag #1](https://www.typo3.net/d/120345-apache-2410-realurl-funktioniert-nicht-mehr/1)

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:

```typoscript
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 www.example.com/impressum.html was not found on this server."
Ich habe an der Konfiguration des TS und der .htaccess nichts verändert:
.htaccess:

```xml
RewriteEngine 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]
```

Meine vhost-Datei sieht so aus:

```xml
<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/excample.com/scripts/"

        <Directory "/srv/www/typo3cms/excample.com/scripts/">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                #Order allow,deny
                #Allow from all
                Require all granted
         </Directory>

        Alias /Admin "/srv/www/typo3cms/excample.com/typo3/"

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

        ScriptAlias /cgi-bin/ "/srv/www/typo3cms/excample.com/cgi-bin/"

        <Directory "/srv/www/typo3cms/excample.com/cgi-bin/">
                AllowOverride None
                Options +ExecCGI
                AddHandler cgi-script .cgi .pl
                #Order allow,deny
                #Allow from all        
                Require all granted
        </Directory>

        ErrorLog /var/log/apache2/www.excample.com-error.log

        LogLevel warn

        CustomLog /var/log/apache2/www.excample.com-access.log combined
        ServerSignature On

        RewriteEngine on
#        RewriteLogLevel 2
        RewriteCond %{HTTP_HOST} ^www.excample.com$ [NC]
        RewriteRule ^(.*) https://www.excample.com$1 [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

Snoopie

## Antworten

### [#2](https://www.typo3.net/d/120345-apache-2410-realurl-funktioniert-nicht-mehr/2) · jenses · 2015-06-15

mod_rewrite ist installiert? Sieht nicht so aus, daher die Fehlermeldung
<http://askubuntu.com/questions/411002/mod-rewrite-use-in-apache-2-4>

### [#3](https://www.typo3.net/d/120345-apache-2410-realurl-funktioniert-nicht-mehr/3) · Snoopie · 2015-06-15

Ja, das ist der Fall

```php
apache24:~ # a2enmod rewrite
Module rewrite already enabled
```

### [#4](https://www.typo3.net/d/120345-apache-2410-realurl-funktioniert-nicht-mehr/4) · Snoopie · 2015-06-15

Dieser Blog
<http://niklas-rother.de/artikel/ubuntu-14-04-htaccess-in-apache-2-4-wieder-aktivieren/>
hat mich darauf gebracht, dass es mit "AllowOverride None" und "AllowOverride All" zusammenhängen könnte. Bei einer eGroupware-Installation, der ich ebenfalls eine .htaccess zum Passwortschutz in die Dokumentroot gelegt hatte, funktioniert dieser Schutz wieder, nachdem ich hier "AllowOverride None" gegen "AllowOverride All" ausgetauscht hatte.
Dieselbe Änderung in der obigen vhost-Datei aktiviert die .htaccess-Datei leider nicht.

---

Quelle: „Apache 2.4.10 - RealUrl funktioniert nicht mehr“, typo3.net, https://www.typo3.net/d/120345-apache-2410-realurl-funktioniert-nicht-mehr
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
