Advertisement
Virajsinh

XAMPP Virtual Host Config

May 6th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | Source Code | 0 0
  1. Visit How to Generate SSL Certificates : https://shellcreeper.com/how-to-create-valid-ssl-in-localhost-for-xampp/
  2.  
  3. D:\xampp\apache\conf\extra\httpd-vhosts.conf
  4.  
  5. <VirtualHost *:443>
  6. ServerAdmin [email protected]
  7. DocumentRoot "D:\xampp\htdocs\project_name"
  8. ServerName myproject.local
  9. ServerAlias *.myproject.local
  10. SSLEngine on
  11. SSLCertificateFile "crt/myproject.local/server.crt"
  12. SSLCertificateKeyFile "crt/myproject.local/server.key"
  13. ErrorLog "logs/myproject.local-error_log"
  14. CustomLog "logs/myproject.local-access_log" common
  15. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement