Skip to content

Commit

Permalink
🛡️: With SSL
Browse files Browse the repository at this point in the history
  • Loading branch information
pphatdev authored Dec 11, 2024
1 parent 6a2ed51 commit 3547fc2
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions example/http-vhost/https.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# With SSL
# Example for pphatdev.local
<VirtualHost pphatdev.local:80>
# Redirect to HTTPS
Redirect permanent / https://pphatdev.local/
</VirtualHost>


# With SSL
<VirtualHost pphatdev.local:443>

# Server Name
ServerName pphatdev.local
# Server Alias
ServerAlias pphatdev.local

# Document Root Path
DocumentRoot "D:/Project/laravel/blog-post/public"

# SSL Options
SSLEngine on
SSLCertificateFile "C:/xampp/apache/conf/ssl.crt/pphatdev.local.crt"
SSLCertificateKeyFile "C:/xampp/apache/conf/ssl.key/pphatdev.local.key"

# Directory Permission
<Directory "D:/Project/laravel/blog-post/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

0 comments on commit 3547fc2

Please sign in to comment.