Setting up custom 404 error document on apache2 linux web server
Page 1 of 1
Setting up custom 404 error document on apache2 linux web server
1. type this in your console (aka terminal)
- Code:
locate localized-error-pages
now type this command
sudo gedit (add the result of the file name path found by locate command)
example of what i got as a result was this line
/etc/apache2/conf-available/localized-error-pages.conf
So now type this (example)
- Code:
sudo gedit /etc/apache2/conf-available/localized-error-pages.conf
now this will allow you to add this line (example)
- Code:
ErrorDocument 404 /notfound.php
Now restart and test it out! (supply your own notfound.php file that you wish!
- Code:
sudo /etc/init.d/apache2 reload
Re: Setting up custom 404 error document on apache2 linux web server
Custom Error Docs Example
Online Update Box Link
https://app.box.com/s/ohc50fop9sksqd6jh2do324e8kezpklw
Online Update Box Link
https://app.box.com/s/ohc50fop9sksqd6jh2do324e8kezpklw
Similar topics
» Linux Web Security For Apache2 Web Server
» Favico For Linux Web Server Apache2
» setup apache2 and mysql server on linux
» linux mint 16 reinstalling apache2 web server easily
» Create A Subdomain Linux Apache2 Web Server Script
» Favico For Linux Web Server Apache2
» setup apache2 and mysql server on linux
» linux mint 16 reinstalling apache2 web server easily
» Create A Subdomain Linux Apache2 Web Server Script
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|