[Zope3-Users] Re: Total n00b to zope3 and apache. [SOLVED]

2006-07-31 Thread Steve Juranich
Okay.  I got this figured out now.  It turns out that I didn't want virtual
hosting at all, all I really wanted was for Apache to do the rewrite stuff
so that when I requested machine:8000/zope, it would do a simple rewrite to
machine:8080/

I was able to do this with the following:

RewriteEngine On
RewriteLog var/apache2/log/rewrites.log
RewriteLogLevel 0
RewriteRule ^/zope(/?.*) http://127.0.0.1:8080/++vh++http:\
%{SERVER_NAME}:8000/zope/++$1 [P,L]

Thanks to all for your help.  I really appreciate it.

-- 
Steve Juranich
Tucson, AZ
USA

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-29 Thread Albertas Agejevas
On Fri, Jul 28, 2006 at 10:57:14AM -0700, Steve Juranich wrote:
> NameVirtualHost localhost:8000
> 
> Servername localhost
> ErrorLog var/apache2/log/zope.log
> CustomLog var/apache2/log/zope.log common
> RewriteEngine On
> RewriteLog var/apache2/log/rewrites.log
> RewriteLogLevel 0
> RewriteRule ^/zope(/?.*) http://127.0.0.1:8080/++vh++\
> http:%{SERVER_NAME}:8000/zope/++$1 [P,L]
> 
> 
> 
> Now when I visit localhost:8000/zope, I'm at least getting some error
> messages in apache's error_log that /path/to/htdocs/zope doesn't exist. 

Are mod_proxy and mod_rewrite are enabled?

Albertas
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-28 Thread Benji York

Darryl Cousins wrote:

I often find it useful to access the same instance with different server
names so I can stay logged in as manager (http auth) on one and log in
as different site users (cookie auth) to test security settings and only
need one browser open.


Another good trick for that is starting multiple servers in the same 
instance on different ports.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-28 Thread Darryl Cousins
Hi Steve,

keep playing with the rewrite rule. Try without the zope part:

RewriteRule ^(/?.*) http://localhost:8080/++vh++http:localhost:8000/++$1 [P,L]

Then http://locahost:8000/ 'should' take you to the zope instance.

I think that you would want to have the zope/ inside ^(/zope/?.*)

On my setup (linux) I use several host names for my machine so I can
have several instances running - apache on port 80. I find this more
convenient than using the trailing 'zope/'.

# first instance on 8031
NameVirtualHost *

ServerName zope3.theshire
RewriteRule ^(/?.*) http://theshire:8031/++vh++http:zope3.theshire:80/++$1 [P,L]
...

# second instance on 8032

ServerName zope3test.theshire
RewriteRule ^(/?.*) http://theshire:8032/++vh++http:zope3test.theshire:80/++$1 
[P,L]
...

# the first instance using boston skin

ServerName zope3boston.theshire
RewriteRule ^(/?.*) 
http://theshire:8031/++skin++Boston/++vh++http:zope3boston.theshire:80/++$1 
[P,L]
...

# trac

ServerName trac.theshire
...

I often find it useful to access the same instance with different server
names so I can stay logged in as manager (http auth) on one and log in
as different site users (cookie auth) to test security settings and only
need one browser open.

Hope that helps.
Darryl

> NameVirtualHost localhost:8000
> 
> Servername localhost
> ErrorLog var/apache2/log/zope.log
> CustomLog var/apache2/log/zope.log common
> RewriteEngine On
> RewriteLog var/apache2/log/rewrites.log
> RewriteLogLevel 0
> RewriteRule ^/zope(/?.*) http://127.0.0.1:8080/++vh++\
> http:%{SERVER_NAME}:8000/zope/++$1 [P,L]
> 


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: Total n00b to zope3 and apache.

2006-07-28 Thread Steve Juranich
Helmut Merz wrote:

> Am Donnerstag, 27. Juli 2006 21:46 schrieb Steve Juranich:
> 
>> Judging from what I've found in my scrounging around the
>> internet, I cooked up the following chunk of httpd.conf:
> 
> This:
> 
>> NameVirtualHost localhost:8080 # The ZServer process's port
>> 
> 
> should be:
> 
>   NameVirtualHost localhost:8000 # The Apache process's port
>   
> 
> HTH
> 
> Helmut


Well, I followed everybody's suggestions.  I think I'm getting closer, but
I'm not quite there.  Here's the current relevant section of my httpd.conf
file:

NameVirtualHost localhost:8000

Servername localhost
ErrorLog var/apache2/log/zope.log
CustomLog var/apache2/log/zope.log common
RewriteEngine On
RewriteLog var/apache2/log/rewrites.log
RewriteLogLevel 0
RewriteRule ^/zope(/?.*) http://127.0.0.1:8080/++vh++\
http:%{SERVER_NAME}:8000/zope/++$1 [P,L]



Now when I visit localhost:8000/zope, I'm at least getting some error
messages in apache's error_log that /path/to/htdocs/zope doesn't exist. 
Again, I'm totally new at this, so I'm just pulling stuff out of the air,
but would it help if I set up some kind of  block in
httpd.conf (like I do to get trac working)?  I don't know at all, I'm just
tossing the idea out there.

Any additional help is greatly appreciated.

-- 
Steve Juranich
Tucson, AZ
USA

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users