summaryrefslogtreecommitdiffstats
path: root/Apache/virtualhosts
diff options
context:
space:
mode:
Diffstat (limited to 'Apache/virtualhosts')
-rw-r--r--Apache/virtualhosts/virtualhost-simple.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/Apache/virtualhosts/virtualhost-simple.conf b/Apache/virtualhosts/virtualhost-simple.conf
new file mode 100644
index 0000000..a3ec987
--- /dev/null
+++ b/Apache/virtualhosts/virtualhost-simple.conf
@@ -0,0 +1,30 @@
+#===============================================================================
+# domainname.tld:80
+#===============================================================================
+<VirtualHost *:80>
+ DocumentRoot "/var/www/domainname.tld/"
+ ServerName domainname.tld
+
+ <Directory /var/www/domainname.tld/>
+ # Something
+ </Directory>
+</VirtualHost>
+
+#===============================================================================
+# domainname.tld:443
+#===============================================================================
+<VirtualHost *:443>
+ <IfModule mod_ssl.c>
+ DocumentRoot "/var/www/domainname.tld/"
+ ServerName domainname.tld
+
+ SSLEngine on
+ SSLCertificateFile /var/certificates/domainname.tld/certificate.pem
+ SSLCertificateKeyFile /var/certificates/domainname.tld/private.pem
+ SSLCertificateChainFile /var/certificates/domainname.tld/intermediate.pem
+
+ <Directory /var/www/domainname.tld/>
+ # Something
+ </Directory>
+ </IfModule>
+</VirtualHost> \ No newline at end of file