Create Custom Error Pages on Apache on Raspbian

Edit file /etc/apache2/sites-available/default

sudo nano /etc/apache2/sites-available/default

at the end of file, before </VirtualHost> add

# Custom error page
 ErrorDocument 404 /404.html

where 404 is error number, /404.html is custom file.

Repat for all errors you want.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s