Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
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.

Apache and virtual host

netomxnetomx Moderator, Veteran

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.

  • netomxnetomx Moderator, Veteran
    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.