SSL Virtual hosts: XAMPP-1.0 worked, XAMPP-1.2 - Not worked!

Problems with the Windows version of XAMPP, questions, comments, and anything related.

SSL Virtual hosts: XAMPP-1.0 worked, XAMPP-1.2 - Not worked!

Postby coresh » 16. November 2003 15:06

What is a PROBLEM? SSL Virtual hosts: XAMPP-1.0 worked, XAMPP-1.2 - Not worked!
OS: XP SP1, Memory 512, CPU Pentium 4 - 2.33 GHz
Browser-> https://virtual-host.com - NOT WORKED (Browser-> Indicate: Cannot open host; PC-processor UP 100%[Apache service 80-92%])

XAMPP-1.0
Browser-> http://localhost - worked
Browser-> https://localhost - worked
Browser-> http://virtual-host.com - worked
Browser-> https://virtual-host.com - worked

XAMPP-1.2
Browser-> http://localhost - worked
Browser-> https://localhost - worked
Browser-> http://virtual-host.com - worked
Browser-> https://virtual-host.com - NOT WORKED (Browser-> Indicate: Cannot open host; PC-processor UP 100%[Apache service 80-92%])

############
# Settings #
############

1. ssl.conf[XAMPP-1.0] = ssl.conf[XAMPP-1.2];
2. httpd.conf[XAMPP-1.0] = httpd.conf[XAMPP-1.2];
3. hosts[XAMPP-1.0] = hosts[XAMPP-1.2];
4. Firewalls: uninstalled;
5. WindowTweaks, WindowBlinds: uninstalled;

#############
# ssl.conf: #
#############

<VirtualHost 127.0.0.1:443>
DocumentRoot "I:/"
ServerName localhost
ServerAdmin you@your.address
DocumentRoot "I:/"
ErrorLog logs/localhost-sslerror.log
TransferLog logs/localhost-sslaccess.log
SSLEngine on
SSLCertificateFile "I:/xampp/apache/conf/ssl.crt/server.crt"
SSLCertificateKeyFile "I:/xampp/apache/conf/ssl.key/server.key"
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "I:/xampp/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>

<VirtualHost 127.0.0.2:443>
DocumentRoot "I:/www/html/virtual-host.com/ssl"
ServerName virtual-host.com
ServerAdmin you@your.address
DocumentRoot "I:/www/html/virtual-host.com/ssl"
ErrorLog logs/virtual-host.com-sslerror.log
TransferLog logs/virtual-host.com-sslaccess.log
SSLEngine on
SSLCertificateFile "I:/xampp/apache/conf/ssl.crt/virtual-host.com.crt"
SSLCertificateKeyFile "I:/xampp/apache/conf/ssl.key/virtual-host.com.key"
<Files ~ "\.(cgi|shtml|php|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
<Directory "I:/xampp/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>

#########
# hosts #
#########

127.0.0.1 localhost
127.0.0.2 virtual-host.com

#############
# error.log #
#############

[Sun Nov 16 03:33:33 2003] [notice] Child 1592: Child process is running
[Sun Nov 16 03:33:33 2003] [notice] Child 1592: Acquired the start mutex.
[Sun Nov 16 03:33:33 2003] [notice] Child 1592: Starting 250 worker threads.

################
# sslerror.log #
################

EMPTY

##################################
# virtual-host.com-sslaccess.log #
##################################

127.0.0.2 - - [16/Nov/2003:03:35:02 +0300] "GET /login.php HTTP/1.1" 302 177
127.0.0.2 - - [16/Nov/2003:03:35:02 +0300] "GET /login.php HTTP/1.1" 302 177
127.0.0.2 - - [16/Nov/2003:03:35:02 +0300] "GET /login.php HTTP/1.1" 302 177
coresh
 
Posts: 4
Joined: 14. November 2003 11:01

Postby MAGnUm » 18. November 2003 03:18

Try using the ssl.config file that came w/ wampp and going from there, and also just a dumb question is the directory the vhost is pointing to correct, because a 302 error means temporarily moved and I think that if the vhost doc root was wrong then it would use a lot of resources trying to find something that was not there. thats my 2 cents. and you can mail me my change.
~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
User avatar
MAGnUm
 
Posts: 151
Joined: 16. October 2003 18:08
Location: USA

Postby coresh » 21. November 2003 22:48

[quote="MAGnUm"]Try using the ssl.config file that came w/ wampp and going from there, and also just a dumb question is the directory the vhost is pointing to correct, because a 302 error means temporarily moved and I think that if the vhost doc root was wrong then it would use a lot of resources trying to find something that was not there. thats my 2 cents. and you can mail me my change.[/quote]

:!: Many thanks!

But: All settings and configs [XAMPP-1.0] = [XAMPP-1.2]

XAMPP-1.0 - worked, XAMPP-1.2 - Not worked
coresh
 
Posts: 4
Joined: 14. November 2003 11:01

?

Postby MAGnUm » 22. November 2003 15:13

Did the problem get resolved? I never trust any config thats advanced such as vhosts to work from version to version. thats just the way it is.
~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
User avatar
MAGnUm
 
Posts: 151
Joined: 16. October 2003 18:08
Location: USA

Postby coresh » 24. November 2003 11:58

Ok. Are You have a real working SSL virtual host (except: https://localhost) [v.XAMPP-1.2]??? Please post your sample ssl.conf (real working). Thanks!
coresh
 
Posts: 4
Joined: 14. November 2003 11:01

all i have is the default

Postby MAGnUm » 25. November 2003 18:42

all i use is the default, if anyone has one it would be appriciated. BTW i take it it is still not working for you.

ok from your example you are using ip based vhosts, and the second one is pointing to 127.0.0.2 rather than 127.0.0.1, i assume that the vhost directory is on the same machine as is the normal http web root by looking @ your paths. now is it for example that u used 127.0.0.2 or is this how it appears in yor config. if thats how it appears than that is your problem. from your example you are hosting a domain on the ssl side and http side and it works on the http side but not the ssl side. if you could give an exact config of what you are doing both httpd and ssl it might help. feel free to change ip's or since you appear to be using ip based vhosts as named vhosts use a domain (dns name) wher applicable. it doesnt benefit you to change the config file too much. just makes it more confusing. also this might help some (http://httpd.apache.org/docs-2.0/vhosts/)
also try starting apache in a cmd window with the (-S) option (case matters) this will make sure your vhosts are correct and help locate the problem if one exists.
~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
User avatar
MAGnUm
 
Posts: 151
Joined: 16. October 2003 18:08
Location: USA

Postby coresh » 25. November 2003 21:03

Thanks!

I know about it...

Apache.exe -S
Said: Syntax OK

Anybody here?!? With NO-Default Real working config SSL i.e.: https://no-Default-localhost
(Worked only: https://localhost, Is It true?!? (Please read first: topic-TOP)

Resume: I think -> [XAMPP-1.2]Apache source compilation problem (as regards SSL) or (SSL layer part only) :(

What do You think???
coresh
 
Posts: 4
Joined: 14. November 2003 11:01


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 68 guests