LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2004, 02:52 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 810

Rep: Reputation: 39
Problem Redirecting in Apache


Hi there --

I am trying to automatically redirect connections from port 80 to port 443. I set up a virtual host section to accomplish this task. Here is the syntax
that I entered into the httpd.conf file:

<VirtualHost 192.168.112.62>
ServerName 192.168.112.62
ServerAdmin someone@someplace.com
DocumentRoot /usr/local/apache/htdocs
Redirect / https://192.168.112.62/
</VirtualHost>


<VirtualHost 192.168.112.62>
ServerName 192.168.112.62
ServerAdmin someone@someplace.com
DocumentRoot /usr/local/apache/htdocs

SSLEngine On
SSLCertificateFile /usr/local/apache/conf/ssl.crt/ca-bundle.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
SSLCertificateChainFile /usr/local/apache/conf/ssl.key/server.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>

When I start Apache with SSL, apachectl startssl, I get the following error message:

Thu Sep 9 15:44:57 2004] [warn] VirtualHost 192.168.112.62:80 overlaps with VirtualHost 192.168.112.62:80, the first has precedence, perhaps you need a NameVirtualHost directive
Apache/1.3.31 mod_ssl/2.8.19 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide us with the pass phrases.

Server linux.mgh.harvard.edu:443 (RSA)
Enter pass phrase:

Ok: Pass Phrase Dialog successful.
/usr/local/apache/bin/apachectl startssl: httpd started
linux:/usr/local/apache/conf # ps -ef |grep httpd
root 10767 9807 0 15:45 pts/54 00:00:00 grep httpd

As you can see, I enter the appropriate passphrase and although it appears the httpd daemon has started, the grep command shows it has not.
If I comment out the VirtualHost excerpt shown above, Apache starts successfully.

What do I need to correct?
 
  


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
Port Redirecting Problem with Transparent Proxy landuchi Linux - Networking 15 11-08-2004 07:01 AM
Apache redirecting to IP address di11rod Linux - Software 6 06-03-2004 06:18 PM
apache redirecting mardanian Linux - Networking 1 04-14-2004 06:17 AM
Squid redirecting weird problem mchanea Linux - Networking 0 01-29-2004 10:25 AM
Problem redirecting web services... _TK_ Linux - Networking 1 06-17-2003 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 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