akkaluck
By:
akkaluck

WWW - show "Apache is functioning normally"

August 1, 2015 5.6k views
WordPress One-Click Install Apps Apache Ubuntu

when I access http://mydomain.com it's ok.
but when I access http://www.mydomain.com It's show text like "Apache is functioning normally" .

how to fix it?

my setup is

A @ ip.ip.ip
CNAME * @
CNAME www @

and another question , when I access mydomain.com and hover mouse point to link in my wordpress website

the link show IP Adress , how to fix it ?

Thank.

1 Answer

when I access http://mydomain.com it's ok.
but when I access http://www.mydomain.com It's show text like "Apache is functioning normally" .

how to fix it?

Edit the vhost file for mydomain.com and add the following inside <VirtualHost>:

ServerAlias www.mydomain.com

Save the file, do a configtest:

sudo apachectl -t

Reload Apache:

sudo service apache2 reload

when I access mydomain.com and hover mouse point to link in my wordpress website

Login to WP-Admin > Settings > General and set the WordPress Address and Site Address fields.

Have another answer? Share your knowledge.