Tagged Questions

404 is the HTTP status code for "Not Found"

learn more… | top users | synonyms

1
vote
1answer
81 views

Why is Nginx serving `index.html` instead of a 404?

I have a site where requesting a particular JSON file and finding it missing triggers a request for a fallback JSON file. However, rather than getting a 404 for the first file, I was getting the ...
1
vote
1answer
445 views

Nginx 404 error page php with params

In Opencart, 404 error is shown in this url: /index.php?route=error/not_found This page has a 404 custom page with the template of all the website. I´ve tried in Nginx with: error_page 404 = ...
0
votes
1answer
266 views

Getting Drupal or Apache to try a proxy on 404

I have a legacy (Tomcat) site that used to be called host.domain and recently deployed a Drupal site. The new Drupal server is now host.domain and the old Tomcat server is legacy.domain. Most of the ...
1
vote
1answer
767 views

Microsoft exchange autodiscover 404 errors

What is the best way to handle an Exchange autodiscover request on a linux web server? Currently it looks for example.com/autodiscover/autodiscover.xml. Since this page doesn't exist it throws a 404. ...
0
votes
2answers
315 views

nginx serving alternate location on 404

I'm trying to set up an nginx config as follows: When receiving a request like /tile/SteveCountryVic/1/2/3.png: Attempt to pass it through to http://localhost:5005/1/2/3.png If that 404s, pass it to ...
0
votes
1answer
61 views

Is it possible to create Custom Error Log in Apache 2 for 404 hits?

Is it possible to create a log file (for example not_found.log) with only 404 HTTP Status Code with Apache2? Just like this: http://www.helicontech.com/articles/mod_log_config-capabilities/ (Per ...
0
votes
0answers
103 views

mod_proxy when no file exists for request

I have a lighttpd server where static files will be generated by a NodeJS process. The Node server will be running express on port 3000 (same computer). I would like lighttpd to serve the static ...
0
votes
2answers
166 views

Nginx returning 404 with Python-urllib but fine if accessed from browser

We have a repo server running on a Windows box serving some static files that are supposed to be grabbed by our worker nodes using Python-urllib. The problem lies in the fact that when we make a ...
0
votes
1answer
80 views

Why IIS is still blocking Web.config even after setting denyUrlSequences and fileExtensions?

One of the IIS sites I manage forwards all the requests to Apache. This means that any request, including requests to files such as .config, should be forwarded. <security> ...
1
vote
1answer
545 views

Plesk 11 - Custom Error Documents, URL fails with “Wrong URL format”

I am setting up a new Plesk account and want to add a custom error document, 404, specifying a URL to a PHP file. In another account, which uses an earlier version of Plesk (v10, if not mistaken), ...
0
votes
1answer
41 views

Apache memory usage with 404

We're facing a problem with an apache server serving static files. When there are lots of requests for a resource that doesn't exist the apache starts to grow in number of processes and memory usage ...
0
votes
1answer
120 views

install nginx on centos 6 but folders isnot working give me 404 not found

I've install Nginx on CentOS 6 without control panel following these steps. I got Nginx installed successfully, see this link. But I still have a folder that isn't showing and giving me "not found ...
3
votes
1answer
981 views

Serve 404 from HAProxy when no acls match

I'm currently re-configuring HAProxy using 1.5dev-17. What I'd like to do is return a 404 error when there is no backend to use for a particular request. Our current configuration uses the ...
0
votes
1answer
138 views

404 errors with Virtual Host [closed]

Machine: Mac Book Pro Web Server: Apache I'm building a Wordpress site locally and I've set it up as a virtual host, I've made the following changes to http-vhosts.conf: <VirtualHost *:80> ...
0
votes
2answers
285 views

After moving eKtron Site from iis6 to iis7 site is running but some of the links do not work and

Background I moved this site from IIS6 WIN2K3 to WIN2K8R2 IIS7 and the site launches but I'm getting errors on lots of the links/main menu items. Things I have already checked application pool ...
0
votes
2answers
2k views

nginx display a not found image

I have a lot of hotlinked images. Which is fine but some do not exist anymore due to change in URL. Is it possible to display something like imageshack "image not found error" picture only when images ...
0
votes
1answer
428 views

