-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVirtualhost.example
More file actions
executable file
·35 lines (30 loc) · 1.14 KB
/
Virtualhost.example
File metadata and controls
executable file
·35 lines (30 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#########################
###### SSL Enabled ######
#########################
<VirtualHost *:443>
ServerName yourdomainname.com
ServerAlias www.yourdomainname.com
SSLEngine on
SSLCertificateFile /YOUR_CERTIFICATE_FILE_DIRECTORY/cloudflare.com.pem
SSLCertificateKeyFile /YOUR_CERTIFICATE_KEY_DIRECTORY/your_generated_key.key
SSLCertificateChainFile /YOUR_CERTIFICATE_CHAINFILE_DIRECTORY/cloudflare.rsa.pem
ServerAdmin example@yourdomainname.com
DocumentRoot /YOUR_DIRECTORY/dist/public
ErrorLog /YOUR_ERROR_DIRECTORY/YOUR_DIRECTORY.error.log
CustomLog /YOUR_CUSTOM_LOG//YOUR_DIRECTORY.access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName yourdomainname.com
Redirect permanent / https://yourdomainname.com/
</VirtualHost>
#########################
###### SSL Disabled #####
#########################
<VirtualHost *:80>
ServerName yourdomainname.com
ServerAlias www.yourdomainname.com
ServerAdmin example@yourdomainname.com
DocumentRoot /YOUR_DIRECTORY/dist/public
ErrorLog /YOUR_ERROR_DIRECTORY/YOUR_DIRECTORY.error.log
CustomLog /YOUR_CUSTOM_LOG//YOUR_DIRECTORY.access.log combined
</VirtualHost>