- Plesk for Linux
Website example.com works with Apache but does not work with nginx:
PLESK_INFO: Plesk default page
Domain name example.com is resolved into correct IP address existing on Plesk (the below commands should be run on the Plesk server):
# ping example.com
PING example.com (203.0.113.2) 56(84) bytes of data.
# ip a | grep 203.0.113.2
inet 203.0.113.2/32 brd 203.0.113.2 scope global eth0
example.com domain is missing from Apache configuration:
# httpd -D DUMP_VHOSTS | grep example.com
In Plesk > Tools & Settings > IP Addresses , domain exaple.com is set as default for the address 203.0.113.2.
The domain exaple.com can be found in Plesk > Domains .
When Apache received an HTTP request for website example.com, it does not find this domain in configuration. Apache returns content of the default website exaple.com. A typo was made during the domain creation in Plesk.
Rename the domain exaple.com into example.com in Plesk > Domains > exaple.com > Websites & Settings > Hosting Settings .