1

I am facing a problem with defining virtual host, if I define host like this

<VirtualHost *:443>
    ServerName some-site-name.example.com
    DocumentRoot /data/web
</VirtualHost>

It does not work and redirects to top virtual host. But if I define it like this

 <VirtualHost *:443>
        ServerName some-sitename.example.com
        DocumentRoot /data/web
</VirtualHost>

So I was able to track the cause of it being two dashes in the hostname. I tried enabling Hostname lookups in apache config, but that did not help either.

Can I somehow escape the dashes so apache picks it up?

Jenny D
  • 27,780
  • 21
  • 75
  • 114
The Law
  • 111
  • 2

0 Answers0