http-status-code-404

Moved my ASP.NET website to IIS 8 on windows server 2012… services missing: .svc files are viewable, but their methods give a 404

旧城冷巷雨未停 提交于 2019-11-29 01:56:32
I moved from IIS 6 on windows server 2003. I can browse to the .svc files . I get a nice standard "This is a Windows© Communication Foundation service" page if I go to http://example.com/Service.svc in a browser. But I can't browse to any of the methods - I get a 404 error if I go to http://example.com/Service.svc/Method?parameter=xyz in a browser. Has anyone seen anything like this? Any ideas or suggestions? I thought I might have a similar problem to this question: WCF on IIS8; *.svc handler mapping doesn't work But the symptoms are different (looks like they can't see .svc files at all) and

sourceMappingURL from jquery generates 404 error in apache

爷,独闯天下 提交于 2019-11-29 01:38:42
问题 Was browsing through apache logs and found interesting thing: When a users access any page where I have included jquery, apache tries to get jquery-xxx.min.map file and failed with 404 error. Here is an example: xxx.xxx.xxx - - [Date:TIME +0000] "GET /js/lib/jquery-1.10.2.min.map HTTP/1.1" 404 3134 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36" This is not a surprise, because I clearly do not have this min.map file. I do not

Laravel: How to respond with custom 404 error depending on route

痴心易碎 提交于 2019-11-29 01:29:07
问题 I'm using Laravel4 framework and I came across this problem. I want to display a custom 404 error depending on requested url. For example: Route::get('site/{something}', function($something){ return View::make('site/error/404'); }); and Route::get('admin/{something}', function($something){ return View::make('admin/error/404'); }); The value of '$something' is not important. Shown example only works with one segment, i.e. 'site/foo' or 'admin/foo' . If someone request 'site/foo/bar' or 'admin

TYPO3: 404 for restricted access page instead of login form

会有一股神秘感。 提交于 2019-11-28 23:50:00
I have a link pointing to restricted page. When I access the link directly in logout status, its redirect to 404. Actually it should redirect to login form. I tried: config { typolinkLinkAccessRestrictedPages=PAGE_ID typolinkLinkAccessRestrictedPages_addParams = &return_url=###RETURN_URL###&pageId=###PAGE_ID### } Not working. Also I tried the login status redirect plugin, no use. Anyone know how to do this? I am using TYPO3 version 4.4.8. Mateng As this is still unanswered, does this help? # Check if user is logged in: [usergroup = *] # do something [else] page.config > page.config

Android Multipart Upload

你离开我真会死。 提交于 2019-11-28 23:42:36
As part of my Android app, I'd like to upload bitmaps to be remotely stored. I have simple HTTP GET and POST communication working perfectly, but documentation on how to do a multipart POST seems to be as rare as unicorns. Furthermore, I'd like to transmit the image directly from memory, instead of working with a file. In the example code below, I'm getting a byte array from a file to be used later on with HttpClient and MultipartEntity. File input = new File("climb.jpg"); byte[] data = new byte[(int)input.length()]; FileInputStream fis = new FileInputStream(input); fis.read(data);

Magento 404 on Admin Page

笑着哭i 提交于 2019-11-28 23:36:45
About a week ago, I was working in a test environment for a new site. I left for an hour, came back, and now cannot get to the admin page, as in ‘ http://magento.localhost.com/admin ’ results in a No Route 404. I am the only one with access to this, it is not live in any sense. I am using VBox with Ubuntu to host the environment. In terms of possible fixes, so far I have tried… Making sure core_store, core_store_group, core_website, and customer_group table ids are set to 0 (as described in this and many other articles - http://www.nude-webdesign.com/fix-for-magento-admin-error-404-page-not

Magento admin URL not working: 404 after changing it, can't go back

随声附和 提交于 2019-11-28 21:33:26
I've been looking through all the topics to find something similar to my case. I've found a few similar cases, but none of the solutions solved my problem. I changed through the backend the admin url. After saving changes, magento took me directly to a 404 error. The new url I defined for the admin url was "gestion". Going to mydomain.com/gestion, gets a 404 error. So I decided to go back deleting the new entries that were created on the magento core_config_data table and then emptied manually the cache directory. But after that I've got the same error: 404 page not found. I've tried this and

How can I return a 404/50x status code from a Grails Controller?

牧云@^-^@ 提交于 2019-11-28 21:00:55
I have a controller that needs to return a 404 page and status code on certain conditions. I can't seem to find out how to do this in Grails. A coworker recommended this method: response.sendError(HttpServletResponse.SC_NOT_FOUND) which works perfectly fine, but it's not very Grails-like. I know Rails' render method take a status argument, but Grails' render has no such functionality. Is there something I'm missing, what's the best way to accomplish this? Setting the response status with its own statement is good enough. It doesn't look too ugly and is pretty straightforward: response.status =

How to detect on-page 404 errors using JavaScript?

吃可爱长大的小学妹 提交于 2019-11-28 19:20:34
I have an HTML page where several JavaScript, CSS and images files are referenced. These references are dynamically injected and user can manually copy the HTML page and the support files to another machine. If some JS or CSS are missing, the browser complains in the console. For example: Error GET file:///E:/SSC_Temp/html_005/temp/Support/jquery.js I need somehow these errors reported back to me on the inline JavaScript of the HTML page so I can ask user to first verify that support files are copied correctly. There's the window.onerror event which just inform me that there's a JS error on

Nginx Error Pages - One Location Rule to Fit Them All?

六月ゝ 毕业季﹏ 提交于 2019-11-28 16:13:21
Having the following nginx vhost config: server { listen 80; listen 443 ssl; server_name default; root /var/www/default/html; error_log /var/www/default/log/error.log; access_log /var/www/default/log/access.log; ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; autoindex on; index index.html index.php; location / { try_files $uri $uri/ @php; } location @php { rewrite ^/(.*)/?$ /index.php/$1 last; } location ~* /(?:[.]|.*[.](?:bak|fla|inc|ini|log|psd|sh|sql|swp)|(?:file|upload)s?/.*[.](?:php)) { deny all; } location ~* [.](?:php) {