|
This is so strange.
Today I discovered that my fresh installation of Apache HTTP Server is able to serve files from my C:\uploads\ directory.
I have two folders in c:\uploads:
c:\uploads\templates c:\uploads\sites
Both folders contain testimage.jpg.
I...
Started by chickeninabiscuit on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Did you look through your httpd.conf file to see what rules are in place for what is being served? Alternatively, are there .htaccess files that may be changing what is being served? You might have templates exposed in one or the other, ....
|
|
What is the best practice when serving files from the Zend Framework MVC? These files have to be served from the MVC as they are protected.
I know you can read in the file and place it into the Response object but this seems like a bad practice as you...
Started by smack0007 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The downside being that it is specific to the configuration... .
Basically the webserver will replace the output of the script with the file you specified .
It is supported by lighttpd and newer versions of apache .
You could try using the X-Sendfile header.
|
|
I read this guide about serving static media with Django during development.
I noticed that MEDIA_URL and MEDIA_ROOT were not used in this. Why? What's the difference?
I tried doing it with MEDIA_URL and MEDIA_ROOT , and got weird results.
Started by cool-RR on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Running the built....
The MEDIA_URL and MEDIA_ROOT are usually used for this.
In a production situation you will want your media to be served from your front end web server (Apache, Nginx or the like) to avoid extra load on the Django/Python process.
|
Ask your Facebook Friends
|
I'm looking to split our image serving functionality off from our main server. We have nearly half a million images - any of which could be accessed at any time. I've been investigating using a W2k8 cluster connected to a iSCSI SAN and was wondering if...
Answer Snippets (Read the full thread at serverfault):
You also remove the need.
9 active disks and have a hot spare will still be serving and you'll still have access to all or your data.
(actually you'd probably have 9G, i.e.
Be serving data from site B.
|
|
How to serve users a dynamically generated ZIP archive in Django?
I'm making a site, where users can choose any combination of available books and download them as ZIP archive. I'm worried that generating such archives for each request would slow my server...
Started by zuber on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Ability.
Advantages:
Serving static zip files with django media mechanism (like usual uploads).
I suggest to use separate model for storing those temp .
Web server serving them as usual statics.
|
|
I've got two Apache webservers that serve thousands of files per second. I want to compare the two webservers to determine who is actually faster in terms of who can serve more files/s.
mod_status with ExtendedStatus On would exactly do this job, but ...
Started by bene on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
Would it relieve the impact of turning on logging to log to a remote server ?
Could you run tcpdump on a machine in ... .
If mod_status is not an option, might apachetop be an option? If you cannot run access logs or mod_status you will be quite limited .
|
|
I am trying to get an introduction to serving files to the iphone. I have watched tutorials on getting files from sites like Flickr and twitter. I need a tutorial to show me how to set up the site that is feeding that information. Most of those sites ...
Started by Lumpy on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
All those sites use a web service to achieve the json response, depending on what you are using the ability to send back json responses might be built in to the services framework etc (.net for example), here is a question that talks about using .net ... .
|
|
I have several local machines; I use a OSX 10.6 machine to do most of the serving. Annoyingly, it postfixes its network name with .local .
How would I set up a system so that I could access it by its hostname?
server: httpd apache2 default install
I am...
Started by Paul Nathan on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Finally, you....
You will then need to configure PowerDNS to point to an upstream DNS resolver for queries outside of your LAN .
Software like PowerDNS should do the trick.
You would need to set up a DNS nameserver and configure your machines to look to it .
|
|
I'm looking into supporting HTTP/1.1 Byte serving in WSGI server/application for:
resuming partial downloads multi-part downloads better streaming WSGI PEP 333 mentions that WSGI server may implement handling of byte serving (from RFC 2616 section 14....
Started by myroslav on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The WebOb file serving example shows how you would implement your own app_iter.
The requested range.
|
|
Hi all,
I've been successfully serving media files for the normal MEDIA files, but when I tried serving admin media files, I failed. please kindly help me locating the problem, as I've tried to troubleshoot the problem for several hours already with no...
Started by Adrian Liem on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Try
(r'^admin_media/(.*)', 'django.views.static.serve', {'document....
Try changing:
ADMIN_MEDIA_PREFIX = '/static/media/'
This assumes that your MEDIA_ROOT/media/ directory contains the admin media folder (which is what I understood from your question) .
|