Seaside and Apache on the Mac

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Seaside and Apache on the Mac

Nevin Pratt
Does anybody have a working Apache config file for using Seaside behind
Apache on a Mac?

Nevin

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and Apache on the Mac

artifacts
I use mod_rewrite and mod_proxy for this:


# Pass application requests to seaside
RewriteRule ^/seaside/files/(.*) http://localhost:8080/seaside/files/ 
$1 [P,L]
RewriteRule ^/seaside/static/(.*)$ /~mic/seaside/docroot/$1 [P,L]
RewriteRule ^/seaside/(.*)$ http://localhost:8080/seaside/$1 [P,L]

Requests to static files will go to docroot and will be served by  
apache. All other requests will go to seaside.

Cheers, mic



Am 04.04.2008 um 17:31 schrieb Nevin Pratt:

> Does anybody have a working Apache config file for using Seaside  
> behind Apache on a Mac?
>
> Nevin
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Michael Markowski
[hidden email]

Si forte in alienas manus oberraverit hec peregrina epistola incertis  
ventis dimissa, sed Deo commendata, precamur ut ei reddatur cui soli  
destinata, nec preripiat quisquam non sibi parata.

(Translation: If by chance this wandering epistle, sent forth to the  
uncertain winds but commended to God, wanders into alien hands, I beg  
that it be returned to her to whom alone it was sent, nor should  
anyone steal things not written for him.) From: The prologue to the  
Liber Confortatorius of Goscelin of St. Bertin (born between 1030 and  
1040).


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and Apache on the Mac

Nevin Pratt
You are on an Apple Macintosh?

Nevin

> I use mod_rewrite and mod_proxy for this:
>
>
> # Pass application requests to seaside
> RewriteRule ^/seaside/files/(.*)
> http://localhost:8080/seaside/files/$1 [P,L]
> RewriteRule ^/seaside/static/(.*)$ /~mic/seaside/docroot/$1 [P,L]
> RewriteRule ^/seaside/(.*)$ http://localhost:8080/seaside/$1 [P,L]
>
> Requests to static files will go to docroot and will be served by
> apache. All other requests will go to seaside.
>
> Cheers, mic
>
>
>
> Am 04.04.2008 um 17:31 schrieb Nevin Pratt:
>
>> Does anybody have a working Apache config file for using Seaside
>> behind Apache on a Mac?
>>
>> Nevin
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> Michael Markowski
> [hidden email]
>
> Si forte in alienas manus oberraverit hec peregrina epistola incertis
> ventis dimissa, sed Deo commendata, precamur ut ei reddatur cui soli
> destinata, nec preripiat quisquam non sibi parata.
>
> (Translation: If by chance this wandering epistle, sent forth to the
> uncertain winds but commended to God, wanders into alien hands, I beg
> that it be returned to her to whom alone it was sent, nor should
> anyone steal things not written for him.) From: The prologue to the
> Liber Confortatorius of Goscelin of St. Bertin (born between 1030 and
> 1040).
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and Apache on the Mac

artifacts
Yes. I am using 10.5.2.
I added the rewrite rules to my user's apache conf which is included  
by /etc/apache2/extra/httpd-userdir.conf (which should in turn be  
included by http.conf by default).

Add the following lines to your /etc/apache2/user/[YOUR_USERNAME].conf  
and you should be fine (assuming seaside runs on port 8080):

RewriteEngine On

# Pass application requests to seaside
RewriteRule ^/seaside/files/(.*) http://localhost:8080/seaside/files/ 
$1 [P,L]
RewriteRule ^/seaside/static/(.*)$ /~[YOUR_USERNAME]/seaside/docroot/
$1 [P,L]
RewriteRule ^/seaside/(.*)$ http://localhost:8080/seaside/$1 [P,L]

<Directory "/Users/[YOUR_USERNAME]/Sites/">
     Options Indexes MultiViews FollowSymLinks
     AllowOverride None
     Order allow,deny
     Allow from all
</Directory>


Cheers, Michael



Am 04.04.2008 um 22:27 schrieb Nevin Pratt:

> You are on an Apple Macintosh?
>
> Nevin
>> I use mod_rewrite and mod_proxy for this:
>>
>>
>> # Pass application requests to seaside
>> RewriteRule ^/seaside/files/(.*) http://localhost:8080/seaside/files/$1 
>>  [P,L]
>> RewriteRule ^/seaside/static/(.*)$ /~mic/seaside/docroot/$1 [P,L]
>> RewriteRule ^/seaside/(.*)$ http://localhost:8080/seaside/$1 [P,L]
>>
>> Requests to static files will go to docroot and will be served by  
>> apache. All other requests will go to seaside.
>>
>> Cheers, mic
>>
>>
>>
>> Am 04.04.2008 um 17:31 schrieb Nevin Pratt:
>>
>>> Does anybody have a working Apache config file for using Seaside  
>>> behind Apache on a Mac?
>>>
>>> Nevin
>>>
>>> _______________________________________________
>>> seaside mailing list
>>> [hidden email]
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>> Michael Markowski
>> [hidden email]
>>
>> Si forte in alienas manus oberraverit hec peregrina epistola  
>> incertis ventis dimissa, sed Deo commendata, precamur ut ei  
>> reddatur cui soli destinata, nec preripiat quisquam non sibi parata.
>>
>> (Translation: If by chance this wandering epistle, sent forth to  
>> the uncertain winds but commended to God, wanders into alien hands,  
>> I beg that it be returned to her to whom alone it was sent, nor  
>> should anyone steal things not written for him.) From: The prologue  
>> to the Liber Confortatorius of Goscelin of St. Bertin (born between  
>> 1030 and 1040).
>>
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Michael Markowski
[hidden email]

