PDA

View Full Version : How do I change the default index.html page?


prustm
10-30-2003, 12:31 PM
Hi,

Wondering if anyone can help.

I would like to change the defauly index.html page that is allocated to a users hosting account. The main change would be adding my company logo, telephone number etc - is there any way the page can be ammended and changed to be the default?

Cheers

D9R
10-30-2003, 12:57 PM
That's a great idea but I suspect the answer is "no for now; maybe later." Another neat feature to add would be a way to modify the welcome letters that go out to new client-users.

Leen
10-30-2003, 01:14 PM
Got to User Panel of your Admin, FileManager, choose domains, choose default and there are the files you can change.

I don't know what happens when you change filenames...

There is also a default filename under Apache, somewhere but I forgot where that was, I use when somebody search on IP address of a non-existent domain.

DirectAdmin Support
10-30-2003, 01:49 PM
Hello,

/home/resellername/domains/default/index.html

all files in that directory will be copied, so you can add whatever you need.

John

Leen
10-30-2003, 02:02 PM
Thanks for this extra information.

There are also pages for shared ip and suspended sites, admin or reseller can modify. With these I also did not change the names, only the html code.

The other page I mentioned is on the server: var/www/html/index.html (on my server, that is... I am not a apache/u/linux expert)

S2S-Robert
11-02-2003, 08:12 AM
Originally posted by D9R
That's a great idea but I suspect the answer is "no for now; maybe later." Another neat feature to add would be a way to modify the welcome letters that go out to new client-users. in HTM_ACCOUNT_USER_CREATE (the 'create new user' button) you can click the lower link which is "javascript:showUserMessage();"

It's already there.

Leen
11-02-2003, 08:30 AM
I forgot to mention, thank you.

As you know so much ..... I translated it into Dutch, but want to know where I can find additional variable names, e.g. the package name. It is'nt |package|?

I also wish I could resend a welcome letter (not automaticly!) when making a change (e.g. IP address) or when adding a next domain....

Telfie
11-05-2003, 04:04 PM
I am currently building a default page for new accounts within DA. I know where to place the pages and all of that so that bit is fine. However, I want to place the name of the new account on the page automatically.

When I created an account and had no default pages, the DA default pages came up and on these it had the domain name of the account that I just created.

Can some one let me know how this can be achieved please?

DirectAdmin Support
11-05-2003, 11:06 PM
Hello,

It uses a token system. All you do is add the token wherever you want the value of that token to show up:

|DOMAIN| -> domain.com
|USERNAME| -> username
|HOME| -> /home/username

Eg:

Hello |USERNAME|, welcome to |DOMAIN|.
Your home directory is |HOME|

The tokens will only be processed on the index.html file.

John

Megalion
11-07-2003, 08:22 PM
Hi,

I've looked at this page (http://www.directadmin.com/skins.html) but I didn't see any mention of any relevant tokens and since I didn't even see DOMAIN listed in the lists, I thought it worth asking here if the token I want exists.

What I'm looking for is a token that will print the date that the site was created on the default index.html page.

ie "This site was created on |DATECREATED|"

Thanks in advance

Andrax
11-08-2003, 12:09 AM
Hey, thats a good idea to create a custom place holder for clients.

Damn! I should have thought of that ;)

Megalion
11-08-2003, 01:13 AM
I have a VPS just for myself... I host some sites for friends and family and I'm also rather nuts about collecting domains for fun. So I end up with domain names that I create the site for and sometimes take a while to get to or if it's a domain I'm squatting for someone, I want people to realize how long the page has been there.

Surely I can't have been the first one to want this feature.

DirectAdmin Support
11-08-2003, 12:02 PM
Ok, I can add a |DATECREATED| token.

John

Gadget
11-21-2003, 02:55 PM
I created a site using a butt load of tokens. I cannot get the tokens to work all it does is show the token iused not the value of the token can anyone tell me what is wrong the test site is http://www.brycopc.com/~streetv/

Leen
11-21-2003, 03:12 PM
I think you did not let this page create automaticly by DA, when creating an account. This page should remain in the default directory, as mentioned above. DA removes then the tokens and replaces the correct information.

It would be nice to have more tokens, but as I know for index.html there are only two tokens available now |DOMAIN| and |DATECREATED|?

I wished there were some more, such as PACKAGE. This would be also usefull in the welcome letter.

Gadget
11-21-2003, 03:14 PM
Mark or John can we have more tokens? please I would like to be able to display all of that information to my customers but when i auto create a site it wont let it :\

DirectAdmin Support
11-22-2003, 12:17 AM
That can be looked into, yes :)

John