Results 1 to 22 of 22
Thread: Change of default page in Cpanel
-
09-26-2007, 08:13 AM #1Retired Moderator
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 6,990
Change of default page in Cpanel
Is there any function in cpanel that allows you to set your own default page instead of the typical index,default.htm/html?
-
09-26-2007, 10:09 AM #2Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
You mean, when an account is created you want your own index.html put in their /public_html/ directory?
RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca
www.HostingSecList.com - Security Notices for the Hosting Community.
-
09-26-2007, 10:29 AM #3Retired Moderator
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 6,990
No I mean instead of index.html I want the default page to be say abc.pl . Anyway to change that?
-
09-26-2007, 10:45 AM #4Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
You could try changing it globally under the Apache httpd.conf file:
<IfModule mod_dir.c>
DirectoryIndex abc.pl index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm defaul.html
</IfModule>
More information:
http://httpd.apache.org/docs/1.3/mod/mod_dir.htmlRACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca
www.HostingSecList.com - Security Notices for the Hosting Community.
-
09-26-2007, 11:25 AM #5Junior Guru Wannabe
- Join Date
- Jun 2007
- Posts
- 44
Hi,
If you wish to use an alternate file as a default index page for perticuler domain. You can set following directive in .htaccess
DirectoryIndex abc.pl
-
09-26-2007, 11:26 AM #6Retired Moderator
- Join Date
- Mar 2004
- Location
- Singapore
- Posts
- 6,990
Thanks! This is great advice, will try it out
-
09-26-2007, 11:16 PM #7Web Hosting Master
- Join Date
- Apr 2004
- Location
- Singapore
- Posts
- 620
Try cpanel-skel directory. This is the skeleton of what going contain in public_html.
-
06-02-2008, 08:02 AM #8New Member
- Join Date
- Jun 2008
- Posts
- 2
-
06-02-2008, 08:16 AM #9Web Hosting Master
- Join Date
- Mar 2003
- Location
- Canada
- Posts
- 9,072
Create the HTML files and put them under /root/cpanel3-skel and when a new cPanel account is created, those files will be placed under the customers /public_html/ directory. If you do not have root (such as if you're a reseller) then there should be a /cpanel3-skel/ directory under your primary reseller account.
RACK911 Labs | Penetration Testing | https://www.RACK911Labs.ca
www.HostingSecList.com - Security Notices for the Hosting Community.
-
06-02-2008, 08:53 AM #10New Member
- Join Date
- Jun 2008
- Posts
- 2
Hi,
many thanks for your help.
I have another question.
How can I setup Cpanle to send the host information email automaticly?
when an account is created, an email send to user that contain needed login information for user?
Regards,
Behrang Mousavi
-
06-02-2008, 09:11 AM #11Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
By default the new account login details are sent to the "Server contact email address" specified in the server setup. There is no setting in WHM by which you can change this behavior in the manner you have specified.
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android
-
02-16-2010, 08:50 PM #12New Member
- Join Date
- Feb 2010
- Posts
- 3
change default.htm to another page
Okay what boonchuan actually wanted to know was.
How do you set the default home page in CPanel?
When you type the url without the page filename, then it would automatically load...default.htm instead of index.php.
Well Boonchuan here's how you do it.
Go to Domains
Select the domain you want to Edit.
Then Select Web Site Settings
In the "Default Docs" box, make sure the file you want to use is at the top of that list.
NOT EVERYTHING has to be done the hard way
-
02-16-2010, 11:04 PM #13Geek Of All Trades
- Join Date
- Jul 2009
- Location
- NC
- Posts
- 938
☆☆☆ Cool Domain Names - DomainSale.link☆☆☆
-
02-17-2010, 04:05 AM #14New Member
- Join Date
- Feb 2010
- Posts
- 3
-
02-17-2010, 08:38 AM #15Web Hosting Master
- Join Date
- Oct 2004
- Location
- Kerala, India
- Posts
- 4,771
Try to use a bit of common sense friend
Boonchaun asked this question on "09-26-2007". So its almost 2.5 years old. He most probably does not need answer for this now.
-
02-17-2010, 03:38 PM #16New Member
- Join Date
- Feb 2010
- Posts
- 3
erm, dude, and I googled this issue on "16-02-2010" to find a solution...
Surely my common sense says the solution is now there for any "other" people that googles the question ...to find the solution here.
-
02-18-2010, 06:14 AM #17New Member
- Join Date
- Feb 2010
- Posts
- 2
Good post i can tell you that hosting is really a deal.
-
06-06-2011, 06:34 AM #18New Member
- Join Date
- Jun 2011
- Posts
- 1
No, but I needed the same advice. Asynchronous help, thanks to search engines.
Appreciated!
-
08-25-2011, 01:16 AM #19New Member
- Join Date
- Aug 2011
- Posts
- 1
It helps.
I went out of my way to register here just to say thanks. Even though he posted after 2 some-odd years, it came in useful for me! Hooray for the internets.
Thanks again, saved me some time.
-
04-04-2012, 05:55 AM #20New Member
- Join Date
- Apr 2012
- Posts
- 1
-
01-31-2017, 07:33 PM #21New Member
- Join Date
- Jan 2017
- Posts
- 1
-
02-01-2017, 02:00 AM #22
There's an editor in WHM now that can change default page content. Search WHM for template editor
Tom Whiting, WHMCS Guru extraordinaire
Linux problems? WHMCS Problems? Give me a shout
Check out my WHMCS Addons