LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 04-17-2007, 02:24 AM   #1
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Rep: Reputation: 16
configuring secured name based virtual host


Hi, All

I am trying to configure a secured name based virtual domains. I have
created to virtual domains. One is www.iqnet.in and another is
mail.iqnet.in. I want mail.iqnet.in 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.iqnet.in or www.iqnet.in , 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 .
 
Old 04-17-2007, 03:06 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
It seems that mail.iqnet.in does not have a dns entry, so it couldn't be found. You should correct this first. As for apache if you use just httpd.conf to setup secure and non secure vhosts change the Listen directive to:
Code:
Listen 80 443
 
Old 04-17-2007, 11:14 AM   #3
d@@b
LQ Newbie
 
Registered: Sep 2005
Location: Baltimore, MD
Posts: 12

Rep: Reputation: 0
Like said above, name resolution might be your problem. For testing purpose, try to add mail.iqnet.in into the host file or add an entry into your dns server. I found the -S switch usefull when making sure that the vhost are configured correctly.
Code:
httpd -S
 
Old 04-18-2007, 04:27 AM   #4
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by bathory
It seems that mail.iqnet.in does not have a dns entry, so it couldn't be found. You should correct this first. As for apache if you use just httpd.conf to setup secure and non secure vhosts change the Listen directive to:
Code:
Listen 80 443


mail.iqnet.in does have a dns entry and name resolution is taking place correctly.


I have put the Listen directive in /etc/httpd/conf/httpd.conf , but still it is now working.
 
Old 04-19-2007, 06:05 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Take a look at the output of
Code:
netstat -tan
to see if both 80 and 443 are open and listening. Then point your browser to http://www.iqnet.in and https://mail.iqnet.in and take a look at the error_log to see if you can find any errors.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Public and Secured Samba Shares JonBL Linux - Software 6 03-28-2007 04:43 AM
virtual users and virtual host need to stay at /home nephish Linux - Networking 3 01-14-2006 02:36 PM
How to configure the virtual host based name? gz_xmg Linux - Networking 0 12-28-2004 02:12 AM
Configuring WPA-secured wireless network dori Slackware 1 10-07-2004 07:30 AM
Name Based Virtual Host problem helios007 Linux - Networking 6 12-21-2003 04:41 PM


All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration