-
ServerAlias Issue ..
I have this in my httpd.conf
<VirtualHost *>
ServerName www(dot)mydomain(dot)com
DocumentRoot path
ErrorLog path
CustomLog path
ServerAlias mydomain.com
</VirtualHost>
I am able to access site using www(dot)mydomain(dot)com
I want to access my site .. using mydomain(dot)com
Its show me "Red Hat Enterprise Linux Test Page"
Please help me with this .
-
hi,
Add this:
ServerAlias mydomain.com
-
Hi ,
Thanks for the reply ..
I have tried that ..its not working .
Please check the original port ...
Is there anything that I must be doing ...
-
ah sorry, you do have a serveralias already.
Well, it should work.
Did you restart apache after adding the serveralias?
and does www.mydomain and mydomain resolve to the same IP?
-
yes I restart the Apache after the changes.
and does www(dot)mydomain and mydomain resolve to the same IP?
can you clarify this ..
-
Does this resolve to the same IP:
Code:
host www.mydomain.com
host mydomain.com
-
Yes !! both resolve to same IP ..
Thanks !
-
Maybe there is an earlier server definition.
Can you please do that in the apache config directory
Code:
egrep -ir '(listen|servername|serveralias)' *