Page 1 of 1

Invalid command 'ProxyPass' --SOLVED--

Posted: Tue May 15, 2007 9:05 am
by parchegroup
Hi,

after i tried to setup SSL i get the following error when i restart apache2:

Code: Select all

Syntax error on line 1 of /etc/opt/scalix-tomcat/connector/ajp/app-scalix.api.conf:
Invalid command 'ProxyPass', perhaps mis-spelled or defined by a module not included in the server configuration


I searched for a long time in the forum but didn't find any help.

Any suggestions?

Thanks
Elmar

Posted: Tue May 15, 2007 9:40 am
by ScalixSupport
Hi Elmar!

Did you use the steps mentioned at:
http://www.scalix.com/wiki/index.php?ti ... _use_https

Make sure that you have not just mod_proxy but also mod_rewrite, also, what OS are you
using?

Thanks,
Subir

Posted: Tue May 15, 2007 9:49 am
by parchegroup
Hi,

thanks for the quick answer!

No i used this thread:

http://www.scalix.com/forums/viewtopic.php?t=6266&start=0

we use sles9 and scalix 11.0.4

regards
Elmar

Posted: Tue May 15, 2007 10:03 am
by ScalixSupport
Hi Elmar!

I would suggest you to use the wiki page I mentioned in my last post.

Also, two questions:

(1) Does https work?

(2) Is Apache loading mod_rewrite at startup? Look for the APACHE_MODULES line in your config (for SLES 9 it's at /etc/sysconfig/apache2, yours may vary) and see if "rewrite" is included.

Thanks,
Subir

Posted: Wed May 16, 2007 4:47 am
by parchegroup
Hi Subir,

first i want to say that the error "ProxyPass" no longer exists after i added proxy to APACHE_MODULES!

Now i did as you mentioned.

I also did the following:

I created a certificate, copied vhost-ssl.template to vhost.conf in /etc/apache2/vhost.d and set APACHE_SERVER_FLAGS="SSL".

Then i restarted the Server so all components are restarted.

Testing https://server-name ist ok an gives me the Apache-test-page. Also the rewrite works fine.

But when i type in https://server-name/webmail or sac i get the error "404 Object not found"

I guess there is something wrong with tomcat, isn't it?

regards
Elmar

UPDATE:

I found something in the apache-log:

Code: Select all

[Wed May 16 12:56:42 2007] [error] [client 80.67.23.217] File does not exist: /srv/www/htdocs/webmail


I thing it is the point. Apache doesn't forward the request to Tomcat.

What is wrong?

regards
Elmar

Posted: Wed May 16, 2007 9:13 am
by ScalixSupport
Hi Elmar!

What happens when you type http://server-name/webmail, is the webmail page opening
directly without https redirect, or the browser tries to find the webmail on secure server?
If so, we are on the right track?

[Edit]
Look at the following pages for Apache and Tomcat integrations:
http://www.scalix.com/wiki/index.php?ti ... Tos/Tomcat
http://www.scalix.com/wiki/index.php?ti ... Tos/Apache
http://www.scalix.com/wiki/index.php?ti ... figuration

Thanks,
Subir

Posted: Wed May 16, 2007 9:17 am
by parchegroup
Good morning Subir,

yes it's right. The browser tries to connect to secure Port. Redirect is working well, but there is still "404 Object not found" (see last post).

Thanks,
Elmar

[Edit]
I had a look at the howto's, but i can't find anything regarding my Problem.

Solved

Posted: Wed May 16, 2007 10:22 am
by parchegroup
Hi Subir,

i got the right thread!!

At http://www.scalix.com/forums/viewtopic.php?t=4801 i found the fix.

I added

Code: Select all

Include /etc/opt/scalix-tomcat/connector/jk/app-serverhostname.*.conf

to /etc/apache2/conf.d/scalix-tomcat-connector.conf!

Now it works!

Thanks for your great support.

I think it has to be mentioned in the Wiki (https-rewrite). Although it ist only regarding to basic SSL config in Scalix.

thanks
Elmar