Apache 404 Error File Location
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to apache 404 error on a file that exists any questions you might have Meta Discuss the workings and policies
Apache 404 Error But File Exists
of this site About Us Learn more about Stack Overflow the company Business Learn more about
Apache Tomcat 404 Error
hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for
Apache 404 Error Page
Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Custom Apache 404 page up vote 15 down vote favorite 4 I want to customise the 404 page apache 404 error log of my Apache Webserver on Ubuntu to something other than the general: Not Found The requested URL /***** was not found on this server. ______________________________________________________ Apache/*.*.** (Ubuntu) Server at **** Port 80 How can this be accomplished? apache2 share|improve this question edited Nov 3 '14 at 16:19 Braiam 38.8k1691153 asked Jul 15 '11 at 12:43 Amith KK 6,8241046103 webdesign.about.com/od/apache/ht/ht404apache.htm is a short guide. –N.N. Jul 15 '11 at 12:50 add a comment| 5 Answers 5 active oldest votes up vote 19 down vote accepted I found the answer myself. You have to edit the file /etc/apache2/conf.d/localized-error-pages sudoedit /etc/apache2/conf.d/localized-error-pages You can enter plaintext or link to a script or html share|improve this answer edited Jul 15 '11 at 12:54 Marco Ceppi♦ 30.9k20132180 answered Jul 15 '11 at 12:53 Amith KK 6,8241046103 add a comment| up vote 4 down vote
the Apache HTTP Server uses the URL of a request to determine the filesystem location from which to serve a file. https://httpd.apache.org/docs/trunk/urlmapping.html Related Modules and Directives DocumentRoot Files Outside the DocumentRoot User Directories URL Redirection Reverse Proxy Rewriting Engine File Not Found Other URL Mapping Modules See alsoComments Related Modules and Directives Related ModulesRelated Directivesmod_actionsmod_aliasmod_autoindexmod_dirmod_imagemapmod_negotiationmod_proxymod_rewritemod_spelingmod_userdirmod_vhost_aliasAliasAliasMatchCheckSpellingDirectoryIndexDocumentRootErrorDocumentOptionsProxyPassProxyPassReverseProxyPassReverseCookieDomainProxyPassReverseCookiePathRedirectRedirectMatchRewriteCondRewriteRuleScriptAliashttps://httpd.apache.org/docs/2.4/custom-error.html HTTP status codes, these responses are rather stark, uninformative, and can be intimidating to site users. You may wish to provide custom error responses which are either friendlier, or in some language other than English, or perhaps which are styled more in line with your site layout. Customized error responses can be defined 404 error for any HTTP status code designated as an error condition - that is, any 4xx or 5xx status. Additionally, a set of values are provided, so that the error document can be customized further based on the values of these variables, using Server Side Includes. Or, you can have error conditions handled by apache 404 error a cgi program, or other dynamic handler (PHP, mod_perl, etc) which makes use of these variables. Configuration Available Variables Customizing Error Responses Multi Language Custom Error Documents See alsoComments Configuration Custom error documents are configured using the ErrorDocument directive, which may be used in global, virtualhost, or directory context. It may be used in .htaccess files if AllowOverride is set to FileInfo. ErrorDocument 500 "Sorry, our script crashed. Oh dear" ErrorDocument 500 /cgi-bin/crash-recover ErrorDocument 500 http://error.example.com/server_error.html ErrorDocument 404 /errors/not_found.html ErrorDocument 401 /subscription/how_to_subscribe.html The syntax of the ErrorDocument directive is: ErrorDocument <3-digit-code>