i have to configure an apache 2 to meet the following requirements:
inside the company the server should be available under
http://www.mydomain.com
without authentication
from outside the company it should only availabe over
https://www.mydomain.com
and with Authentication against an LDAP-Directory (this is no problem and works...)
---
i created two virtual host directives:
- Code: Select all
NameVirtualHost 192.168.1.1
<VirtualHost 192.168.1.1:80>
ServerName www.mydomain.com
DocumentRoot /srv/www/htdocs
<Directory>
...
</Directory>
</VirtualHost>
<VirtualHost 192.168.1.1:443>
ServerName www.mydomain.com
DocumentRoot /srv/www/htdocs
SSLEngine on
...
<Directory>
...
</Directory>
</VirtualHost>
But on restart of the apache server no site is available anymore.
Whats wrong?
Thank you for your help!!
Thomas
Nachtrag: - aus gewohnheit mein posting in (schlechtem) englisch, es kann natürlich auf deutsch geantwortet werden:))