I've setup a virtual host on XAMPP 1.7.3a, to test my custom application I need to access it via https.
I've tried a lots of tutorials and troubleshooting. nothing works (and no idea why?)
Some times in Firefox, I get the error (Error code: ssl_error_rx_record_too_long) and some other times "can't find the server at blabla"
and https://localhost also not working, though XAMPP says, "Starting Apache with SSL.." on start
Please somebody help me here to get it working.
I've tried
<VitrualHost *:443>, <VitrualHost localhost:443> etc.
Now my working virtual host(without ssl) look like this.
- Code: Select all
NameVirtualHost *
<VirtualHost *>
DocumentRoot /opt/lampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *>
ServerAdmin webmaster@example.com
DocumentRoot /home/iloveit/sites/example.com
ServerName example.com
DirectoryIndex index.php
ServerAlias *.example.com
ErrorLog logs/example.com-error_log
CustomLog logs/example.com-access_log common
</VirtualHost>
<Directory "/home/iloveit/sites/example.com">
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</Directory
and my host file
- Code: Select all
127.0.0.1 example.com
any help would be appreciated. Thanks in advance.