Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. <VirtualHost aparatas.runevis.com:80>
  2. ServerAdmin jasytis@gmail.com
  3. ServerName aparatas.runevis.com
  4. ServerAlias www.aparatas.runevis.com
  5. DocumentRoot /var/www/aparatas.runevis.com/public
  6.  
  7. <Directory /var/www/html/>
  8. Options Indexes FollowSymLinks
  9. AllowOverride All
  10. Require all granted
  11. </Directory>
  12.  
  13. LogLevel debug
  14. ErrorLog ${APACHE_LOG_DIR}/error.log
  15. CustomLog ${APACHE_LOG_DIR}/access.log combined
  16.  
  17. <IfModule mod_dir.c>
  18. DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
  19. </IfModule>
  20.  
  21. RewriteEngine on
  22. RewriteCond %{SERVER_NAME} =aparatas.runevis.com [OR]
  23. RewriteCond %{SERVER_NAME} =www.aparatas.runevis.com
  24. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  25. </VirtualHost>
  26.  
  27. <VirtualHost runevis.com:80>
  28. ServerAdmin jasytis@gmail.com
  29. ServerName runevis.com
  30. ServerAlias www.runevis.com
  31. DocumentRoot /var/www/runevis.com/public_html
  32.  
  33. <Directory /var/www/html/>
  34. Options Indexes FollowSymLinks
  35. AllowOverride All
  36. Require all granted
  37. </Directory>
  38.  
  39. ErrorLog ${APACHE_LOG_DIR}/error.log
  40. CustomLog ${APACHE_LOG_DIR}/access.log combined
  41.  
  42. <IfModule mod_dir.c>
  43. DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
  44. </IfModule>
  45.  
  46. RewriteEngine on
  47. RewriteCond %{SERVER_NAME} =runevis.com [OR]
  48. RewriteCond %{SERVER_NAME} =www.runevis.com
  49. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  50. </VirtualHost>
  51.  
  52. <IfModule mod_ssl.c>
  53. <VirtualHost aparatas.runevis.com:443>
  54. ServerAdmin jasytis@gmail.com
  55. ServerName aparatas.runevis.com
  56. ServerAlias www.aparatas.runevis.com
  57. DocumentRoot /var/www/aparatas.runevis.com/public
  58.  
  59. <Directory /var/www/html/>
  60. Options Indexes FollowSymLinks
  61. AllowOverride All
  62. Require all granted
  63. </Directory>
  64.  
  65. ErrorLog ${APACHE_LOG_DIR}/error.log
  66. CustomLog ${APACHE_LOG_DIR}/access.log combined
  67.  
  68. <IfModule mod_dir.c>
  69. DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
  70. </IfModule>
  71.  
  72. RewriteEngine on
  73. # Some rewrite rules in this file were disabled on your HTTPS site,
  74. # because they have the potential to create redirection loops.
  75.  
  76. # RewriteCond %{SERVER_NAME} =aparatas.runevis.com [OR]
  77. # RewriteCond %{SERVER_NAME} =www.aparatas.runevis.com
  78. # RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  79. SSLCertificateFile /etc/letsencrypt/live/aparatas.runevis.com/fullchain.pem
  80. SSLCertificateKeyFile /etc/letsencrypt/live/aparatas.runevis.com/privkey.pem
  81. Include /etc/letsencrypt/options-ssl-apache.conf
  82. </VirtualHost>
  83. </IfModule>
  84.  
  85.  
  86. <IfModule mod_ssl.c>
  87. <VirtualHost *:443>
  88. ServerAdmin jasytis@gmail.com
  89. ServerName runevis.com
  90. ServerAlias www.runevis.com
  91. DocumentRoot /var/www/runevis.com/public
  92.  
  93. <Directory /var/www/html/>
  94. Options Indexes FollowSymLinks
  95. AllowOverride All
  96. Require all granted
  97. </Directory>
  98.  
  99. ErrorLog ${APACHE_LOG_DIR}/error.log
  100. CustomLog ${APACHE_LOG_DIR}/access.log combined
  101.  
  102. <IfModule mod_dir.c>
  103. DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
  104. </IfModule>
  105.  
  106. SSLCertificateFile /etc/letsencrypt/live/runevis.com/fullchain.pem
  107. SSLCertificateKeyFile /etc/letsencrypt/live/runevis.com/privkey.pem
  108. Include /etc/letsencrypt/options-ssl-apache.conf
  109. </VirtualHost>
  110. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement