You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paulo Jorge de Oliveira Cantante de Matos <po...@netvisao.pt> on 2003/11/01 14:46:37 UTC

[users@httpd] Using Apache2 with Zope: Rewrite Rules

Hi all,

I'm trying to follow:
http://zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHosting.stx
to upon receiving a request like http://www.example.com/index_html I
redirecto to Zope using
http://127.0.0.1:8080/VirtualHostBase/http/www.example.com:80/vhm_test/VirtualHostRoot/$1 [L, P]

However the help they provide in ZopeBook seems to work only with Apache
and not with Apache2. They say to add: 
NameVirtualHost *
<VirtualHost *>
ServerName www.example.com
RewriteEngine On
RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/www.example.com:80/vhm_test/VirtualHostRoot/$1 [L,P]
</VirtualHost>
to httpd.conf and since I don't have httpd.conf I added to apache2/conf/vhosts/vhosts.conf
I added www.example.com to my /etc/hosts in the localhost line.

When I restart Apache2 I get:
descartes root # /etc/init.d/apache2 start
 * Starting apache2...
[Sat Nov 01 13:36:03 2003] [error] VirtualHost _default_:443 -- mixing * ports and non-* 
ports with a NameVirtualHost address is not supported, proceeding with undefined results 

I don't understand the error message!
Can someone please help me out with this one?

Best regards,
-- 

Paulo J. Matos : pocm@mega.ist.utl.pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
 - > http://mega.ist.utl.pt/~pocm
---
        -> God had a deadline...
                So, he wrote it all in Lisp!


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Using Apache2 with Zope: Rewrite Rules

Posted by Paulo Jorge de Oliveira Cantante de Matos <po...@netvisao.pt>.
Uff, finally found out on how to do it. :D


Thanks a lot anyway. :)

Best regards,

Paulo Matos

On Sat, 2003-11-01 at 13:46, Paulo Jorge de Oliveira Cantante de Matos
wrote:
> Hi all,
> 
> I'm trying to follow:
> http://zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHosting.stx
> to upon receiving a request like http://www.example.com/index_html I
> redirecto to Zope using
> http://127.0.0.1:8080/VirtualHostBase/http/www.example.com:80/vhm_test/VirtualHostRoot/$1 [L, P]
> 
> However the help they provide in ZopeBook seems to work only with Apache
> and not with Apache2. They say to add: 
> NameVirtualHost *
> <VirtualHost *>
> ServerName www.example.com
> RewriteEngine On
> RewriteRule ^/(.*) http://127.0.0.1:8080/VirtualHostBase/http/www.example.com:80/vhm_test/VirtualHostRoot/$1 [L,P]
> </VirtualHost>
> to httpd.conf and since I don't have httpd.conf I added to apache2/conf/vhosts/vhosts.conf
> I added www.example.com to my /etc/hosts in the localhost line.
> 
> When I restart Apache2 I get:
> descartes root # /etc/init.d/apache2 start
>  * Starting apache2...
> [Sat Nov 01 13:36:03 2003] [error] VirtualHost _default_:443 -- mixing * ports and non-* 
> ports with a NameVirtualHost address is not supported, proceeding with undefined results 
> 
> I don't understand the error message!
> Can someone please help me out with this one?
> 
> Best regards,
-- 

Paulo J. Matos : pocm@mega.ist.utl.pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
 - > http://mega.ist.utl.pt/~pocm
---
        -> God had a deadline...
                So, he wrote it all in Lisp!


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org