Sandy Yung wrote:
>
> I would like to configure my apache as:
> first set:
> port : 80 non-ssl
> port : 443 ssl
>
> second set:
> port : 8080 non-ssl
> port : 4444 ssl
>
> because i want the 2 sets having different DocumentRoot
> How should i configure my httpd.conf?
> Thanks!
>
Since you are happy to use different ports for all the VirtualHosts this
is just Port-based Hosting (cf. p64 of Lauries' Apache Book). You just
have to:
- "Listen" on all the ports
- define the port numbers in the <VirtualHost > tags...
E.g.
Listen 80
<VirtualHost www.mydomain.com:80>
...
</VirtualHost>
Listen 443
<VirtualHost www.mydomain.com:443>
...
</VirtualHost>
Listen 8080
<VirtualHost www.mydomain.com:8080>
...
</VirtualHost>
Listen 4444
<VirtualHost www.mydomain.com:4444>
...
</VirtualHost>
Strictly speaking, apache listens to ports 80 and 443 by default anyway
so the first two Listen directives are not really needed, but I'd keep
them in as a reminder of the standard form.
Best regards,
Owen Boyle
--
SWX Swiss Exchange, 10 Cours de Rive, 1211 Geneve 3
--------------------------+-------------------------
Phone: +41 (0)22 849 5648 | Fax: +41 (0)22 849 5643
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]