apache:virtual_hosts
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
apache:virtual_hosts [2016/10/11 00:07] – created peter | apache:virtual_hosts [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache - Virtual Hosts ====== | ====== Apache - Virtual Hosts ====== | ||
+ | |||
+ | This can be used as a template for further virtual hosts. | ||
<file bash / | <file bash / | ||
# domain: example.com | # domain: example.com | ||
- | # public: /home/myhomefolder/ | + | # public: /var/www/ |
< | < | ||
Line 13: | Line 15: | ||
# Index file and Document Root (where the public files are located) | # Index file and Document Root (where the public files are located) | ||
DirectoryIndex index.html index.php | DirectoryIndex index.html index.php | ||
- | DocumentRoot /home/myhomefolder/ | + | DocumentRoot /var/www/ |
# Log file locations | # Log file locations | ||
LogLevel warn | LogLevel warn | ||
- | ErrorLog | + | ErrorLog |
- | CustomLog /home/myhomefolder/ | + | CustomLog /var/log/ |
</ | </ | ||
+ | |||
< | < | ||
- | SSLEngine On | + | |
- | | + | SSLProtocol ALL -SSLv2 -SSLv3 |
- | | + | SSLHonorCipherOrder On |
- | | + | SSLCipherSuite ECDH+AESGCM: |
- | | + | SSLCertificateFile / |
- | | + | SSLCertificateKeyFile / |
- | | + | SSLCertificateChainFile / |
- | | + | < |
- | | + | Require all granted |
- | | + | AllowOverride ALL |
- | | + | </ |
- | | + | ServerAdmin admin@example.com |
- | | + | ServerName example.com |
- | | + | DocumentRoot /var/www/ |
- | | + | ErrorLog /var/log/ |
- | | + | CustomLog /var/log/ |
</ | </ | ||
</ | </ | ||
apache/virtual_hosts.1476144467.txt.gz · Last modified: 2020/07/15 09:30 (external edit)