|
Is Google AJAX Libraries API offering a way to serve framework file in minimize way?
Started by plehoux on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Unfortunately, Google does not serve gzipped versions..
Themselves are served minified by default.
|
|
I want to know how to simply publish over http = much like mercurial's hg serve! on the windows/work box do this:
git serve
and then on the linux box SIMPLY go:
git clone http://project project
finished.
Started by Setori on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
--export-all --verbose
This tells git-daemon to serve up.
It does not know where to serve the files from:
cd project git daemon --reuseaddr --base-path=.
You need to point git-daemon at your project.
|
|
How do you get IIS5 to serve PDF files when I navigate to the file I get a 404 error.
Started by Ryan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
You may need to setup a MIME type for PDF files in IIS, so that it knows how to serve them.
Point.
|
Ask your Facebook Friends
|
Hi,
How can I serve some static content in liferay? I have a directory structure with htmls, css, etc and I would like to serve it with an address like http://localhost:8080/myStaticContent/index.html and so on.
I don't want to use a front-end http server...
Started by Miguel Ping on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Try this:
find server.xml and add a <Context> element to it, if it is jBoss, you can find server.xml here: [jboss-home]/server/[config-name]/deploy/jboss-web.deployer/server.xml
<Context... .
I assume Liferay is using JBoss or Tomcat in this case .
|
|
What configuration is required to make Apache serve all files as text files in the browser window? For example if I have a file program.c , how can I make Apache serve it as plain text in the browser window rather than as a download?
I'm using Apache ...
Started by Bored user on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
For certain file types you would just add directives to your Mime.... .
You want ALL files to go over as plain text?? Or do you have a subset of filetypes you want to send as plain text? Not sure if there's a way to set everything to go over as plain text .
|
|
This works, but it was a stab in the dark. I know little Ruby.
What's the accepted way to serve a plain old file for a given resource?
get '/xyz' do File.read 'abc.html' end
Started by frou on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then, you can serve the file using send_file() for example:
get '/static_file' do send_file.
See the Static Files section of the README and the :static static files .
Serve it out of the ./public directory.
|
|
Python's paster serve app.ini is taking longer than I would like to be ready for the first request.
I know how to profile requests with middleware, but how do I profile the initialization time? I would like it to not fork a thread pool and quit as soon...
Started by joeforker on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
That's to say if you're going to profile paster serve itself.
That command by the parent paster serve --reload .
During development.
I almost always use paster serve --reload ...
Loaded paster app.
|
|
I'm an absolute beginner with ASP.NET[MVC] so this is probably a dumb question.
I want to wire-up a url "http://localhost/clientaccesspolicy.xml" to a specific controller action. How could I go about doing this?
I'm also wondering how to just statically...
Started by mackenir on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then add:
routes.MapRoute(null, "clientaccesspolicy.xml", new { controller = "Foo", action = "Whatever" });
That should work but I will warn you, this is ... .
You could accomplish this adding:
routes.RouteExistingFiles = true;
above all your other routes .
|
|
I'd like to serve django application on windows XP/Vista. The application is an at hoc web interface to a windows program so it won't be put under heavy load (around 100 requests per second).
Do you know any small servers that can be easily deployed on...
Started by Piotr Czapla on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Http://research.nokia.com/research/projects/mobile-web-server/
Also do you need anything else such as database support etc?
cherrypy... .
It supports python.
Why not Apache ?
Nokia have developed a scaled down version of apache to run on their mobile phones .
|
|
I have configured Tomcat 6 to serve Perl CGI scripts. That part is well documented and works ok for me.
But, when a browser requests an image from this CGI dir, Tomcat's CGI servlet refuses to serve the image, displaying instead merely the url of the ...
Started by Chinnery on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Thanks for....
Why do you want to put images inside your CGI directory? Shouldn't they be under the normal document root?
If you are constructing relative paths in the output of your script, add a BASE tag to the HTML head, or make the links absolute URLs .
|