Welcome Guest, Not a member yet? Register   Sign In
XAMPP
#14

[eluser]Unknown[/eluser]
ok, so this post helped me. I am using Xampp on XP, ya still XP. I have 2 SSL and one regular.
I did the normal hosts file stuff and had trouble with SSL until the post way above showed the certificate entries, plus the final great step was to put the site name in the directive rather than *:443.. that just kicked me to Xampp main page. so here you go. The SSL is used on a codeigniter site which I have forcing a redirect to https and it still works index.php and all. I hope it helps someone.

hosts file is:
127.0.0.1 websiteA.local
127.0.0.1 websiteB.local
127.0.0.1 websiteC.local

Names have been changed to protect the innocent.

NameVirtualHost *
<VirtualHost *>
DocumentRoot "K:\xampp\htdocs"
ServerName localhost
</VirtualHost>

<VirtualHost websiteA.local:443>
DocumentRoot "K:\xampp\htdocs\websiteA"
ServerName websiteA.local
SSLEngine on
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key

<Directory "K:\xampp\htdocs\websiteA">
Options Indexes FollowSymLinks Includes ExecCGI
RewriteEngine On
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost websiteB.local:443>
DocumentRoot "K:\xampp\htdocs\websiteB"
ServerNamewebsiteB.local
SSLEngine on
SSLCertificateFile conf/ssl.crt/server.crt
SSLCertificateKeyFile conf/ssl.key/server.key

<Directory "K:\xampp\htdocs\websiteB">
Options Indexes FollowSymLinks Includes ExecCGI
RewriteEngine On
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost websiteC.local:80>
DocumentRoot "K:\xampp\htdocs\websiteC"
ServerName websiteC.local
<Directory "K:\xampp\htdocs\websiteC">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

That worked although I am sure you can remove stuff or add to it. Took several hours to get this combination right.


Messages In This Thread
XAMPP - by El Forum - 05-31-2010, 01:26 PM
XAMPP - by El Forum - 05-31-2010, 04:18 PM
XAMPP - by El Forum - 05-31-2010, 04:21 PM
XAMPP - by El Forum - 05-31-2010, 09:35 PM
XAMPP - by El Forum - 05-31-2010, 10:02 PM
XAMPP - by El Forum - 06-01-2010, 12:41 AM
XAMPP - by El Forum - 06-01-2010, 01:00 AM
XAMPP - by El Forum - 06-01-2010, 09:42 AM
XAMPP - by El Forum - 06-01-2010, 10:18 AM
XAMPP - by El Forum - 06-01-2010, 11:05 AM
XAMPP - by El Forum - 06-01-2010, 12:22 PM
XAMPP - by El Forum - 06-01-2010, 02:57 PM
XAMPP - by El Forum - 06-02-2010, 03:58 AM
XAMPP - by El Forum - 02-01-2013, 02:13 AM
XAMPP - by El Forum - 02-06-2013, 11:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB