different ports, same document root and servername

Alles, was den Apache betrifft, kann hier besprochen werden.

different ports, same document root and servername

Postby maytho » 20. March 2009 19:53

Hi,

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:))
maytho
 
Posts: 1
Joined: 20. March 2009 19:38

Return to Apache

Who is online

Users browsing this forum: No registered users and 3 guests