Fehler 403 Forbidden — Berechtigungen auf apache2, tomcat6, mod_proxy

Ich bin nicht ein totaler Anfänger und sorry für die Buchung eine mehrdeutige Frage, die gebucht wurde in geringfügig verschiedenen Formen so zahlreich. Trotzdem bekomme ich diesen Fehler:

Forbidden
You don't have permission to access /on this server.
Apache/2.2.14 (Ubuntu) Server at gookie.localhost Port 80

Habe ich apache2-proxying einen tomcat6. hier sind die details:

  • der tomcat-Installation ist in /home/ae1/lib/java/apache-tomcat-6.0.29
  • ln -s /home/ae1/lib/java/apache-tomcat-6.0.29 /var/www/tomcat6
  • http.conf:

<Directory "/var/www/tomcat6/webapps/springapp">
    Options +Indexes FollowSymLinks +ExecCGI
    AllowOverride AuthConfig FileInfo
            Order allow,deny
    Allow from all
</Directory>
  • /etc/hosts hat dieser Eintrag: 127.0.0.1 localhost gookie.localhost
  • /etc/apache2/sites-available/gookie.localhost.conf

<VirtualHost *:80 >
  ServerName gookie.localhost
  DocumentRoot /var/www/tomcat6/webapps/springapp
  DirectoryIndex index.jsp index.html index.htm index.php

  ProxyPass /http://localhost:8080/springapp
  ProxyPassReverse /http://localhost:8080/springapp
</VirtualHost>

<Directory "/home/www/tomcat6/webapps/springapp">
        Options +Indexes FollowSymLinks +ExecCGI
        AllowOverride AuthConfig FileInfo
        Order allow,deny
        Allow from all
</Directory>
  • die /var/www/tomcat6/conf/server.xml Datei:

<Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443"
           proxyName="gookie.localhost"
               />

Hatte ich proxyPort="80" im server.xml und immer noch kein Glück.

Irgendwelche Gedanken zu dieser?

  • Und etwas mehr Einblick: localhost:8080 funktioniert okay, und localhost:8080/springapp Umleitungen zu gookie.localhost/springapp und gibt den gleichen Fehler 403. ohne diese: ProxyPass / http://localhost:8080/springapp ProxyPassReverse / http://localhost:8080/springapp bekomme ich apache zu show index.jsp-ohne analysiert <% %> tags an gookie.localhost, aber sobald ich hinzufügen, die proxy-Richtlinien, die Sie bricht.
  • Okay die Lösung war diese Datei ändern: /etc/apache2/mods-enabled/proxy.conf display <IfModule mod_proxy.c> ProxyRequests Off <Proxy *> AddDefaultCharset off Order deny,allow Allow from all </Proxy>
  • Legen Sie es in eine bitte um Antwort, es ist wirklich verwirrend, ohne Zeilenumbrüche
Schreibe einen Kommentar