Date: Thu, 07 Jun 2001 23:28:32 +0200 From: Cynic <cynic@mail.cz> To: BSD Freak <bsd-freak@mbox.com.au>, freebsd-questions@freebsd.org Subject: Re: Different document roots for secure HTTP and HTTP Message-ID: <5.1.0.14.2.20010607231735.02161ea8@mail.cz> In-Reply-To: <36bd0636e78f.36e78f36bd06@mbox.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi there, you can either use IP-based VHosts like this: <VirtualHost 111.222.333.444:80> ServerName www.domain.com ... </VirtualHost> <VirtualHost 111.222.333.555:443> ServerName secure.domain.com ... </VirtualHost> Or, if you only have one IP for that host, name-based VHosts are possible. Note, that this solution is a workaround. as you can read in the Apache manual. Name-based VHost for HTTPS _does_ work _if_ it is the first VHost defined in your httpd.conf. At 07:06 7.6. 2001, BSD Freak wrote the following: -------------------------------------------------------------- >Hi all > >Does anyone know if it possible to run Apache with different ports for >secure HTTP and ordinary HTTP. For example I want to run my web server >as follows: > >port 443 (HTTPS) directed to document root /var/www-secure >port 80 (HTTP) directed to document root /var/www > >Each document root will have DIFFERENT content. > >Is this possible on the same server? > > >Thank in advance..... > > ---------------------------------------------- > Earn money with mBox >Visit http://www.mbox.com.au/referral_programs.html > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message ------end of quote------ cynic@mail.cz ------------- And the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files. - Book of Installation chapt 3 sec 7 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20010607231735.02161ea8>