Changes

Jump to navigation Jump to search
m
replace [blue][/blue] with <span style="color:#0000FF"></span>
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
Line 407: Line 407:  
Now edit the "custom" template fragment created, and those contents will be used instead of the default template fragment used when the affected file (/etc/httpd/conf/httpd.conf) is generated using 'expand-template'.
 
Now edit the "custom" template fragment created, and those contents will be used instead of the default template fragment used when the affected file (/etc/httpd/conf/httpd.conf) is generated using 'expand-template'.
   −
Some templates are inserted as literal text into the output files, and some templates are actually running perl code to generate the output text.  The perl templates will include braces ("{" and "}") and will likely contain lines beginning with [blue]$OUT .= "blah, blah, blah";[/blue].  If the template you've decided to copy includes perl code, you will need to write perl code to create your new output or place your changes after the final closing brace ("}") of the perl commands.
+
Some templates are inserted as literal text into the output files, and some templates are actually running perl code to generate the output text.  The perl templates will include braces ("{" and "}") and will likely contain lines beginning with <span style="color:#0000FF">$OUT .= "blah, blah, blah";</span>.  If the template you've decided to copy includes perl code, you will need to write perl code to create your new output or place your changes after the final closing brace ("}") of the perl commands.
    
After making the changes:
 
After making the changes:

Navigation menu