main domain cannot see public_html

bijanbiria

New member
Joined
Apr 7, 2021
Messages
3
hello
My English is not very good and I apologize.
I have several domains that I set as a user in Direct Admin.
I had selected a domain for the nameServer: ns1.kcd.com, ns2.kcd.com
all domains set on this ns1 and ns2.
kcd.com is example name and is a blog by wordpress (fact).
Everything was great.
Due to server crashes, I had to completely reconfigure the server.
Now, All domains load the site without any problems.
but kcd.com load /var/www/html Data.
and i cannot solve it.

I used to work with nginx, so I switched to OpenLightSpeed because of this problem so that the problem might be fixed, but it didn't work.
 

bijanbiria

New member
Joined
Apr 7, 2021
Messages
3
i have create subdomain on kcd.com: api.kcd.com
that is work, but kcd.com not load data from public_html, loaded data from /var/www/html
 

bijanbiria

New member
Joined
Apr 7, 2021
Messages
3
i solved it.
in this file:
/usr/local/lsws/conf/httpd-vhosts.conf

my domain called and pointed to /var/www/html.
this file called in /usr/local/lsws/conf/httpd_config.conf.

i comment it with #, and restart openlitespeed: systemctl restart openlitespeed.

problem solved :love:

I explained the solution, it might work for someone
 
Top