0

I have a debian with apache2 on board. Only port 443 is opened and I'm exposing a SVN with svn_dav. I want to disable access to my server using ip address only (ie //1.2.3.4) and I want to be able to reach only with https://svn.myserver.com (that is actually working)

Apache is ignoring fake virtual host because I can reach my server... I tried with any suggestion google purphosed... I think that the problem is svn_DAV but modules_enabled/svn_dav.conf doesn't contain anything...

ports.conf:

[...]
nameVirtualHost *:443

SVN virtual host

<VirtualHost *:443>
    ServerName svn.myserver.com
    ServerAlias svn
    <Location />
        DAV svn
        SVNParentPath /var/svn
        [blablabla]
    </Location>
    [some SSL configuration]
</VirtualHost>

fake virtual host

<VirtualHost *:443>
    DocumentRoot /var/www/fake
</VirtualHost>
0

You need to use SNI. To configure Apache to use it, see this article: SSL with Virtual Hosts Using SNI.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.