Line 238: |
Line 238: |
| cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf | | cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf |
| nano S85ErrorPages | | nano S85ErrorPages |
− | and add the following text | + | and add the following text: |
| # Add custom error pages here | | # Add custom error pages here |
| ErrorDocument 404 /notfound.html | | ErrorDocument 404 /notfound.html |
Line 255: |
Line 255: |
| </tabs> | | </tabs> |
| | | |
− | Using your favourite html editor, create a suitable web page & save it in the Primary/html ibay (or otherwise applicable ibay) with the filename of notfound.html | + | Using your favourite html editor, create a suitable web page & save it in the Primary/html ibay (or otherwise applicable ibay) with the filename of notfound.html. |
| | | |
| Then open your browser and type in an incorrect URL (making sure the domain is valid) eg | | Then open your browser and type in an incorrect URL (making sure the domain is valid) eg |
Line 263: |
Line 263: |
| If custom error pages are required for virtual domains, create a new html error page for each domain and save it in the html folder of the appropriate ibay. | | If custom error pages are required for virtual domains, create a new html error page for each domain and save it in the html folder of the appropriate ibay. |
| | | |
− | This concept can also apply to other common error document pages such as | + | This concept can also apply to other common error document pages such as: |
| | | |
| 400 Bad Request | | 400 Bad Request |
Line 282: |
Line 282: |
| | | |
| Make a custom template folder | | Make a custom template folder |
− | cp /etc/e-smith/templates/etc/smb.conf/11lanmanPasswords /etc/e-smith/custom-templates/etc/smb.conf/ | + | cp /etc/e-smith/templates/etc/smb.conf/11lanmanPasswords /etc/e-smith/templates-custom/etc/smb.conf/ |
| | | |
| Edit the template fragment with vi, nano or nano | | Edit the template fragment with vi, nano or nano |