Viewed 29k times. In the file, I had this string: This is a test file. Improve this question. Lightn1ng Lightn1ng 1 1 gold badge 2 2 silver badges 5 5 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Community Bot 1. Kresimir Pendic Kresimir Pendic 1, 9 9 silver badges 12 12 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. If the feature is enabled, Apache attempts to read a file named. Your site is bundled with many other smaller sites and ran off one big server, which cuts down on hosting costs significantly. And place it in your document root alongside your index. You can have multiple. Connect and share knowledge within a single location that is structured and easy to search.
The file should download without any issue. Add this to your. You can add different directives for different file types such as.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Can you make a file downloadable through Apache? Ask Question. This can happen for several reasons. In some cases, it can be a result of moving documents from one location to another. In this case, it is best to use URL redirection to inform clients of the new location of the resource. In this way, you can assure that old bookmarks and links will continue to work, even though the resource is at a new location.
When this module is activated, it will intercept "File Not Found" errors and look for a resource with a similar filename. If several "close" files are found, a list of available alternatives will be presented to the client. This can help systems where users are unaware of the case-sensitive nature of URLs and the unix filesystem. If all attempts to locate the content fail, httpd returns an error page with HTTP status code file not found.
The appearance of this page is controlled with the ErrorDocument directive and can be customized in a flexible manner as discussed in the Custom error responses document. Copyright The Apache Software Foundation.
0コメント