WebFaction
Community site: login faq

I have set up a static_only app which serves files for http://my-url/static/* which are stored at

/home/my-account/webapps/my-name/

This is working fine for files that are at the top level:

/home/my-account/webapps/my-name/somefile.html

but I'm getting a 404 if I try to look at http://my-url/static/admin/help.html (or indeed, the admin directory, index.html in the admin directory, etc.) The file is indeed located in the expected place: /home/my-account/webapps/my-name/admin/help.html (and index.html, etc). Per the suggestion, I double checked permissions, which all seem to be fine. Is this a limitation on the way static_only webapp is designed to work?

asked 28 Nov '12, 00:02

griswolf
2115
accept rate: 0%


You can serve files in subdirectories from a static_only application exactly as you describe.

In your case, this isn't working because you have the path /static/admin mapped in the control panel to another application, not the same application which handles requests to /static, so your request is not going to the static application that has your help.html file.

Hope that helps!

permanent link

answered 28 Nov '12, 01:02

ryans ♦♦
5.0k93360
accept rate: 43%

edited 28 Nov '12, 01:03

Worked like a charm. Thanks for pointing me at the forest rather than the trees.

(28 Nov '12, 02:49) griswolf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×31
×19

question asked: 28 Nov '12, 00:02

question was seen: 2,450 times

last updated: 28 Nov '12, 02:49

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM