Questions tagged [staticfilehandler]
18 questions
28
votes
7 answers
Start an apache server in any directory from command line
I want to be able to start an apache server from the command line, typing something like apache site-folder or apache . --port=2000
This should read and use .htaccess files.
I know about python -m SimpleHTTPServer and it's close to what I need, but…

Devin Rhode
- 23,026
- 8
- 58
- 72
19
votes
3 answers
HTTP Error 500.0 on StaticFile when using custom identity for AppPool
I have an MVC4 web application deployed on a Windows 2012 R2 server with IIS 8.5.
I configured the Application Pool to run with a custom domain account because the web application needs to call another webservice on the network with Windows…

Yann
- 425
- 1
- 5
- 16
19
votes
5 answers
Django static files on heroku
I deployed a django app to heroku, using "git push heroku master" which worked absolutely fine.
I then created a second app on the same git using "heroku create second-app -r staging'
and pushed using: git push staging master
when I open second-app,…

Ammar Akhtar
- 1,698
- 3
- 13
- 25
6
votes
1 answer
Static files outside the wwwroot for .netcore app
I'm using https://github.com/ebekker/ACMESharp for my SSL at my @home web-server (it's free! :O). It was pretty manual, but noticed on the wiki it mentioned another project at https://github.com/Lone-Coder/letsencrypt-win-simple which was a GUI for…

Kritner
- 13,557
- 10
- 46
- 72
5
votes
1 answer
Configuring IIS 7 to handle static files through a Virtual Path Provider
I have a virtual path provider that serves static files from my virtual file system,is it possible to configure the IIS to server static files through my virtual path provider or do I need to create a custom static file handler?

marcus
- 9,616
- 9
- 58
- 108
4
votes
1 answer
Custom Http Handler in MVC 3 Application
I'm using an Http Handler to localize javascript files used in my application:
see: Localize text in JavaScript files in ASP.NET
I want to use the handler provided so I did the following:
1) Ignored routes using this code in Global.asax - I have…

Mortalus
- 10,574
- 11
- 67
- 117
3
votes
1 answer
Web hosting is telling me I need to add http handlers for static content in my web.config?
I have an MVC2 app on shared hosting with a company... we'll call them Hosters.
I didn't think Hosters supported MVC2, but when I connected live chat to ask they said to put in a ticket and they'll install MVC2 for me! Very cool!
After a quick wait…

Nick Spiers
- 2,344
- 2
- 19
- 31
2
votes
1 answer
.NET 7 API catch-all route without breaking static files
We are using attribute routing in a .NET 7 API project. In the startup we call UseStaticFiles() before calling MapController(). Something like this:
app
.UseDefaultFiles()
.UseStaticFiles()
.MapControllers();
app.Run();
We are trying to…

PaulVrugt
- 1,682
- 2
- 17
- 40
1
vote
1 answer
Problem using custom HttpHandler to process requests for both .aspx and non-extension pages in IIS7
I am trying to process both ".aspx" and non-extension page requests (i.e. both contact.aspx and /contact/) using a custom HttpHandler in IIS7. My handler works just fine in either one case or the other, but as soon as I try to process both cases, it…

sagescrub
- 549
- 1
- 8
- 20
1
vote
1 answer
Hosting static file for Download Python Tornado
Hey I am struggling to have a static file available for download using Python and Tornado on my server.
class templateHandler(tornado.web.RequestHandler):
def get(self):
self.write("""
Download
""")
application…

Nick Trileski
- 151
- 1
- 2
- 8
0
votes
2 answers
Change file root for StaticFileHandler
I have an ASP.NET web project that (among other things) is serving some static files. By default, the framework assumes that all file paths are relative to the location of the web project. However, I'd like the actual root to be loaded from a custom…

kpozin
- 25,691
- 19
- 57
- 76
0
votes
0 answers
IIS 10 serve static file truncated if being written to
Using IIS 10 to serve a static XML file is causing the file to be occasionally truncated. There is a separate process that frequently rewrites the file using some C# code within another application in IIS on the same server. If there is a web…

DavGarcia
- 18,540
- 14
- 58
- 96
0
votes
1 answer
Why StaticFile handler running instead of Custom handler
I am migrating a legacy web application to iis 10. Site is mostly written in classic asp and asp code is running fine for files with .asp extension. However, there are some pages in the site are saved with the .uasp extension which is throwing the…

raj
- 143
- 1
- 11
0
votes
1 answer
Why is IIS 10 default document not working for a static file?
I have an IIS 10 site and I can download document index.html from the root directory without issues. However, when I try to download the same file using the default document feature, I get status code 404.0 and it looks like IIS made no attempt to…

Tim Williams
- 873
- 8
- 10
0
votes
2 answers
Docker Nginx with Angular JS - Load Static CSS, Images, JS with dynamic url
We are moving our legacy deployment to Docker Containers. All services will be running in seperate docker containers. Services includes Postgres, Redis, JobProcessor, LogProcessor, Nginx with Consul template, Consul, Registrator, Rabbitmq and the…

Sathish Sharma
- 21
- 4