LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   HTTPS problem (https://www.linuxquestions.org/questions/linux-software-2/https-problem-103420/)

Swift&Smart 10-13-2003 10:09 AM

HTTPS problem
 
Hello,everyone! :)

I am building my website with login function.However,in order to enhance the data transmission security,I want the data to be encrypted throughout the transmisison with HTTPS.However,my apache server is listening to the port other than 80.And when I type https://mywebsite.com:8080,it failed!Would you guys tell me the reason?

Thanks a lot. :D

david_ross 10-13-2003 01:28 PM

A few things - make sure your firewall isn;t blocking port 143:
iptables -L

and that apache is listening to that port:
netstat -nlp

Swift&Smart 10-14-2003 10:29 AM

143/443?
 
Thanks for your reply,david_ross.I have inspected the port 443 of SSL,it is opening.On the other hand,I have opened my router's port 443 for linux server.However,everything is the same after I have made these modification....

Big question... :scratch:

david_ross 10-14-2003 12:20 PM

Sorry - my typo it is 443.

As well as the router - chekc you linux firewall rules - post the output of:
iptables -L

Like I asked above is apache listening to that port - post the output of:
netstat -nlp

Swift&Smart 10-17-2003 11:49 AM

First off,thanks for your reply,david_ross.

The output after I typed iptables -L...

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


The output after I typed nestat -nlp....

tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN

It seems like everything is fine.But...how comes?? :scratch:

david_ross 10-18-2003 07:01 AM

So the site fails wen you access:
https://www.mysite.com/

What error message do you get?

Swift&Smart 10-18-2003 10:28 AM

No.....
 
My website is mysite.website.com:8080.Is there any effect on my website if my server is listening to the port rather than default 80?

Thanks. :)

david_ross 10-18-2003 10:46 AM

By default accessing:
http://mysite.website.com
is the same as:
http://mysite.website.com:80

While:
https://mysite.website.com
is the same as:
https://mysite.website.com:443

Do you want to run a secure system and run it on port 8080? From the netstat above you can see that the secure server is running on 443 you will need to change it to 8080 if you want it to listen on that port.
.

Swift&Smart 10-18-2003 11:24 AM

How to???
 
Excuse me,david_ross,how to change my server's port and listen to 443?Basically,I mean my ISP has blocked port 80.As a consequence,I have to change my web server's port to 8080.Most importantly,I have to make it more secure so I would like to use HTTPS protocol.Do you know what I mean?

Thanks for your help. ;)

david_ross 10-18-2003 11:36 AM

Has your ISP blocked port 443?

You seem to have it running. So just try to access:
https://ip.address.of.server

The S tells your browser to use the secure port 443

If you to try it externaly use a proxy server like guardster or feel free to e-mail me your details if you don't want to post them on the board.

andrewlkho 10-18-2003 12:50 PM

Hi,
it sounds like an apache configuration problem. If you're having problems when trying to access https://localhost/ from the machine, then please post your httpd.conf file.


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