LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 08-10-2004, 12:22 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

Rep: Reputation: 39
Apache 2.0.50 Configuration Issue


I was able to install Apache 2.0.50 with SSL support such that if I start Apache with the startssl argument, the nosecure and secure test pages are accessible. However, there are two problems that I am running into:

1. I would like to automatically redirect insecure connections (80) to the secure port (443). To that end I modified the httpd.conf file to include a redirect line in the virtual host section. Here is an excerpt of the file:

<VirtualHost 10.10.10.20:80>
ServerName radoncbs.mgh.harvard.edu
ServerAdmin ahkaplan@partners.org
DocumentRoot /usr/local/apache/htdocs
Redirect / https://10.10.10.20/
</VirtualHost>

<VirtualHost 10.10.10.20:443>
ServerName 10.10.10.20
ServerAdmin ahkaplan@partners.org
DocumentRoot /usr/local/apache/htdocs

SSLEngine On
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.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>

The problem is I can manually go to the secure port, but I am not automatically sent to it.

2. I am able to start Apache with ssl without any difficulty, but when I want to stop it, I get the following error:

Syntax error on line 1117 of ../httpd.conf: Invalid command 'SSLEngine' perhaps it is mispelled or defined by a module not included in the server configuration.

When I did the initial compiling of Apache, the syntax that I used was:

./configure --prefix=/usr/local/apache --enable-mods-shared=most --enable-deflate --enable-ssl

There were no errors during the compiling process.

What steps do I need to take to correct these problems? Thanks.
 
Old 08-10-2004, 09:10 PM   #2
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
I know this is not what you were asking but if you have php installed on the system you could just make a index.php file and put it in the root directory for the port 80

<?
header("Location: https://10.10.10.20");
exit;
?>
 
Old 08-11-2004, 07:34 AM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

Original Poster
Rep: Reputation: 39
Thank you for your reply. I can proceed with creating the file, but I am curious as to what information will come about from it?
 
Old 08-11-2004, 08:09 AM   #4
cli_man
Member
 
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
All that file does is redirect the user from the nonsecure site to your secure site, it will only work if your secure and your insecure site use two different root directories and if you have php installed, you can do the same thing with javascript but I don't have the code on me.
 
  


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
DNS configuration issue vesperatus Linux - Networking 4 09-14-2005 03:49 PM
Sendmail Configuration Issue AquilaHosting Fedora 0 03-30-2005 08:04 PM
ProFTPd Configuration Issue resistednormalc Linux - Software 3 07-14-2004 02:36 PM
eth0 configuration issue gvaught Linux - Networking 28 11-03-2003 11:24 PM
CUPS Configuration Issue Crashed_Again Linux - Software 3 01-21-2003 04:43 PM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
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