Pier-blog image

Lukas Renggli renggli at iam.unibe.ch
Mon Mar 5 07:03:06 MET 2007


>> No, I don't think so. Copy the base-directory to your new server and
>> update the setting if necessary.
> I assume that this has nothing to do with WAFileLibrary?

No, this has nothing to do with WAFileLibrary. This is Magritte- 
Seaside and how it serves large binary files (like files you uploaded  
trough Pier).

> Now, with using ProxyPass and ProxyPassReverse that I'm only using in
> apache (no rewrite rules) I have no idea where WAKom is looking for my
> css files. No matter what pointer I place in the method styleCss, it
> doesn't seem to find them (I have an exact location off of the  
> directory
> the image is located). In fact, i don't even think styleCss is being
> accessed. Yes, I did add selectorsToInclude method in my own  
> FileLibrary.

I can't help you with ProxyPass and ProxyPassReverse, I never used that.

I don't use FileLibrary since I use Apache. Of course it is possible  
to use both, but I don't see the point. For my Web site I also  
created and added a file-library, but I only use it to conveniently  
add the static style-sheets to the HTML head:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stylelibrary.png
Type: application/applefile
Size: 76 bytes
Desc: not available
Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070305/a5ed4a1e/stylelibrary-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stylelibrary.png
Type: image/png
Size: 15498 bytes
Desc: not available
Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20070305/a5ed4a1e/stylelibrary-0001.png
-------------- next part --------------

> Also, bypassing apache (http://my.domain.com:9999/seaside/pier)  
> finds no
> css files either.
>
> Can others post their apache settings and also where they place their
> css files on your server? That might help. Or, what do you do for
> accessing css files? Obviously, I'm confused once again. This just  
> seems
> a bit too complicated.

The out-of-the box image (the one you get when installing Pier from  
SqueakMap) just works. If you start to change settings and/or use  
Apache then the complexity is in your own hands.

My Apache configuration looks like this:

   <VirtualHost *:80>

     ServerName www.lukas-renggli.ch

     DocumentRoot /home/apache/www.lukas-renggli.ch
     <Directory /home/apache/www.lukas-renggli.ch>
       Order deny,allow
       Allow from all
     </Directory>

     ProxyPreserveHost On

     RewriteEngine On
     RewriteCond /home/apache/www.lukas-renggli.ch/% 
{REQUEST_FILENAME} !-f
     RewriteRule ^/(.*)$ http://localhost:9002/seaside/pier/$1  
[proxy,last]

   </VirtualHost>

The rewrite rules basically says: If there is no static file on the  
filesystem home/apache/www.lukas-renggli.ch matching the request the  
pass it on to the Pier image running on port 9002.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch




More information about the smallwiki mailing list