LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-29-2011, 09:22 AM   #16
ghpradeep
Member
 
Registered: Mar 2011
Posts: 32

Original Poster
Rep: Reputation: 0

Hi I follow all step from given site. now i can access site using https://webmail.rtscmail.in. But when i used http://webmail.rtscmail.in. it is not redirecting to https://webmail.rtscmail.in site. giving me. below error

Not Found

The requested URL /src/login.php was not found on this server.

And also starting httpd service its saying that

Starting httpd: [Tue Mar 29 19:11:51 2011] [warn] VirtualHost webmail.rtscmail.in:443 overlaps with VirtualHost 192.168.2.147:0, the first has precedence, perhaps you need a NameVirtualHost directive.

how to avoid above error.

In ssl conf file i have only made changes in

<VirtualHost webmail.rtscmail.in:443>
SSLEngine On
SSLCertificateFile /etc/pki/tls/http/apachecert.pem
SSLCertificateKeyFile /etc/pki/tls/http/apachekey.pem
SSLProtocol All -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:+MD5
DocumentRoot "/var/www/html/ssl"
ServerName webmail.rtscmail.in:443
</VirtualHost>
 
Old 03-29-2011, 11:06 AM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Check the apache error_log to see where you're redirected and get the 404 "Not found" error
Quote:
DocumentRoot "/var/www/html/ssl"
Are you sure about the docroot above?
It should be the same for both ssl and non-ssl vhost ( according to your previous config it was /var/www/html/webmail)

Quote:
Starting httpd: [Tue Mar 29 19:11:51 2011] [warn] VirtualHost webmail.rtscmail.in:443 overlaps with VirtualHost 192.168.2.147:0, the first has precedence, perhaps you need a NameVirtualHost directive.
Add a:
Code:
NameVirtualHost 192.168.2.147:443
and replace
Quote:
<VirtualHost webmail.rtscmail.in:443>
with
Code:
<VirtualHost 192.168.2.147:443>
 
Old 03-30-2011, 08:54 AM   #18
ghpradeep
Member
 
Registered: Mar 2011
Posts: 32

Original Poster
Rep: Reputation: 0
Hi,

I have pasted both ssl.conf file and httpd.conf file below. I have made changes in http but when i tried to access http://webmail.rtscmail.in its not redirecting to https://webmail.rtscmail.in and its giving error 404 not found.
-------------------------------------------------

ssl.conf(custimize)
LoadModule ssl_module modules/mod_ssl.so


Listen 192.168.2.147:443



SSLRandomSeed startup file:/dev/urandom 1024
SSLRandomSeed connect file:/dev/urandom 1024

<VirtualHost 192.168.2.147:443>
SSLEngine On
SSLCertificateFile /etc/pki/tls/http/apachecert.pem
SSLCertificateKeyFile /etc/pki/tls/http/apachekey.pem
SSLProtocol All -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:+MD5
DocumentRoot "/var/www/html/webmail"
ServerName webmail.rtscmail.in:443
</VirtualHost>


-------------------------------

httpd.conf

NameVirtualHost 192.168.2.147:443
<VirtualHost 192.168.2.147:443>
ServerName webmail.rtscmail.in
ServerAdmin postmaster@rtscmail.in
DocumentRoot /var/www/html/webmail
</VirtualHost>

<Directory /var/www/html/webmail>
SSLRequireSSL
SSLOptions +StrictRequire
SSLRequire %{HTTP_HOST} eq "webmail.rtscmail.in"
ErrorDocument 403 https://webmail.rtscmail.in/sslerror.html
</Directory>


Please check and let me know where i need to change it or anything i missed in configuration.
 
Old 03-30-2011, 10:24 AM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Once more, you should check the error log for the 404 error
Regarding the configuration, you've changed many things in an erroneous way, so it's not strange that this setup is not working. Basically you have 2 vhosts on port 443!!
Try the following paying attention not to mix the ssl and not-ssl ports in the 2 vhosts:
Code:
ssl.conf(custimize)
LoadModule ssl_module modules/mod_ssl.so
Listen 192.168.2.147:443

SSLRandomSeed startup file:/dev/urandom 1024
SSLRandomSeed connect file:/dev/urandom 1024

<VirtualHost 192.168.2.147:443>
SSLEngine On
SSLCertificateFile /etc/pki/tls/http/apachecert.pem
SSLCertificateKeyFile /etc/pki/tls/http/apachekey.pem
SSLProtocol All -SSLv2
SSLCipherSuite HIGH:MEDIUM:!aNULL:+MD5
DocumentRoot "/var/www/html/webmail"
ServerName webmail.rtscmail.in
</VirtualHost>


httpd.conf

NameVirtualHost 192.168.2.147:80
<VirtualHost 192.168.2.147:80>
ServerName webmail.rtscmail.in
ServerAdmin postmaster@rtscmail.in
DocumentRoot /var/www/html/webmail
<Directory /var/www/html/webmail>
Options +FollowSymlinks

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</Directory>
</VirtualHost>
 
Old 03-31-2011, 08:13 AM   #20
ghpradeep
Member
 
Registered: Mar 2011
Posts: 32

Original Poster
Rep: Reputation: 0
Hi,

Thanks for help now its working fine. its now redirecting to https.......

I have created users in qmail using QmailAdmin utility... now how do i get those user email address in squirrel mail webclient addressbook. Any plugin i need to install in squirrel mail.
 
Old 03-31-2011, 08:37 AM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Glad to see you've finally made it.

I cannot understand your question. Squirrelmail has some address-book plugins. I guess you've already installed one and you want to import the new email addresses into it. If that's the case, maybe this plugin can help you.

Anyway you should mark this thread "Solved" and start a new one if you need to get more help on this new question

Regards
 
  


Reply



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
executing linux commands from web page and outputing it back to the web page ashes_sheldon Programming 9 02-28-2015 12:07 AM
web page redirection birla.sunil Linux - Server 6 10-15-2010 04:36 AM
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 10:50 PM
Squirrel Mail is not sending mail in INBOX MajazKhan Linux - Server 1 04-08-2007 06:57 AM
Squirrel Mail LeniuNYC Linux - Software 11 03-07-2004 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:21 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
Open Source Consulting | Domain Registration