User Tools

Site Tools


apache:virtual_hosts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
apache:virtual_hosts [2016/10/11 00:07] – created peterapache: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 /etc/apache/sites-available/example.com> <file bash /etc/apache/sites-available/example.com>
 # domain: example.com # domain: example.com
-# public: /home/myhomefolder/public/example.com/+# public: /var/www/example.com/
  
 <VirtualHost actual_dedicated_ip:80> <VirtualHost actual_dedicated_ip:80>
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/public/example.com/public+  DocumentRoot /var/www/example.com
  
   # Log file locations   # Log file locations
   LogLevel warn   LogLevel warn
-  ErrorLog  /home/myhomefolder/public/example.com/log/error.log +  ErrorLog  /var/log/example.com-error.log 
-  CustomLog /home/myhomefolder/public/example.com/log/access.log combined+  CustomLog /var/log/example.com-access.log combined
 </VirtualHost> </VirtualHost>
 +
 <VirtualHost actual_dedicated_ip:443> <VirtualHost actual_dedicated_ip:443>
-     SSLEngine On +  SSLEngine On 
-     SSLProtocol ALL -SSLv2 -SSLv3 +  SSLProtocol ALL -SSLv2 -SSLv3 
-     SSLHonorCipherOrder On +  SSLHonorCipherOrder On 
-     SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS +  SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS 
-     SSLCertificateFile /etc/apache2/ssl/www.example.com.crt +  SSLCertificateFile /etc/apache2/ssl/www.example.com.crt 
-     SSLCertificateKeyFile /etc/apache2/ssl/www.example.com.key +  SSLCertificateKeyFile /etc/apache2/ssl/www.example.com.key 
-     SSLCertificateChainFile /etc/apache2/ssl/www.example.com.ca-bundle +  SSLCertificateChainFile /etc/apache2/ssl/www.example.com.ca-bundle 
-     <Directory /home/myhomefolder/public/example.com/public+  <Directory /var/www/example.com> 
-       Require all granted +    Require all granted 
-       AllowOverride ALL +    AllowOverride ALL 
-     </Directory>      +  </Directory>      
-     ServerAdmin admin@example.com +  ServerAdmin admin@example.com 
-     ServerName example.com +  ServerName example.com 
-     DocumentRoot /home/myhomefolder/public/example.com/public +  DocumentRoot /var/www/example.com 
-     ErrorLog /home/myhomefolder/public/example.com/log/https_error.log +  ErrorLog /var/log/example.com-https_error.log 
-     CustomLog /home/myhomefolder/public/example.com/log/https_access.log combined+  CustomLog /var/log/example.com-https_access.log combined
 </VirtualHost> </VirtualHost>
 </file> </file>
  
  
apache/virtual_hosts.1476144467.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki