Web Hosting Talk







View Full Version : default server pages for cpanel


recko11
10-21-2003, 02:37 PM
when i type http://ip in a browser, i get the default "There is no website configured at this address." web page.

Can someone tell me where this page is located on the server? I would like to replace it with a custom site.

Xenos
10-21-2003, 03:09 PM
It is located at /usr/local/apache/htdocs on my CPanel install.

s.h.a.zz.y
10-21-2003, 03:26 PM
MOD : Wrong forum.

IceCell
10-21-2003, 06:16 PM
this is actually an apache question...

you need to edit your apache config file usually located at:
/usr/local/apache/conf/httpd.conf

the first virtualhost is what is displayed when someone types the http://ip , it's not a page per say...

s.h.a.zz.y
10-21-2003, 07:02 PM
Originally posted by Perfect4u
this is actually an apache question...

you need to edit your apache config file usually located at:
/usr/local/apache/conf/httpd.conf

the first virtualhost is what is displayed when someone types the http://ip , it's not a page per say...

... and in CPANEL that points to "/usr/local/apache/htdocs" as Xenos said in his reply above..

Website Rob
10-21-2003, 07:16 PM
For some reason, DarkOrb recently took it upon themselves to create an Advertising page for themselves and replace the Apache Test page with it. You would have to ask them why. Using Servers that have paid for a License, to get free Advertising without permission is something most of us do not understand. One day we may get an explaination.

Tue Sep 30 13:40:05 EDT 2003
8.x Build#84
---------------------------------------------------------------
install a default apache page if none exists


As there is "always" an Apache Test, I fail to see why an Advertising page for DarkOrb/Cpanel would need to be included. Maybe I'm wrong and some how an Apache Test page does not get installed, but I have yet to see this.

To prevent the above from happening and go back to using the Apache Test page, you will need to edit:

/usr/local/apache/htdocs/index.html

and change it to your own custom or the regular Apache page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head><title>Index Test Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Distribution" content="Global">
<meta http-equiv="Refresh" content="0; url=index.html.en"> (or whatever language you prefer)
</head>

<body></body>
</html>

Then use chattr -i index.html so that the next Cpanel update will not overwrite what you have done.

The Prohacker
10-21-2003, 07:44 PM
Yea.... I rather did enjoy it overwriting my custom status page that I had there for the server... :D

cactus
10-21-2003, 07:45 PM
Yes, Website Rob is 100% correct, if you access your server using the IP. Replace it with your OWN /usr/local/apache/htdocs/index.html .... Remember it's INDEX.HTML

Regards