ssl with apache

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

ssl with apache

Postby raman36127 » 04. November 2008 12:13

Hi am trying to configure ssl on xampp linux.

i do some changes in httpd-ssl.conf

Listen 0.0.0.0:443

And in Vhost change some do the following setting....

<ifDefine SSL>
<VirtualHost *.*.*.*:443>
ServerAdmin webmaster@info.com
DocumentRoot /path/of/site.com
ServerName abc.xyz.com
ServerAlias www.abc.xyz.com
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /path/of/cert/abc.xyz.com.crt
SSLCertificateKeyFile /path/of/server.key
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
</IfDefine>

But when i treid to open with https://abc.xyz.com
error comed:- page cannot open....
normal site work fine.

anybody guide me on this issue.

Thanks

:?:
raman36127
 
Posts: 10
Joined: 04. November 2008 09:36

Postby glitzi85 » 05. November 2008 17:03

After starting Apache check with xampp-portcheck.exe whether Apache is really listening on Port 443 or not. If not, then you should check the includes in httpd.conf, maybe they are not correct. If Apache is listening on this Port, then try to remove the <IfDefine SSL>-Block.

If that is also not working, check the access.log, error.log and ssl_request.log!

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

ssl with apache

Postby raman36127 » 06. November 2008 11:37

i tried with ur conf..but not sucessed...
443 port is open... but same still error come...
in my vhost conf i configure like this..

NameVirtualHost 192.168.11.238

<VirtualHost 192.168.11.238>
ServerAdmin webmaster@abc.com
DocumentRoot /path/of/site
ServerName abc.xyz.com
ErrorLog logs/abc.xyz-error_log
CustomLog logs/abc.xyz-log common
</VirtualHost>

nothing find suspiciuos in logs...
raman36127
 
Posts: 10
Joined: 04. November 2008 09:36

Postby glitzi85 » 06. November 2008 19:36

What Error Message does come exactly in your Browser?

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

ssl with apache

Postby raman36127 » 07. November 2008 06:37

Now following error come....

Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.


Hint: https://abc.xyz.com/
raman36127
 
Posts: 10
Joined: 04. November 2008 09:36

ssl with apache

Postby raman36127 » 07. November 2008 16:21

:) Dear..follow the following steps for SSL configuration.... work for me.... if you have any query then write me on raman36127@gmail.com

1) make sure use dedicated ip for ssl.

take the back up of original httpd-ssl.conf, & make ur httpd-ssl.conf

#vi httpd-ssl.conf

Listen 443
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
SSLRandomSeed startup file:/dev/urandom 512
SSLRandomSeed connect file:/dev/urandom 512
# SSLLog /usr/local/apache/logs/ssl_engine_log
# SSLLogLevel info
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

NameVirtualHost 192.168.11.238
<VirtualHost 192.168.11.238:443>
ServerAdmin webmaster@abc.com
DocumentRoot /path/of/site
ServerName abc.xyz.com
ServerAlias www.abc.xyz.com
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /path/of/abc.xyz.crt
SSLCertificateKeyFile /server/server.key
SSLCACertificateFile /path/of/CA_bundle.crt
SSLEngine on
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>

<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/opt/lampp/cgi-bin">
SSLOptions +StdEnvVars
</Directory>

Save the file .... restart the services
#/opt/lampp/lampp restart

Now check ur url with https://abc.xyz.com

Enjoy........

For creat csr or other details u can visit my blog i.e :-
http://raman-kumar.blogspot.com &
for sun infromation http://raman-kumar1.blogspot.com
raman36127
 
Posts: 10
Joined: 04. November 2008 09:36


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests