Author Topic: Remove Default Page  (Read 18542 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Remove Default Page
« on: April 15, 2015, 08:30:28 PM »
Hello,

How can I disable default page? This page displays if index file not exist.

In google I found this:

Code: [Select]
/etc/httpd/conf.d/welcome.conf
Code: [Select]
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL.  To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
   Options -Indexes
   ErrorDocument 403 /error/noindex.html
</LocationMatch>

but this path not exist.

Thanks

Re: Remove Default Page
« Reply #1 on: April 15, 2015, 09:10:32 PM »
I think path is /usr/local/apache/htdocs ?

Offline
*
Re: Remove Default Page
« Reply #2 on: April 16, 2015, 12:29:31 PM »
this path /etc/httpd is not used anywhere in the cwp, you should completely ignore that path as this is not CWP apache.
default path is /usr/local/apache/htdocs
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Remove Default Page
« Reply #3 on: July 12, 2015, 04:53:26 PM »
Dear All,

I'm currently facing similar problem reported in this forum, i.e. website keeps pointing to the default CWP HTTP Test Page found in /usr/local/apache/htdocs. It is not able to display my index.php in my "/home/USERNAME/public_html".


I've visited this forum several times and also tried various recommendation (see below) but none works.
-> update #DocumentRoot in Apache config (/usr/local/apache/conf/httpd.conf) to point to my index.php in /public_html
-> update <Directory "/home/admin/public_html"> in Apache config (/usr/local/apache/conf/httpd.conf)
-> rebuild vhost
-> fix permission to my USERNAME (found in left menu -> User Account -> Fix Permission)
-> restart Apache service
-> also reboot server

Unfortunately, none of the above works...

This is a new installation. And I'm not running Varnish either.
Its domain name is currently not setup yet. I'm using its IP to test for the time being.

Would appreciate if anyone could point me to the right solution please.


Thanks!


Offline
*
Re: Remove Default Page
« Reply #4 on: July 13, 2015, 06:55:52 PM »
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services