Noobie installtion problem

6 messages Options
Embed this post
Permalink
Mark Dale-2

Noobie installtion problem

Reply Threaded More More options
Print post
Permalink

Hi All

I've just installed Python, Zope and Plone with the unified installer on
a remote server (Ubuntu).

%: lynx localhost:8080  - displays the Zope Quickstart page okay
%: lynx localhost:8080/Plone  - displays the default Plone page okay

Could some one give me a clue on how I get Plone to display at
www.myserver.com/plone

cheers
Mark Dale





_______________________________________________
NZZUG mailing list
[hidden email]
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
Darryl Dixon - Winterhouse Consulting-2

Re: Noobie installtion problem

Reply Threaded More More options
Print post
Permalink
Hi Mark,

You probably want some sort of service front-ending Plone, usually it's
Apache. Apache sends specially formatted requests to Plone via
mod_rewrite. You will want to look up Apache, mod_rewrite and the
VirtualHostBase URL directives for Zope.

An example mod_rewrite rule for Apache (possibly not exactly correct for
your situation), would be something like:

Redirect permanent /plone /plone/
RewriteRule /plone/(.*)
http://localhost:8080/VirtualHostBase/http/www.myserver.com:80/Plone/VirtualHostRoot/_vh_plone/$1
[L,P]

Hope this helps.

regards,
Darryl Dixon
Winterhouse Consulting Ltd
http://www.winterhouseconsulting.com


>
> Hi All
>
> I've just installed Python, Zope and Plone with the unified installer on
> a remote server (Ubuntu).
>
> %: lynx localhost:8080  - displays the Zope Quickstart page okay
> %: lynx localhost:8080/Plone  - displays the default Plone page okay
>
> Could some one give me a clue on how I get Plone to display at
> www.myserver.com/plone
>
> cheers
> Mark Dale
>
>
>
>
>
> _______________________________________________
> NZZUG mailing list
> [hidden email]
> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
>

_______________________________________________
NZZUG mailing list
[hidden email]
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
Mark Dale-2

Re: Noobie installtion problem

Reply Threaded More More options
Print post
Permalink


Hi Darryl

Thanks for your reply. I've had no luck yet.

I created a subdomain - http://plone.mydomain.com then I created a conf
file for plone in available-sites and the symlink in sites-enabled.

All tested okay.

Next I enabled the modules - proxy and rewrite.

Then I changed the conf file and put in a variation of your lines and
restarted Apache.

<VirtualHost 243.xxx.xxx.xxx>
   ServerName plone.mydomain.com
   RewriteEngine on
   RewriteRule ^/(.*)
http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/cps/VirtualHostRoot/$1
[P,L]
</VirtualHost>

On restart, all I could get was a 403 browser error message.


Am I on the right track (as in 'Close, but no cigar')?


regards
Mark

--------------------------------------
Mark Dale
Tel: 02 6100 3131
Fax: 02 6103 9130
Mob: 0403 831 748
email: [hidden email]
--------------------------------------





Darryl Dixon - Winterhouse Consulting wrote:

> Hi Mark,
>
> You probably want some sort of service front-ending Plone, usually it's
> Apache. Apache sends specially formatted requests to Plone via
> mod_rewrite. You will want to look up Apache, mod_rewrite and the
> VirtualHostBase URL directives for Zope.
>
> An example mod_rewrite rule for Apache (possibly not exactly correct for
> your situation), would be something like:
>
> Redirect permanent /plone /plone/
> RewriteRule /plone/(.*)
> http://localhost:8080/VirtualHostBase/http/www.myserver.com:80/Plone/VirtualHostRoot/_vh_plone/$1
> [L,P]
>
> Hope this helps.
>
> regards,
> Darryl Dixon
> Winterhouse Consulting Ltd
> http://www.winterhouseconsulting.com
>
>
>> Hi All
>>
>> I've just installed Python, Zope and Plone with the unified installer on
>> a remote server (Ubuntu).
>>
>> %: lynx localhost:8080  - displays the Zope Quickstart page okay
>> %: lynx localhost:8080/Plone  - displays the default Plone page okay
>>
>> Could some one give me a clue on how I get Plone to display at
>> www.myserver.com/plone
>>
>> cheers
>> Mark Dale
>>
>>
>>
>>
>>
>> _______________________________________________
>> NZZUG mailing list
>> [hidden email]
>> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
>>
>
> _______________________________________________
> NZZUG mailing list
> [hidden email]
> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
>
>
>
_______________________________________________
NZZUG mailing list
[hidden email]
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
Julian Moller

