I'm not a complete beginner and sorry for posting an ambiguous question that has been posted in other slightly various forms so numerously. Anyway I get this error:
Forbidden
You don't have permission to access / on this server.
Apache/2.2.14 (Ubuntu) Server at gookie.localhost Port 80
I have apache2 proxying a tomcat6. here are the details:
<Directory "/var/www/tomcat6/webapps/springapp">
Options +Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
127.0.0.1 localhost gookie.localhost
<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>
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
proxyName="gookie.localhost"
/>
I had proxyPort="80"
in server.xml
and still no luck.
Any thoughts on this?
The solution is to have this in /etc/apache2/mods-enabled/proxy.conf:
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
</IfModule>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With