schooltool-developers team mailing list archive
-
schooltool-developers team
-
Mailing list archive
-
Message #00191
Re: Fwd: SchoolTool with Apache
Peter:
I remember this error is related to a misconfiguration of the proxy module in Apache.
In /etc/apache2/mods-enabled/proxy.conf maybe you have this block:
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
#Allow from .example.com
</Proxy>
If you're only testing things try adding:
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from all
#Allow from .example.com
</Proxy>
And then restart Apache.
If you want to set it up right, I suggest you read Apache's docs on the <Proxy> directive.
Let us know if it works.
Douglas
"... allí es cuando te das cuenta que las cosas malas pueden resultar bastante buenas..." - Lionel Messi
Por favor, evite enviarme adjuntos de Word, Excel o PowerPoint.
Vea http://www.gnu.org/philosophy/no-word-attachments.es.html
--- On Sun, 6/6/10, Peter Harrison <cheetah100@xxxxxxxxx> wrote:
From: Peter Harrison <cheetah100@xxxxxxxxx>
Subject: Re: [Schooltool-developers] Fwd: SchoolTool with Apache
To: "Douglas Cerna" <douglascerna@xxxxxxxxx>
Date: Sunday, June 6, 2010, 11:17 PM
On Mon, Jun 7, 2010 at 3:42 PM, Douglas Cerna <douglascerna@xxxxxxxxx> wrote:
> If I configure it according to the
> SchoolTool instructions I get a forbidden message.
Peter:
Could you provide Apache's error log?
I've been working through the issues shown in the log files and arrived at the following config
<VirtualHost *>
ServerAdmin webmaster@xxxxxxxxx
ServerName schooltool.devcentre.org
ProxyRequests On
ProxyVia On
RewriteEngine On
<Proxy http://localhost:7080>
Order allow,deny
Allow from all
</Proxy>
<Location "/">
RewriteRule ^/(.*) http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/$1 [P]
</location>
ErrorLog /var/log/apache2/schooltool/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
CustomLog /var/log/apache2/schooltool/access.log combined
ServerSignature On
</VirtualHost>
With which I get the following error
[Mon Jun 07 16:05:52 2010] [error] [client 203.109.246.29] File does not exist: /htdocs
If I replace this with the something like in the scholltool docs:
<VirtualHost *>
ServerAdmin webmaster@xxxxxxxxx
ServerName schooltool.devcentre.org
RewriteEngine On
RewriteRule ^/(.*) http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/$1 [P]
ErrorLog /var/log/apache2/schooltool/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
CustomLog /var/log/apache2/schooltool/access.log combined
ServerSignature On
</VirtualHost>
I get:
[Mon Jun 07 16:13:51 2010] [error] [client 203.109.246.29] client denied by server configuration: proxy:http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/
[Mon Jun 07 16:14:47 2010] [error] [client 203.109.246.29] client denied by server configuration: proxy:http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/
[Mon Jun 07 16:14:48 2010] [error] [client 203.109.246.29] client denied by server configuration: proxy:http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/
[Mon Jun 07 16:14:48 2010] [error] [client 203.109.246.29] client denied by server configuration: proxy:http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/
[Mon Jun 07 16:14:49 2010] [error] [client 203.109.246.29] client denied by server configuration: proxy:http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/
[Mon Jun 07 16:14:49 2010] [error] [client 203.109.246.29] client denied by server configuration: proxy:http://localhost:7080/++vh++http:schooltool.devcentre.org:80/++/