Re: Noobie installtion problem

Reply Threaded More More options
Print post
Permalink
Hi Mark,
I had a rather confusing time when I was trying to get this to work for
me a while back!
Just checking, have you added a Virtual Host Monster to your site root?

What I found handy when I wanted to check what exact urls were being
rewritten to was adding these lines to your rewrite rule

RewriteLog "/wherever/rewrite_log"
RewriteLogLevel 2

to check stuff out  :)
also used some of plones error logs to see what it was getting by
turning on logging on NotFound errors and generating a few 404's

Goodluck,
Julian

Mark Dale wrote:

> Hi Darryl
>
> Thanks for your reply. I've had no luck yet.
>
> I created a subdomain - http://plone.mydomain.com then I created a conf
> file for plone in available-sites and the symlink in sites-enabled.
>
> All tested okay.
>
> Next I enabled the modules - proxy and rewrite.
>
> Then I changed the conf file and put in a variation of your lines and
> restarted Apache.
>
> <VirtualHost 243.xxx.xxx.xxx>
>    ServerName plone.mydomain.com
>    RewriteEngine on
>    RewriteRule ^/(.*)
> http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/cps/VirtualHostRoot/$1
> [P,L]
> </VirtualHost>
>
> On restart, all I could get was a 403 browser error message.
>
>
> Am I on the right track (as in 'Close, but no cigar')?
>
>
> regards
> Mark
>
> --------------------------------------
> Mark Dale
> Tel: 02 6100 3131
> Fax: 02 6103 9130
> Mob: 0403 831 748
> email: [hidden email]
> --------------------------------------
>
>
>
>
>
> Darryl Dixon - Winterhouse Consulting wrote:
>  
>> Hi Mark,
>>
>> You probably want some sort of service front-ending Plone, usually it's
>> Apache. Apache sends specially formatted requests to Plone via
>> mod_rewrite. You will want to look up Apache, mod_rewrite and the
>> VirtualHostBase URL directives for Zope.
>>
>> An example mod_rewrite rule for Apache (possibly not exactly correct for
>> your situation), would be something like:
>>
>> Redirect permanent /plone /plone/
>> RewriteRule /plone/(.*)
>> http://localhost:8080/VirtualHostBase/http/www.myserver.com:80/Plone/VirtualHostRoot/_vh_plone/$1
>> [L,P]
>>
>> Hope this helps.
>>
>> regards,
>> Darryl Dixon
>> Winterhouse Consulting Ltd
>> http://www.winterhouseconsulting.com
>>
>>
>>    
>>> Hi All
>>>
>>> I've just installed Python, Zope and Plone with the unified installer on
>>> a remote server (Ubuntu).
>>>
>>> %: lynx localhost:8080  - displays the Zope Quickstart page okay
>>> %: lynx localhost:8080/Plone  - displays the default Plone page okay
>>>
>>> Could some one give me a clue on how I get Plone to display at
>>> www.myserver.com/plone
>>>
>>> cheers
>>> Mark Dale
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> NZZUG mailing list
>>> [hidden email]
>>> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
>>>
>>>      
>> _______________________________________________
>> NZZUG mailing list
>> [hidden email]
>> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
>>
>>
>>
>>    
> _______________________________________________
> NZZUG mailing list
> [hidden email]
> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
>
>  
_______________________________________________
NZZUG mailing list
[hidden email]
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
Tim Knapp

Re: Noobie installtion problem

Reply Threaded More More options
Print post
Permalink
In reply to this post by Mark Dale-2
Hi Mark,

Just one other thing that I've done historically is instead of
specifying the %{HTTP_HOST} I've specified the actual hostname (e.g.
plone.mydomain.com). I can't recall otoh if there's a specific reason
for this but I know this approach works :)

Something else that may help is the RewriteRule Witch[1] :)

-Tim

[1] http://betabug.ch/zope/witch

