<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey everybody,<br>
<br>
i found this old topic and i have a similar problem.<br>
I am using the Apache and configurated the Server as described in
the Seaside book, with the virtual host and all that stuff.<br>
But my problem is, i do not really get the section with serving
static files. <br>
<br>
Here an example:<br>
<br>
I have a login component, with a jpeg logo.<br>
Until now i displayed the logo over the image, with a file library,
but it is too slow.<br>
Now i use the current vhosts config:<br>
<br>
<VirtualHost *><br>
<br>
ProxyPreserveHost On<br>
ServerName <a class="moz-txt-link-abbreviated" href="http://www.exmaple.eu">www.exmaple.eu</a><br>
<br>
<br>
DocumentRoot "D:/Server/Apache/myApp/web"<br>
<Directory D:/Server/Apache/myApp/web><br>
Order deny,allow<br>
Allow from all<br>
</Directory><br>
RewriteEngine On<br>
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f <br>
RewriteRule ^/(.*)$ <a class="moz-txt-link-freetext" href="http://localhost:6060/myApp/$1">http://localhost:6060/myApp/$1</a> [proxy,last]<br>
<br>
<br>
</VirtualHost><br>
<br>
My Question is, how do i connect my image with the external content?<br>
<br>
At the moment my mehtod looks like this:<br>
<br>
<i>renderLogo: html width: aWidth <br>
<br>
<br>
(html image)<br>
altText: 'Logo';<br>
width: aWidth;<br>
url: (FileLibraryWf urlOf: #logoJpeg)</i><br>
<br>
Sorry if this is a stupid question, but i thought about it very much
and do not find a solution.<br>
<br>
Thank you very much!<br>
<br>
Malte<br>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">Hi,
<a href="http://pastie.org/488614">http://pastie.org/488614</a> is an apache vhost config I have. The basic
idea is that you put your static resources in some dir and set the
webserver to serve out of there, and then use your server's mod_proxy
to check each request path and serve the file if one's there or proxy
it to seaside if there's no file there. I haven't done it with
seaside/nginx but you can google for rails/nginx setups because they
work the same way.
Pat
On Sun, May 24, 2009 at 2:47 AM, muthu kutti <<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">muthu.kc at gmail.com</a>> wrote:
><i> Hi All!
</i>><i>
</i>><i> I would like to move jQuery and related files out of the image have them
</i>><i> served directly by Nginx. How do I go about doing that?
</i>><i>
</i>><i> Thanks in advance.
</i>><i>
</i>><i> Muthu
</i>><i>
</i>><i>
</i>><i>
</i>><i>
</i>><i> _______________________________________________
</i>><i> seaside mailing list
</i>><i> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">seaside at lists.squeakfoundation.org</a>
</i>><i> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</i>><i>
</i>></pre>
<br>
</body>
</html>