Nginx + Unicorn Rails Application gets 404 when requests number are high

I have a Rails application deployed using Nginx + Unicorn. Last night, when the traffic peaked, Nginx was getting lots of 404 errors. When I dig into logs, those 404 requests on the nginx side did not ...
1
vote
0answers
70 views

Azure Websites WAWS and several subdomains

I have a website mysite.azurewebsites.net and a domain mydomain.com Linking mydomain.com to the website succeded. I added a DNS entry A record and the awverify.mydomain.com CNAME to ...
7
votes
1answer
13k views

IIS 404 error where file exists

I have a fresh VPS installation from my provider (Windows 2008 R2, IIS 7.5). The default web site works fine: http://5.9.251.167/ I created a new website, and binding for http://new.ianquigley.com ...
0
votes
1answer
152 views

nginx alias using php5-fpm response 404

I use php5 fpm using nginx. but i have a problem. # debug alias location /bb/ { alias /usr/share/blahblah/; } file on http://mysite.localhost/bb/index.php was not found. but it's still on ...
0
votes
1answer
456 views

The mod_negotiation seems to be enabled, but .php files without extensions return 404

I have the following problem - after moving to a new platform PHP files aren't found unless URL contains their extension. So, if /var/www contains file problem.php, the URL ...
0
votes
1answer
220 views

How is a 404 custom error page requested by browser?

I am trying to understand how the communication works between the browser and the server in the case of custom error message. I understand a 301/302 header which contains the URL of the page in ...
0
votes
1answer
85 views

500 error on 404 request

I am having a problem where my site's 404 request are ending up as 500 errors on the server. When I use wget to retrieve the site, I get this Resolving gx5.co.uk... 127.0.0.1, 87.106.9.224 ...
0
votes
1answer
542 views

nginx proxy_pass POST 404 errors

I have nginx proxying to an app server, with the following configuration: location /app/ { # send to app server without the /app qualifier rewrite /app/(.*)$ /$1 break; ...
0
votes
1answer
122 views

existing file gives 404 due to a RewriteCond rule in .htaccess

To redirect a specific domain name to a folder in my public dir, www/, I edited .htaccess to the following: RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+)?domain.com$ RewriteRule ^(/)?$ ...
0
votes
2answers
1k views

Nginx + PHP-FPM executes script, but returns 404 [closed]

I am using Nginx + PHP-FPM to run a Wordpress based site. I have a URL that should return dynamically generated JSON data for use with the DataTables jQuery plugin. The data is returned properly, but ...
0
votes
1answer
394 views

Nginx .zip files return 404

I have set up Nginx as a reverse proxy for Node and to serve my static files and user uploaded images. Everything is working beautifully except that I can't understand why Nginx can't find my .zip ...
0
votes
1answer
72 views

Preserving URLs after CMS migration with redirect database and apache http?

We will migrate an entire intranet from one CMS to another. All URLs will change in a non-predictable pattern, but I can capture a file with original,new URLs I can feed into anything. I have hundred ...
1
vote
1answer
687 views

PHP File Lister Sub Directory 404 Error on Lighttpd

I just installed lighttpd today and I am having issues with lighttpd always returning a 404 error on the sub directories. I am trying to install this (h5ai) and I've followed the directions to the ...
0
votes
1answer
3k views

Classic ASP start page not found (404) in IIS 7 on Windows Server 2008 R2

My site/application points to a folder called "site" with all permissions set up. In that folder resides "home.asp". Default document is "home.asp". When I go to the domain, I get a "page not found". ...
0
votes
1answer
142 views

How to redirect a 404 to https in nginx?

For some reason a Redmine installation keeps redirecting some https requests to http. I'd like to change 404 response for the vhost the pages are redirected to back to the https it should have gone ...
1
vote
2answers
749 views

Magento Migration - Always 404

I just cant get Magento running on a new server. I followed these Instructions exactly, I tried both methods. When I open the website, it just gives me the Magento 404 "Page not Found" page. I do not ...
-1
votes
1answer
47 views

nginx 404 logs to all virtualhosting logs