Si forte in alienas manus oberraverit hec peregrina epistola incertis  
ventis dimissa, sed Deo commendata, precamur ut ei reddatur cui soli  
destinata, nec preripiat quisquam non sibi parata.

(Translation: If by chance this wandering epistle, sent forth to the  
uncertain winds but commended to God, wanders into alien hands, I beg  
that it be returned to her to whom alone it was sent, nor should  
anyone steal things not written for him.) From: The prologue to the  
Liber Confortatorius of Goscelin of St. Bertin (born between 1030 and  
1040).


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Seaside and Apache on the Mac

Nevin Pratt
Thank you.  Your pointers helped immensely.

Nevin

> Yes. I am using 10.5.2.
> I added the rewrite rules to my user's apache conf which is included
> by /etc/apache2/extra/httpd-userdir.conf (which should in turn be
> included by http.conf by default).
>
> Add the following lines to your /etc/apache2/user/[YOUR_USERNAME].conf
> and you should be fine (assuming seaside runs on port 8080):
>
> RewriteEngine On
>
> # Pass application requests to seaside
> RewriteRule ^/seaside/files/(.*)
> http://localhost:8080/seaside/files/$1 [P,L]
> RewriteRule ^/seaside/static/(.*)$
> /~[YOUR_USERNAME]/seaside/docroot/$1 [P,L]
> RewriteRule ^/seaside/(.*)$ http://localhost:8080/seaside/$1 [P,L]
>
> <Directory "/Users/[YOUR_USERNAME]/Sites/">
>     Options Indexes MultiViews FollowSymLinks
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
>
>
> Cheers, Michael
>
>
>
> Am 04.04.2008 um 22:27 schrieb Nevin Pratt:
>
>> You are on an Apple Macintosh?
>>
>> Nevin
>>> I use mod_rewrite and mod_proxy for this:
>>>
>>>
>>> # Pass application requests to seaside
>>> RewriteRule ^/seaside/files/(.*)
>>> http://localhost:8080/seaside/files/$1 [P,L]
>>> RewriteRule ^/seaside/static/(.*)$ /~mic/seaside/docroot/$1 [P,L]
>>> RewriteRule ^/seaside/(.*)$ http://localhost:8080/seaside/$1 [P,L]
>>>
>>> Requests to static files will go to docroot and will be served by
>>> apache. All other requests will go to seaside.
>>>
>>> Cheers, mic
>>>
>>>
>>>
>>> Am 04.04.2008 um 17:31 schrieb Nevin Pratt:
>>>
>>>> Does anybody have a working Apache config file for using Seaside
>>>> behind Apache on a Mac?
>>>>
>>>> Nevin
>>>>
>>>> _______________________________________________
>>>> seaside mailing list
>>>> [hidden email]
>>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>> Michael Markowski
>>> [hidden email]
>>>
>>> Si forte in alienas manus oberraverit hec peregrina epistola
>>> incertis ventis dimissa, sed Deo commendata, precamur ut ei reddatur
>>> cui soli destinata, nec preripiat quisquam non sibi parata.
>>>
>>> (Translation: If by chance this wandering epistle, sent forth to the
>>> uncertain winds but commended to God, wanders into alien hands, I
>>> beg that it be returned to her to whom alone it was sent, nor should
>>> anyone steal things not written for him.) From: The prologue to the
>>> Liber Confortatorius of Goscelin of St. Bertin (born between 1030
>>> and 1040).
>>>
>>>
>>> _______________________________________________
>>> seaside mailing list
>>> [hidden email]
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> Michael Markowski
> [hidden email]
>
> Si forte in alienas manus oberraverit hec peregrina epistola incertis
> ventis dimissa, sed Deo commendata, precamur ut ei reddatur cui soli
> destinata, nec preripiat quisquam non sibi parata.
>
> (Translation: If by chance this wandering epistle, sent forth to the
> uncertain winds but commended to God, wanders into alien hands, I beg
> that it be returned to her to whom alone it was sent, nor should
> anyone steal things not written for him.) From: The prologue to the
> Liber Confortatorius of Goscelin of St. Bertin (born between 1030 and
> 1040).
>
>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside