Control Web Panel
WebPanel => Apache => Topic started 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:
/etc/httpd/conf.d/welcome.conf
# 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
-
I think path is /usr/local/apache/htdocs ?
-
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
-
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!
-
you need to follow instructions on the wiki
http://wiki.centos-webpanel.com/default-page-displayed-for-all-domains