I am using nginx and i have two sites running: site1 = /1/access.log site2 = /2/access.log when a user get 404 images not found on site2 nginx writes to access.log of site1 & site2 reporting the ...
3
votes
1answer
141 views

Yahoo Hosting: Custom Error Pages (IE)

So one of my clients uses Yahoo Hosting in a shared environment. Absolutely horrible, can't even upload a .htaccess file. They have an option where you can setup custom error pages by uploading a a ...
1
vote
1answer
83 views

Stop showing server software version information on 404

e.g. if someone type url that dont exist it shows 404 page and on bottom Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 ...
0
votes
1answer
88 views

Use shared 404 page for virtual hosts in Nginx

I'd like to have a shared 404 page to use across my virtual hosts. The following is my setup. Two sites, each with their own config file in /sites-available/ and /sites-enabled/ www.foo.com ...
0
votes
1answer
855 views

Redirect 404 errors without rewriting the URL

Is it possible to have an erroneous URL remain in the address bar while redirecting the user to a URL within my domain? I want www.domain.com/forum to be the actual site being served in all 404 ...
0
votes
1answer
59 views

Webmaster randomly reporting a massive increase in 404s (apparently from old sitemaps)

Well, I'm stumped. Several months back, we launched a totally new website, replacing a legacy system that was pretty messy. Part of the mess was many, many pages created that really didn't need to be ...
0
votes
1answer
489 views

Nginx dynamic PHP 404 (with URL rewriting)

I'm trying to set-up dynamic 404 pages so that I can keep the URL of the missing content, show it on the 404 page and keep my site's template consistent. Here is my site conf: server { listen ...
1
vote
2answers
1k views

Cannot serve epub files in IIS6

i am trying to serve epub files in IIS6 (Windows Server 2003), but instead the browser serves a 404 Not Found page. How do i serve EPUB in IIS6? Open the IIS Microsoft Management Console (MMC), ...
2
votes
4answers
1k views

Let IIS 7 return php files as simple html file

I have a virtual server (Windows 2008 R2) with IIS 7.5 and a xxx.php file in one of my websites. This php file contains no php-code and I don't want to install any php-module, I only want the server ...
1
vote
3answers
587 views

Nginx 404 page behavior

I have the following nginx server config: server { listen 80; server_name example.com root /server/root; index index.php; error_page 404 = /index.php; location ~ \.php$ { ...
1
vote
1answer
2k views

IIS 7 returns HTTP 200 on custom 404 error page

I have successfully set up custom static error pages for IIS7. IIS7 is currently working as a gateway to a Java tomcat application. The issue is that when the 404 error page is served it is served ...
1
vote
2answers
179 views

Check GET value with htaccess?

I need help with setting up a rule inside htaccess that does the following, Whenever the requested URL contains keyword love then redirect the user to another URL or maby show a 404 page. Clarifying ...
0
votes
1answer
748 views

How to catch all wrong (urls) request to my ASP.NET app?

I have an ASP.NET web-site and to catch wrong urls requests and redirect them to homepage I put: <customErrors defaultRedirect="/" mode="On"> <error statusCode="404" ...
0
votes
1answer
200 views

Multiple DNS A record for one machine

I saw this post but it doesn't really address my situation. I am trying to add a second Address record for the same IP address but for some reason I am constantly getting a 404 bounce from ...
0
votes
2answers
520 views

Apache 404 Error While PHP File Exists

I am getting 404 error while the file exist. I gave the file (chmod 755) still the file does not show up. Strange part it only happens to few files. I am certain the file exists on the directory ...
0
votes
2answers
721 views

Configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses

I'd like to know how to configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses. I assume there is a directive to add to httpd.conf, but not ...
0
votes
2answers
207 views

How to reverse this Nginx rewrite rule?

I've been having trouble getting Nginx rewrites to work. On Apache I had the following rewrite, which directed all requests that did not request a PHP file to index.php: Options +FollowSymLinks ...
2
votes
1answer
579 views

IIS 6.0 on Windows Server 2003: HTTP 404 error on Virtual directory; system cannot find the file specified (win32 status code 2)

Very strange problem. I am running Windows Server 2003, with IIS 6.0. In one of the websites, there are three virtual directories: A, B, and C. For whatever reason, and, from my understanding, ...