Change .html files

Discussion in 'Installation/Configuration' started by msource, Jan 24, 2008.

  1. msource

    msource New Member

    Hi,

    Where can i chaneg the default files off error's ( 404, 505, etc... )?
    I will like to change the index.html of every new domain by default.

    Could please someone tell me where are the default files ( templates i gess ) and whare are the files, for change them?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The files are in /root/ispconfig/isp/
     
  3. msource

    msource New Member

    Hi,

    Is there any way to copy an image when the index.html is created in the root of the new domain?

    The file standard_index.html_en is the template of the index.html.

    The index.html is created in the root of eatch new domain. There is anyway of copy an image.gif for the root of the new domain?

    Till tanks for all your eforde on my questions.
     
  4. jnsc

    jnsc rotaredoM Moderator

  5. tensor

    tensor New Member

    You can add a global Alias which will point to the directory with the image in httpd.conf (or apache.conf, depends on distribution). You must do that outside of any <VirtualHost>.

    Something like this will do
    Code:
    Alias /defaultimages/ /path/to/your/dir/
    <Directory /path/to/your/dir>
    #relevant options
    </Directory>
    
    And then in you HTML you may have something like:

    Code:
    ...
    <img src="/defaultimages/myimage.gif" ....  />
    ...
    You need mod_alias enabled for that, but it should be enabled by default.
     

Share This Page