New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Apache and virtual host
Hello. I have a problem with Apache, I can access my site with www but without www it goes to the default one.
ServerName www.neto.mx ServerAlias neto.mx DocumentRoot /var/www/neto ErrorLog /var/log/apache2/neto-error_log CustomLog /var/log/apache2/neto-access_log common
This is the example. In my other domains, it works flawlessly, but with this one, I have the problem. Anyone?
DNS is OK too
Comments
Try removing the alias.
Make like so
ServerName www.Neto.MX Neto.mx
Is the hostname of the actual server neto.mx? If so, its probably using the default vhost. You can use the command "apachectl -S" to see what vhost hostnames are being sent to.
it was
Thanks! It was the hostname.