On Mon, 2008-03-10 at 17:49 +1100, Mark Dale wrote:

>
> Hi Darryl
>
> Thanks for your reply. I've had no luck yet.
>
> I created a subdomain - http://plone.mydomain.com then I created a conf
> file for plone in available-sites and the symlink in sites-enabled.
>
> All tested okay.
>
> Next I enabled the modules - proxy and rewrite.
>
> Then I changed the conf file and put in a variation of your lines and
> restarted Apache.
>
> <VirtualHost 243.xxx.xxx.xxx>
>    ServerName plone.mydomain.com
>    RewriteEngine on
>    RewriteRule ^/(.*)
> http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/cps/VirtualHostRoot/$1
> [P,L]
> </VirtualHost>
>
> On restart, all I could get was a 403 browser error message.
>
>
> Am I on the right track (as in 'Close, but no cigar')?
>
>
> regards
> Mark
>
> --------------------------------------
> Mark Dale
> Tel: 02 6100 3131
> Fax: 02 6103 9130
> Mob: 0403 831 748
> email: [hidden email]
> --------------------------------------
>
>
>
>
>
> Darryl Dixon - Winterhouse Consulting wrote:
> > Hi Mark,
> >
> > You probably want some sort of service front-ending Plone, usually it's
> > Apache. Apache sends specially formatted requests to Plone via
> > mod_rewrite. You will want to look up Apache, mod_rewrite and the
> > VirtualHostBase URL directives for Zope.
> >
> > An example mod_rewrite rule for Apache (possibly not exactly correct for
> > your situation), would be something like:
> >
> > Redirect permanent /plone /plone/
> > RewriteRule /plone/(.*)
> > http://localhost:8080/VirtualHostBase/http/www.myserver.com:80/Plone/VirtualHostRoot/_vh_plone/$1
> > [L,P]
> >
> > Hope this helps.
> >
> > regards,
> > Darryl Dixon
> > Winterhouse Consulting Ltd
> > http://www.winterhouseconsulting.com
> >
> >
> >> Hi All
> >>
> >> I've just installed Python, Zope and Plone with the unified installer on
> >> a remote server (Ubuntu).
> >>
> >> %: lynx localhost:8080  - displays the Zope Quickstart page okay
> >> %: lynx localhost:8080/Plone  - displays the default Plone page okay
> >>
> >> Could some one give me a clue on how I get Plone to display at
> >> www.myserver.com/plone
> >>
> >> cheers
> >> Mark Dale
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> NZZUG mailing list
> >> [hidden email]
> >> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
> >>
> >
> > _______________________________________________
> > NZZUG mailing list
> > [hidden email]
> > http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
> >
> >
> >
> _______________________________________________
> NZZUG mailing list
> [hidden email]
> http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug

_______________________________________________
NZZUG mailing list
[hidden email]
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug
Guy K. Kloss-2

Re: Noobie installtion problem

Reply Threaded More More options
Print post
Permalink
It may also have something to do with the way the Linux system is set up.
We've had this type of problem many times in distributed computing
environments when hosts announced themselves towards others as "localhost"
when asked by our Java framework.

I think especially SuSE systems were notorious for that.

You should check the /etc/hostname and in /etc/hosts. You should also check
what the command "hostname" and "hostname --fqdn" tells you. Ideally you
should just get the machine's name with the first, and with the domain name
appended on the second. To do that my machine has got the following entry in
the /etc/hosts:

127.0.0.1       it041227.massey.ac.nz it041227 localhost

Unfortunately these tend to be configured awkwardly on many machines out of
the box to screw up these services.

HTH,

Guy

--
Guy K. Kloss
Institute of Information and Mathematical Sciences
Te Kura Putaiao o Mohiohio me Pangarau
Room 2.63, Quad Block A Building
Massey University, Auckland, Albany
Private Bag 102 904, North Shore Mail Centre
voice: +64 9 414-0800 ext. 9585   fax: +64 9 441-8181
eMail: [hidden email]  http://www.massey.ac.nz/~gkloss/


_______________________________________________
NZZUG mailing list
[hidden email]
http://lists.thevirtual.co.nz/cgi-bin/mailman/listinfo/nzzug

signature.asc (196 bytes) Download Attachment