Monday, February 9, 2015

apache redirect problem - www.domain.com redirects to domain.com automatically

VirtualHost config as below.




ServerName www.domain.com
ServerAlias domain.com

DocumentRoot "/opt/lampp/htdocs/site"
ErrorDocument 404 /



vhost_alias_module is not loaded.



What I want is redirecting domain.com to www.domain.com instead of the opposite.

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...