[Box-Admins] serving files from box4
Levente Uzonyi
leves at elte.hu
Wed Mar 19 17:44:24 UTC 2014
On Wed, 19 Mar 2014, Tobias Pape wrote:
> On 19.03.2014, at 16:33, Chris Cunnington <websela at yahoo.com> wrote:
>
>> It's not ideal to serve squeak.org's resources files from my website forever, so how do we serve files from box4?
>> I'm going to post this idea and leave it for a week before I change anything.
>> I figure a week is enough time for people to look at the question.
>>
>> nginx serves files from /usr/share/nginx/.
>> It's default is /usr/share/nginx/html.
>> The basic directive looks like this:
>>
>> location / {
>> root /usr/share/nginx/html;
>> index index.html index.htm;
>> }
>>
>> I'm thinking we have directories for each service in the default directory:
>>
>> /usr/share/nginx/ftp
>> /usr/share/nginx/map
>> /usr/share/nginx/source
>> /usr/share/nginx/wiki
>> /usr/share/nginx/www
>> /usr/share/nginx/lists
>>
>
> I propose to use the standard /var/www
> but apart from that, yes.
Yes, and no :). As I said, I'll write proper config files. I've started to
change stuff already, but editing anything on the server is a pain, due to
the lack of tools (vim, screen, etc).
So far I've added the classic sites-enabled/sites-available directories,
which lets us have active and inactive per domain config files.
We'll need separate configurations for the static files of the website,
and for other files (e.g. the files from ftp.squeak.org). The most
important is to move the website's static files first. I wonder what
possibilities does Altitude have here. Can it store a separate version
label for each file?
Levente
>
> Best
> -Tobias
>
>
>> We could add a new subdomain called "files" and serve from it.
>>
>> http://files.squeak.org/map
>> http://files.squeak.org/ftp
>> http://files.squeak.org/source
>> http://files.squeak.org/wiki
>> http://files.squeak.org/www
>> http://files.squeak.org/lists
>>
>> Thanks,
>> Chris
>
>
>
More information about the Box-Admins
mailing list