On Sep 12, 2011, at 10:49 PM, Charlie Martin wrote:
> I have no doubt this will turn out to be dumb, but I'm not very experienced
> with .htaccess files and I'm having a struggle.
>
> I've got a pretty straight forward web.py application I'm building. It works
> fine running the local webserver. However, when I put it on Dreamhost, I
> can't access my static files.
>
> Per the Dreamhost instructions, the .htaccess file is:
>
> [cummiskey]$ cat .htaccess
> Options +ExecCGI
> AddHandler cgi-script .py
> DirectoryIndex index.py/
> <IfModule mod_rewrite.c>
> RewriteEngine on
> RewriteBase /public/
> RewriteCond %{REQUEST_URI} !^/favicon.ico$
> RewriteCond %{REQUEST_URI} !^/static/(.*)$
> RewriteCond %{REQUEST_URI} !^(/.*)+index.py/
> RewriteRule ^(.*)$ /index.py/$1 [PT]
> </IfModule>
>
I"ve got a small webpy app running on DreamHost that serves static files. The
only difference in my .htaccess is my RewriteBase line.
Mine is RewriteBase /
FWIW, I don't have a public folder. The website is on a subdomain (xxx.xxx.com)
and the main.py, .htaccess files (and others) and static directory are in the
main subdomain directory
~/xxx.xxx.com/main.py
~/xxx.xxx.com/static/
Mark
--
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en.