Virajsinh

XAMPP Virtual Host Config

May 6th, 2025 (edited)
297
0
Never
10
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 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/saas/public" # ✅ only public
  8. ServerName saas.local
  9. ServerAlias *.saas.local
  10. SSLEngine on
  11. SSLCertificateFile "crt/saas.local/server.crt"
  12. SSLCertificateKeyFile "crt/saas.local/server.key"
  13.  
  14. <Directory "D:/xampp/htdocs/saas/public"> # ✅ allow overrides for Laravel
  15. Options Indexes FollowSymLinks
  16. AllowOverride All
  17. Require all granted
  18. </Directory>
  19.  
  20. ErrorLog "logs/saas.local-error_log"
  21. CustomLog "logs/saas.local-access_log" common
  22. </VirtualHost>
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Mivorto
    14 days
    Comment was deleted
  • Nuhadky
    1 day
    Comment was deleted
Add Comment
Please, Sign In to add comment