Networking Forums

Networking Forums > Computer Networking > Linux Networking > configuring name based virtaul host

Reply
Thread Tools Display Modes

configuring name based virtaul host

 
 
query.cdac@gmail.com
Guest
Posts: n/a

 
      04-17-2007, 06:18 AM
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 .

 
Reply With Quote
 
 
 
 
elsiddik
Guest
Posts: n/a

 
      04-17-2007, 11:42 AM
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

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NAP - Configuring IEEE 802.1x Port-Based Authentication with NPS(Radius) John Strow Windows Networking 0 02-26-2009 10:23 PM
name based virtual host query.cdac@gmail.com Linux Networking 2 04-18-2007 12:04 PM
seven questions: virtaul host and the dns server matt Linux Networking 0 01-31-2005 09:35 AM
more problems with host-based authentication Chris Linux Networking 3 12-29-2004 05:41 PM
Squid ACL based on protocol AND host? Ramon F Herrera Linux Networking 1 12-11-2003 01:16 AM



1 2 3 4 5 6 7 8 9 10 11