http-status-code-404

Apphabor gives 404 on bootstrap.less

安稳与你 提交于 2019-12-11 05:03:42
问题 I have deployed a simple .NET MVC application on appharbor that implements bootstrap and less. The less loads fine on my localhost instance when i run it, however, when i push it to appharbor i get a 404 on bootstrap.less. Has anyone run into this before that might be able to tell me why? I have checked the buildout and the less directory/file structure exists on the deployment. The appharbor url is http://appharbor-bootstrap.apphb.com/ if anyone wants to check out what im seeing. Source can

Elmah and 404s under IIS6

ぃ、小莉子 提交于 2019-12-11 04:54:58
问题 Just wondering if it's possible to get Elmah to log 404s that aren't picked up by the ASP.NET framework - i.e. the 404s that IIS spots and replies to. Presumably this would involve some kind of entry in IIS -> web site properties -> Custom Errors tab. Can't find any reference on how to do this. 回答1: Non-ASP.NET mapped extensions (e.g. static content, classic ASP, etc) will never hit the ASP.NET request pipeline so ELMAH will never know about 404 Not Found's generated by IIS6. You'd need to

Can't get resource files in my template files (using Restlet and Freemarker)

戏子无情 提交于 2019-12-11 03:08:33
问题 I'm trying to develop a webapp with Restlet and I have a little problem for access to my /public/css/* and /public/js/*. I have messages like this in the console : INFO: 2012-03-10 23:52:59 127.0.0.1 - - 8182 GET /public/css/bootstrap-responsive.min.css - 404 439 0 0 http://localhost:8182 Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.11 (KHTML, like Gecko) Ubuntu/11.10 Chromium/17.0.963.65 Chrome/17.0.963.65 Safari/535.11 http://localhost:8182/hello I currently only have a HelloWorld using

Spring WebApplicationInitializer not working in wildfly 8.2.0 EAR Deployment

馋奶兔 提交于 2019-12-11 02:57:43
问题 I have very simple EAR with one spring mvc web app (war), all spring libraries are in myear.ear/lib folder. I'm not using web.xml instead i'm trying to use WebApplicationInitializer but Wildfly server is not detecting this and i'm getting 404 page. But if i have spring-mvc libs inside WEB-INF/lib then its working. Even I have put debug pointer at my WebApplicationInitializer implementation but it doesn't seem calling the onStartup method itself (and No error logged). Has anybody faced the

Let apache handle 404 error when deemed appropriate by PHP?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 02:39:49
问题 I perfectly know how to create a custom 404 page in PHP, however I'm wondering if there's a way to give back control to to apache and let it produce the proper 404 page, sending right headers, etc. when my logic says so? I'm looking at some apache specific functions but can't seem to find anything appropriate. Is that really just not possible? I recall something similar available to e.g. mod_perl by having full access to apache internals, where's that equivalent in PHP? 回答1: My research so

Javascript absolute path to URL works on one page, but creates ajax error message on another

僤鯓⒐⒋嵵緔 提交于 2019-12-11 02:28:03
问题 I have two URLs: http://s140452.gridserver.com/view-pullsheet/ https://s140452.gridserver.com/locations/ When browsing through any properties on the locations page (as well as any single property, filtering properties using the sidebar, adding and removing properties from the "pullsheet") the jcart.js script works fine -- it is in control of adding and removing photos from the "pullsheet". From this page however, http://s140452.gridserver.com/view-pullsheet/ , I get the following error "Ajax

error-handlers on app.yaml

耗尽温柔 提交于 2019-12-11 02:26:12
问题 How to handle different error codes on app engine? In my app.yaml file, I have- error_handlers: - file: error/notfound.html - error_code: over_quota file: error/over_quota.html handlers: ..some handlers.. This doesn't seem to work. If my site doesn't have a folder name foo and a user looks for http://mysite.com/foo, it just returns a standard 404 error, not the page I specified on app.yaml. My static dir is separate from error dir. Both error and static dirs are inside project dir. What am I

CakePHP without mod_rewrite causes 404 errors

时光总嘲笑我的痴心妄想 提交于 2019-12-11 01:33:31
问题 I'm pretty new to Cake, so I tryed to start with the blog tutorial. I installed CakePHP 2.3.8 in webroot. Configured SQL and deleted all 3 .htaccess-files, cause i have no mod_rewrite. In core.php I activated Configure::write('App.baseUrl', env('SCRIPT_NAME')); I created the Posts-Model, Controller and the index-View like the tutorial says. The APP/View/Pages/home.ctp tells me, everything's allright. But when i try to open /posts/index i get a 404. Why? 回答1: Without mod_rewrite the urls look

Create custom error when it returns 404 in ASP.NET MVC

徘徊边缘 提交于 2019-12-11 01:23:08
问题 I've tried to search and found some solution on it. I tried it on but no luck. Most of the accepted solution is to configure your Web.config file I tried it but it still return the default error page <configuration> <system.web> <customErrors mode="On"> <error statusCode="404" redirect="~/Error/Error404" /> </customErrors> </system.web> </configuration> any other way on how to configure it? I don't want to configure it in IIS 回答1: This solution doesn't need web.config file changes or catch

Can I redirect to a valid Wicket page when attempting to access a non-existent page?

瘦欲@ 提交于 2019-12-11 01:20:57
问题 Introduction If a user of my Apache Wicket web application (which runs on GAE/J) attempts to visit a non-existent page, for example: http://[MyURL]/admin/PageSubscribeX the web framework logs the following warning: org.apache.wicket.core.util.lang.WicketObjects resolveClass: Could not resolve class [[...].admin.PageSubscribeX] java.lang.ClassNotFoundException: [...].admin.PageSubscribeX at com.google.appengine.runtime.Request.process-78915baf06af5f31(Request.java) at java.lang.Class.forName