|
|||
|
How to make an auto index.html page?
Hello all,
Instead of after creating a new account, it shows the index page with directory, how could I make a default page showing something like, "this account has been setup"? I know I could upload an index.html file to replace it but is there any way that I could make it auto instead of uploading it whenever i create a new account? |
|
||||
|
sure.. shh as root.
------------------------ root@yourbox # cd cpanel3-skel/public_html <enter> root@yourbox [~/cpanel3-skel/public_html]# vi index.html hit shift I and then paste in html code you copy from the computer you developed it on. When done hit esc :wq enter. save it. You can also FTP ot to a user account and then do this. mv /home/theuser/public_html/index.html cpanel3-skel/public_html/
__________________
Just keeping my "eye" on things.... R. Paul Mathews RPMWS - diehard cPanel Nutcase |
|
|||
|
Is it possible to have this index.html file show the domain name associated with the account?
For example: Welcome to InsertTheDomainNameAutomaticallyHere This website is still under construction, blah, blah, blah Thanks! |
|
|||
|
If you have root access you can modify the wwwacct script to make an file that contains the domain information etc that is in this post:
cpanel3-skel directory issue Myself I prefer to use either SSI includes or use PHP. For example SSI: index.shtml: "Welcome to future home of <!--#echo var="SERVER_NAME" -->" PHP: index.php "Welcome to the future home of <?php print $HTTP_HOST; ?>" Hope this helps!
__________________
Apache to die or not to die, that is the question... |
|
||||
|
Are you using root WHM or a reseller WHM. Resellers get their own cpanel3-skel directory. Are you putting the index file in the public_html directory under the cpanel3-skel directory? That's where it needs to be. You don't need to restart apache.
|
|
|||
|
Quote:
cPanel.net Support Ticket Number: |
|
|||
|
Hello,
DO I need to change something? Only sites that I create are getting the default index page I created. If the resellers create one then nothing!! I use the root access and put it in cpanel3 skel directory in the public_html cPanel.net Support Ticket Number: |
![]() |
| Thread Tools | |
| Display Modes | |
|
|