#1  
Old 24th January 2008, 13:41
msource msource is offline
Member
 
Join Date: May 2007
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change .html files

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?
Reply With Quote
Sponsored Links
  #2  
Old 25th January 2008, 09:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,414
Thanks: 812
Thanked 5,204 Times in 4,080 Posts
Default

The files are in /root/ispconfig/isp/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th January 2008, 13:32
msource msource is offline
Member
 
Join Date: May 2007
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #4  
Old 25th January 2008, 13:38
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 170 Times in 77 Posts
Default

the easiest way is to use an absolut path to your picture. like setting http://www.my_main_domain.com/images...orate_logo.gif
Reply With Quote
  #5  
Old 26th January 2008, 16:49
tensor tensor is offline
Member
 
Join Date: Jul 2007
Posts: 51
Thanks: 11
Thanked 9 Times in 6 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Translation HowTo SupuS Tips/Tricks/Mods 29 18th October 2011 08:02
One site contaminated by r57shell aceyzeriat Installation/Configuration 21 13th May 2009 12:19
pure-ftp woes d3th_n1gG4 Server Operation 4 24th January 2007 13:11
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 18:53
Cant see my files on my ftp (vsftp) Malarie Installation/Configuration 1 1st December 2006 17:34


All times are GMT +2. The time now is 12:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.