Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

configuring name based virtaul host

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2007, 07:18 AM
Default configuring name based virtaul host



I am trying to configure a secured name based virtual domains. I have
created to virtual domains. One is www.example.com and another is
mail.example.com. I want
mail.example.com to use https. For that I have done the following
configurations in
/etc/httpd/conf/httpd.conf file.

Listen 192.168.117.222:80

NameVirtualHost 192.168.117.222

<VirtualHost 192.168.117.222:80>
ServerAdmin z...@iqnet.in
DocumentRoot /var/www/html/www.iqnet.in
ServerName www.iqnet.in
ErrorLog logs/www.iqnet.in-error_log
CustomLog logs/www.iqnet.in-access_log common
</VirtualHost>

<VirtualHost 192.168.117.222:443>
SSLCertificateFile /etc/httpd/conf/ssl.crt/localhost.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
ServerAdmin z...@iqnet.in
DocumentRoot /var/www/html/mail.iqnet.in
ServerName mail.iqnet.in
ErrorLog logs/mail.iqnet.in-error_log
CustomLog logs/mail.iqnet.in-access_log common
</VirtualHost>

When I restart the httpd service , it starts successfully without any
error. But when I try to acces the mail.example.com or www.example.com
, the
site does not opens .
Also , I am using self signed CA certificate.I am using apache 2.2 in
Fedora Core 6.

please help me out in making this configuration work.

With thanks .



query.cdac@gmail.com
Reply With Quote
  #2  
Old 04-17-2007, 12:42 PM
elsiddik
Guest
 
Posts: n/a
Default Re: configuring name based virtaul host

try this:

listen port 80
listen port 443

NameVirtualHost 192.168.117.222:80
NameVirtualHost 192.168.117.222:443

<VirtualHost 192.168.117.222:80>
ServerAdmin z...@iqnet.in
DocumentRoot /var/www/html/www.iqnet.in
ServerName www.iqnet.in
ErrorLog logs/www.iqnet.in-error_log
CustomLog logs/www.iqnet.in-access_log common
</VirtualHost>

<VirtualHost 192.168.117.222:443>
SSLCertificateFile /etc/httpd/conf/ssl.crt/localhost.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
ServerAdmin z...@iqnet.in
DocumentRoot /var/www/html/mail.iqnet.in
ServerName mail.iqnet.in
ErrorLog logs/mail.iqnet.in-error_log
CustomLog logs/mail.iqnet.in-access_log common
</VirtualHost>


good luck;

zaher el siddik
http://elsiddik.blogspot.com/

Reply With Quote
Reply

Tags
based, configuring, host, virtaul

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 08:57 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.