Apache is functioning normally

Tojteusz

New member
Joined
Mar 7, 2020
Messages
7
Hello,

I have a problem with one domain on my server where i have multiple domain and everything is fine with others. So one domain work well on https:// but on http:// shows "Apache is functioning normally". I tryied to remove domain and create new one with same name, run ./build rewrite_confs , move domain between users, nothing help. How i can deal with this problem?

Thanks
 
Please make sure IP assigned for the domain matches the IP it's pointing to. If that's be https not working - I'd say it has SSL disabled for the user, but it's vice-versa in your case.
 
Assigned IP and dns pointing to same IP. Https work well, only http have problem with "Apache is functioning normally" .
 
Assigned IP and dns pointing to same IP. Https work well, only http have problem with "Apache is functioning normally" .
Do you ckeck IPs in panel or in user's virtual hosts? check both nginx/apache, check document root paths, IPs
 
i checked everywhere. Document root is
Code:
DocumentRoot /home/doradca/domains/sampledomain.com/private_html
and VirtualHost
Code:
<VirtualHost xx.xx.xx.xx:443>
pointing on good ip.
 
i checked everywhere. Document root is
Code:
DocumentRoot /home/doradca/domains/sampledomain.com/private_html
and VirtualHost
Code:
<VirtualHost xx.xx.xx.xx:443>
pointing on good ip.
You reported problem with port 80 and public_html, so, those should have nothing to do with the problem.
 
I checked it at
Code:
/usr/local/directadmin/data/users/XXX/httpd.conf
for sampledomain.com exist only one <VirtualHost xxx:443> no VirtualHost for 80

Moreover I need redirection from http to https
 
Only
Code:
 /usr/local/directadmin/data/templates/custom/virtual_host2.conf
empty . Should i delete it?
 
That's your problem, you placed an empty custom config for virtualhost on port :80, so, the result is also no virtualhost for :80 :) Yes, you should remove it.
 
Thank you,

Removing and "rewrite_conf" helped. Thank you very much. How can I send you a beer?
 
Back
Top