LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-31-2005, 04:46 PM   #1
squeaks_27
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Slackware, Debian, Red Hat
Posts: 34

Rep: Reputation: 15
Unhappy https works, but not http


i finally got my server to work with ssl (apache1.3 and mod-ssl), my problem now is that i can no longer use the normal web (http://ipaddr) to access the same page. only https://ipaddr works.

what i ultimately want to do is redirect it http to https.

here's some of my httpd.conf file:

Code:
Port 80
...
ServerName localhost
...
DocumentRoot /var/www/sql-ledger
...
<Directory /var/www/sql-ledger>
    Options Indexes Includes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
...
<VirtualHost *:80>
</VirtualHost>

<VirtualHost *:443>
   <IfModule mod_ssl.c>
      SSLEngine on
      SSLCertificateFile       /etc/apache/ssl.crt/server.crt
      SSLCertificateKeyFile /etc/apache/ssl.key/server.key
      SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
   </IfModule>
</VirtualHost>
when i try the ipaddr, i get connection refused for http and it goes to the right site for https (p.s., i do have port 80 forwarded to my box )

thanks in advance
 
Old 05-31-2005, 08:41 PM   #2
squeaks_27
Member
 
Registered: Jan 2003
Location: Canada
Distribution: Slackware, Debian, Red Hat
Posts: 34

Original Poster
Rep: Reputation: 15
i added the following to make things work:

Code:
Listen 80
i'm not sure why i have to (cause i thought that's what "port 80" did (default port).

any comments/clarifications?
 
  


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
HTTPS and HTTP on same server Jake_B Linux - Software 2 11-28-2005 04:47 PM
Firefox - HTTPS works, but HTTP doesn't, any ideas? (Newbie question) RichardDarling Linux - Networking 2 11-03-2005 08:23 AM
http and https wennie Linux - Software 1 04-01-2005 11:47 AM
HTTP to HTTPS shegde Linux - Software 8 01-31-2003 04:29 AM
https or http? antken Programming 3 10-30-2002 05:06 PM


All times are GMT -5. The time now is 04:49 AM.

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