![]() which suggested adding redirects to configuration file: \xampp\apache\conf\extra\nf. To correct the above problem, I referred to this article. However, clicking on the various other links on the website also failed, as it required, but did not have the " in front of the link. Had to include before the url, so typing in " " brought up the correct page. Typing "q.localhost" in URL window failed, and redirected to the Xampp default page. Seems like the configuration above was correct, but I didn't realize one thing, and I had to include some further configuration to make it work. # DocumentRoot "C:/XAMPP/htdocs/data/anycompany"Īpache nf: DocumentRoot "C:/xampp/htdocs/data/anycompany"ĭoesn't seem to have any error message in the apache error log. Use HTTPS on Localhost (XAMPP, Windows) https-on-localhost.md Remove semi colon ( ) in front of the line, if there is any: C:\xampp\apache\conf\nf Make sure that this is uncommented (no semi colon - ) LoadModule rewritemodule modules/modrewrite. # THIS WORKS, BUT COMMENTED OUT REPLACED BY THE ABOVE # SSLCertificateKeyFile "C:/xampp/apache/conf/ssl.key/server.key" XAMPP: How to set up SSL/HTTPS for local Projects The script can be found in the Apache folder of the XAMPP installation, in a standard installation on Windows this is the path: C:\xampp\apache In this folder we find the file makecert.bat, with a double-click on the file we can start the script. SSLCertificateFile "C:/xampp/apache/conf/ssl.crt/server.crt" #this is the first vhost address in XAMPPĭocumentRoot "C:/XAMPP/htdocs/data/anycompany" Once complete the installation Open the XAMPP control panel and start Apache Server. ![]() Select the servers want to install in the server and give next. ![]() Open control panel XAMPP and select config Apache nf file. I have read quite a few postings on configuring SSL on Xampp/Windows/Apache/VirtualHost and think I have done it right, but when I enter in the virtualhost url (q.localhost), I always get to the default localhost Xampp info page, which reads: ' ' in the url bar.īelow are what I have in my various files that I think are relevant:Īpache nf: LoadModule ssl_module modules/mod_ssl.so Now we need to attach the SSL certificate to the localhost. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |