httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] VirtualHost problem
Date Fri, 24 Jan 2003 15:02:00 GMT
You still need to set up IP-based virtual hosts. E.g.

# Name based HTTP VHs on dir 2 and 4
  ServerName host-dir2
  DocumentRoot /htdocs/dir2
  ServerName host-dir4
  DocumentRoot /htdocs/dir4

# SSL host on dir1
  DocumentRoot /htdocs/dir1
  SSLCertificateFile /path/to/cert1 etc.

# SSL host on dir3
  DocumentRoot /htdocs/dir3
  SSLCertificateFile /path/to/cert3 etc.

Note that the SSL hosts must be on different ports - name based hosting
can't work with SSL.

The mappings now are:

https://host-dir1:4800/file -> /htdocs/dir1/file
http://host-dir2:5800/file -> /htdocs/dir2/file
https://host-dir3:4801/file -> /htdocs/dir3/file
http://host-dir4:5800/file -> /htdocs/dir4/file

Owen Boyle

-----Original Message-----
From: []
Sent: Freitag, 24. Januar 2003 14:58
Subject: Re: [users@httpd] VirtualHost problem

Thanks a lot for your reply.
Sorry i am using AOL thats why the texts not plain.

the actual problem is that both hosts have same DocumentRoot,which is

eg                             htdocs
                        |         |        |         |
                 dir1        dir2    dir3      dir4

dir1 and dir3  must be secure and dir 2 and dir4 must be unsecure.
There 2 ports:
5800 non-secure port
4800 secure port

if  I am now at http://www... :5800/dir2    and want to get to dir 1 I
have to switch to SSL and change ports , the request should be
https://www... :4800/dir1
How can I achieve this ?

Thanks again


This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message