Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-31-2005, 05:46 PM   #1
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:

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
<VirtualHost *:80>

<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
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, 09:41 PM   #2
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:

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

any comments/clarifications?


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

All times are GMT -5. The time now is 11:22 PM.

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