![]() But when I try to install SSL-certificate for it is not installing properly.ġ) is redirecting to some other site say hosted on same server. Redirect permanent /subdomain will show the port in the address bar, just as if you had typed host:port manually into the browser. I have installed SSL-certificate for IIS of Godaddy server and it is working as expected. 192.168.1.x/subdomain and be taken to Statping ( host:port) locally without actually having to fiddle with your hosts file or local DNS. I have purchased seperate ssl certificate for both subdomain. I have 2 subdomain sayġ) having binding settings say IP=10.1.1.2 and Port=8445Ģ) having binding settings say IP=50.72.139.100 and Port=443. Copy these quickly and paste into am using Windows 2008R2 server with Plesk 10.4.4. If xampp fails for some reason instead of starting the xampp consol try the start xampp as this will give you problems you can bug fix. Very important to stop and start xampp server after each change you make in xampp. Note3 I use the noip DUC software to keep my personally hosted web site in sync with noip. Rather then try to get them to give me a ssl certificate, as I could not get it to work, the above worked instead. But when I try to install SSL-certificate forit is not installing properly. SSLCertificateKeyFile "conf/ssl.key/abskey.pem"ĬustomLog "G:/xampp/apache/logs/ssl_request.log" \ I have installed SSL-certificate for IIS of Godaddy server and it is working as expected. SSLCertificateFile "conf/ssl.crt/abscert.pem" Or could have an index.php page before /public# Thank you!ĭocumentRoot "G:/xampp/htdocs//public/" I missed this important step for days until I read this post. Then navigated to G:\xampp\apache\conf\extra\nf and did as was advised above.SSLCertificateKeyFile "G:\xampp\apache\conf\ssl.key\abskey.pem" SSLCertificateFile "G:\xampp\apache\conf\ssl.crt\abscert.pem" Options Indexes FollowSymLinks Includes ExecCGIĮrrorLog "G:/xampp/apache/logs/error.log"ĬustomLog "G:/xampp/apache/logs/access.log" common Or could have an index.php page before /public# To create the subdomain for you localhost you need to edit a XAMPP configuration file named nf this file is located in C:/xampp/apache/conf/extra (this might be different for you depending where you installed XAMPP). Then for G:\xampp\apache\conf\extra\httpd-vhosts entered the following:ĭocumentRoot "G:/xampp/htdocs//public/" #NB My document root is public. Copied these into C:\xampp\apache\ssl.crt and ssl.key folders respectively. Then took these and changed their names from cert1.pem to my domainname or shorter cert.pem and same for domainname or shorter key.key. the cmd windows tells you where these are. This created certs as cert1.pem and key1.pem in C:\Certbot yourwebsitedomain folder. Then followed the prompts and enteredmy domain name. navigated to system32- C:\WINDOWS\system32> certbot certonly -standalone Then from command line I enhtered the command from Certbot page above. Then downloaded and installed certbot software found at the next page into my C drive. Selected from their home page software and system. I am using xampp version from November 2020. I finally got this to work on my own hosted xampp windows 10 server web site. Restart Apache and your browser and it's done! SSLCertificateKeyFile "crt/site.test/server.key" SSLCertificateFile "crt/site.test/server.crt" Install this cert in Windows (Trusted Root Certification Authorities) See more details in the link aboveĪdd the site in Windows hosts (C:\Windows\System32\drivers\etc\hosts)Īdd the site in XAMPP conf (C:\xampp\apache\conf\extra\nf) ![]() ![]() ![]() There is a better guide here for Windows:Ĭreate an SSL certificate for your local domain using this: See more details in the link above
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |