Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Https problem

Status
Not open for further replies.

alfalf

Programmer
Mar 6, 2003
155
BA
Hello.

After I installed https server, I tested it additionally on two online PCs (at my friends). On server it works ok. But, situation is:

1. I have an Apache 1.3.27 (W2K) mod_ssl 2.8.11 OpenSSL 0.9.6g PHP 4.2.2 (Apache module) mod_gzip 1.3.19a DAV 1.0 as my server. And an invalid certificate (browser gives warning, and then I accept it, because I use it only for test purposes).

2. I have two test links wich leads to https server on one my test page. One link is simple html link wich leads to betwen <a> tags. The other link, uses redirect.php file. This php file is:
<?php
header (&quot;Location: ?> - The code is OK.
And login.htm file and redirect.php file are existing in my servers htdocs folder. And Because I don't receive any PHP message, I consider that PHP works just fine. (*This IPAddress is changeable).

3. On both PCs from wich I was checking my https server, all SSL, TLS, PCT options are checked (via Tools -> Internet Options -> Advanced tab).

4. On both PCs first (simple <a> tag HTML) link to https works fine.

5. Second link works on one PC but on the other it doesn't. It gives a message - HTTP 404 Not Found - 'The page cannot be found'.

What could be the cause? Certificate?

Both PCs don't have firewall, both of them warns about invalid ceritificate (and allow option to accept) to both links.

Perhaps mod_ssl, OpenSSL or Apache misconfiguration?

Thanks for any suggestions.
 
Are you using IE to test the site? Have you used another browser (Opera, Mozilla, etc.) to test it, too? If so, do these other browsers exhibit the same problem?

What do your error logs say? Do you see entries like:
Code:
[error] mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System err
or follows)
[error] System: Connection reset by peer (errno: 104)

?



Want the best answers? Ask the best questions: TANSTAAFL!!
 
Hello. Sleipnir214 thank You for suggestions.
I solved the problem.

If interested: I had Apache1, Apache2 and Apache1 & OpenSSL (that is 3 - three) servers instaled. The problem was in those instalations (so many of them). And it was solved the moment I deinstalled Apache1 server (the one without OpenSSL).

And also, because I had an cgi-bin PHP instalation, and with that one I also had PHP instalation as Apache Module.
When CGI-bin was deinstalled, all other problems were solved.

If perhaps wonder why I had so much stupid instalations :)-)), well, the reason was that once long ago I installed Apache1, then before sometime Apache2 and developed site on Apache2. Then as necesity come my need for https server, and I installed that one but as a OpenSA server (as I dont have compilation tools). And forgot about those two servers I had before. That's why. After some cleaning, things come in place.

Thanks anyway.

Another thing, while I'm still here:
I have deleted (deinstalled) Apache1 and Apache2 and PHP cgi-bin, and also I deleted httpd.conf files as well. But, I have an small problem:
Some 'ghost' index file appeares as my homepage, instead of index.html wich realy exists in documentRoot folder. My httpd directory index line is OK:

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>

This page ONCE has been my homepage. But I deleted any trace to it (old httpd.conf files and directories) including itself. Can it be some setting in registry (I browse it a bit and found such information)? Also, I have restarted PC several time after deletion of this particular file.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top