Apache does not read contents from /home/domainname.tld/public_html

6 posts / 0 new
Last post
#1 Mon, 04/23/2018 - 19:56
er1yah
er1yah's picture

Apache does not read contents from /home/domainname.tld/public_html

Hi there!

How to force Apache to read contents only from /home/domainname.tld/public_html/ and not contents from /var/www/html?

Server info:

OS: CentOS Linux 7 x86_64 Virtualmin: latest version Webmin: latest version Web Server: Apache 2.4.6

Tue, 04/24/2018 - 18:26
Blueforce

Hi,

I think you can select the default directory for the host in Virtualmin tab, select the preferred virtual domain and go to "Server Configuration/Website Options" and select YES in option "Default website for IP address?", I that will do it!

Regards, Leffe

Thu, 08/09/2018 - 01:16 (Reply to #2)
lucyjohn987

Helpful answer

Tue, 04/24/2018 - 18:50
Blueforce

Hi again, I just remembered that there also is a setting in "Webmin/Servers/Apache Webserver" select "Default Server" in tab "Existing Virtual Hosts", and in "Document Options" there is a selection for the "Document root directory"... maybe this was what you where looking for.

Regards, Leffe

Wed, 04/25/2018 - 06:21 (Reply to #4)
er1yah
er1yah's picture

Would be fine if I change from /var/www/html to /home?

Wed, 04/25/2018 - 19:25
Blueforce

I think you need to enter the whole path to the virtual domain, like you wroth in #1

...read contents only from /home/domainname.tld/public_html/

//Leffe

Topic locked