Control Web Panel

WebPanel => Apache => Topic started by: kironet on April 15, 2015, 08:30:28 PM

Title: Remove Default Page
Post by: kironet 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
Title: Re: Remove Default Page
Post by: brijendrasial on April 15, 2015, 09:10:32 PM
I think path is /usr/local/apache/htdocs ?
Title: Re: Remove Default Page
Post by: Administrator 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
Title: Re: Remove Default Page
Post by: Marczzz 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!

Title: Re: Remove Default Page
Post by: Administrator on July 13, 2015, 06:55:52 PM
you need to follow instructions on the wiki

http://wiki.centos-webpanel.com/default-page-displayed-for-all-domains