Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Apache and virtual host
New on LowEndTalk? Please Register and read our Community Rules.

Apache and virtual host

netomxnetomx Member, Moderator

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

  • rmlhhdrmlhhd Member, Provider

    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.

  • netomxnetomx Member, Moderator
    edited December 2013

    @petris said:
    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.

Sign In or Register to comment.