Hi all,

First of all sorry my poo English (Olá de Portugal).

I am trying to get static files in mako templates but I can't and allways 
get 404 in apache2 log. If I point the browser to 
http:///myhost/mypylonapp/css/main.css it works but inside the template 
don't work.

In my mako template I have:
*<link rel="stylesheet" href="/css/main.css" type="text/css" />*

and the file is /media/Dados/Pylons/webhp/webhp/public/css/main.css

My pylons app is configured with apache2 + fastcgi:

>From apache config I have:
*Alias /webhp /media/Dados/Pylons/webhp/xpto.fcgi*
*DocumentRoot /media/Dados/Pylons/webhp/webhp/public*
*
*
*DirectoryIndex /xpto.fcgi*
*
*
*<IfModule mod_fastcgi.c>*
*    FastCgiExternalServer /media/Dados/Pylons/webhp/xpto.fcgi -host 
localhost:5000*
*</IfModule>*
*
*
*<Location /webhp>*
*    Options +ExecCGI*
*    AddHandler fastcgi-script .fcgi*
*</Location>*
*
*
*<Directory /media/Dados/Pylons/webhp/webhp/public>*
*      order allow,deny*
*      allow from all*
*      Options Indexes All FollowSymLinks ExecCGI*
*      AllowOverride All*
*</Directory>*


My xpto.fcgi:
*#!/usr/bin/env python*
*import logging*
*# Load the WSGI application from the config file*
*from paste.deploy import loadapp*
*wsgi_app = loadapp('config:/media/Dados/Pylons/webhp/development.ini')*
*
*
*# Deploy it using FastCGI*
*if __name__ == '__main__':*
*     from flup.server.fcgi import WSGIServer*
*     WSGIServer(wsgi_app).run()*

Can you point me what can I correct so the templates can access static files 
like css or javascript or favicon.ico ?

Many thanks,
Helio Pereira





-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to