Advertisement
Guest User

Untitled

a guest
Feb 14th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. # Virtual Hosts
  2. #
  3. # Required modules: mod_log_config
  4.  
  5. # If you want to maintain multiple domains/hostnames on your
  6. # machine you can setup VirtualHost containers for them. Most configurations
  7. # use only name-based virtual hosts so the server doesn't need to worry about
  8. # IP addresses. This is indicated by the asterisks in the directives below.
  9. #
  10. # Please see the documentation at
  11. # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
  12. # for further details before you try to setup virtual hosts.
  13. #
  14. # You may use the command line option '-S' to verify your virtual host
  15. # configuration.
  16.  
  17. #
  18. # VirtualHost example:
  19. # Almost any Apache directive may go into a VirtualHost container.
  20. # The first VirtualHost section is used for all requests that do not
  21. # match a ServerName or ServerAlias in any <VirtualHost> block.
  22. #
  23. #<VirtualHost *:80>
  24. # ServerAdmin webmaster@dummy-host.example.com
  25. # DocumentRoot "/usr/docs/dummy-host.example.com"
  26. # ServerName dummy-host.example.com
  27. # ServerAlias www.dummy-host.example.com
  28. # ErrorLog "/var/log/httpd/dummy-host.example.com-error_log"
  29. # CustomLog "/var/log/httpd/dummy-host.example.com-access_log" common
  30. #</VirtualHost>
  31.  
  32. #<VirtualHost *:80>
  33. # ServerAdmin webmaster@dummy-host2.example.com
  34. # DocumentRoot "/usr/docs/dummy-host2.example.com"
  35. # ServerName dummy-host2.example.com
  36. # ErrorLog "/var/log/httpd/dummy-host2.example.com-error_log"
  37. # CustomLog "/var/log/httpd/dummy-host2.example.com-access_log" common
  38. #</VirtualHost>
  39.  
  40.  
  41. #wikipedia.org
  42. <VirtualHost en.wikipedia.org:80>
  43. ServerAdmin webmaster@en.wikipedia.org
  44. DocumentRoot "/srv/httpd/htdocs"
  45. ServerName en.wikipedia.org
  46. RewriteEngine on
  47. RedirectMatch "^/wiki/(.*)" "http://en.wikipedia.org:8000/wikipedia_en_all_2016-12/A/$1.html"
  48. RewriteRule ^(.*)\s(.*)$ $1_$2 [R]
  49. ErrorLog "/var/log/httpd/en.wikipedia.org-error_log"
  50. CustomLog "/var/log/httpd/en.wikipedia.org-access_log" common
  51. </VirtualHost>
  52.  
  53. <VirtualHost en.wikipedia.org:443>
  54. ServerAdmin webmaster@en.wikipedia.org
  55. DocumentRoot "/srv/httpd/htdocs"
  56. ServerName en.wikipedia.org
  57. RewriteEngine on
  58. RedirectMatch "^/wiki/(.*)" "http://en.wikipedia.org:8000/wikipedia_en_all_2016-12/A/$1.html"
  59. RewriteRule ^(.*)\s(.*)$ $1_$2 [R]
  60. SSLEngine on
  61. SSLCertificateFile "/etc/httpd/server.crt"
  62. SSLCertificateKeyFile "/etc/httpd/server.key"
  63. ErrorLog "/var/log/httpd/en.wikipedia.org-error_log"
  64. CustomLog "/var/log/httpd/en.wikipedia.org-access_log" common
  65. </VirtualHost>
  66.  
  67.  
  68.  
  69. #en.wiktionary.org
  70. <VirtualHost en.wiktionary.org:80>
  71. ServerAdmin webmaster@wiktionary.org
  72. DocumentRoot "/srv/httpd/htdocs"
  73. ServerName en.wiktionary.org
  74. RewriteEngine on
  75. #Redirect permanent / https://en.wiktionary.org/
  76. RedirectMatch "^/wiki/(.*)" "http://en.wiktionary.org:8000/wiktionary_en_all_2016-11/A/$1.html"
  77. RewriteRule ^(.*)\s(.*)$ $1_$2 [R]
  78. ErrorLog "/var/log/httpd/en.wiktionary.org-error_log"
  79. CustomLog "/var/log/httpd/en.wiktionary.org-access_log" common
  80. </VirtualHost>
  81.  
  82. <VirtualHost en.wiktionary.org:443>
  83. ServerAdmin webmaster@wiktionary.org
  84. DocumentRoot "/srv/httpd/htdocs"
  85. ServerName en.wiktionary.org
  86. RewriteEngine on
  87. RedirectMatch "^/wiki/(.*)" "http://en.wiktionary.org:8000/wiktionary_en_all_2016-11/A/$1.html"
  88. RewriteRule ^(.*)\s(.*)$ $1_$2 [R]
  89. SSLEngine on
  90. SSLCertificateFile "/etc/httpd/server.crt"
  91. SSLCertificateKeyFile "/etc/httpd/server.key"
  92. ErrorLog "/var/log/httpd/en.wiktionary.org-error_log"
  93. CustomLog "/var/log/httpd/en.wiktionary.org-access_log" common
  94. </VirtualHost>
  95.  
  96. <VirtualHost en.wikibooks.org:80>
  97. ServerAdmin webmaster@wikibooks.org
  98. DocumentRoot "/srv/httpd/htdocs"
  99. ServerName en.wikibooks.org
  100. RewriteEngine on
  101. #Redirect permanent / https://en.wikibooks.org/
  102. RedirectMatch "^/wiki/(.*)" "http://en.wikibooks.org:8000/wikibooks_en_all_2016-12/A/$1.html"
  103. RewriteRule ^(.*)\s(.*)$ $1_$2 [R]
  104. ErrorLog "/var/log/httpd/en.wikibooks.org-error_log"
  105. CustomLog "/var/log/httpd/en.wikibooks.org-access_log" common
  106. </VirtualHost>
  107.  
  108.  
  109. <VirtualHost en.wikibooks.org:443>
  110. ServerAdmin webmaster@wikibooks.org
  111. DocumentRoot "/srv/httpd/htdocs"
  112. ServerName en.wikibooks.org
  113. RewriteEngine on
  114. #Redirect permanent / https://en.wikibooks.org/
  115. RedirectMatch "^/wiki/(.*)" "http://en.wikibooks.org:8000/wikibooks_en_all_2016-12/A/$1.html"
  116. RewriteRule ^(.*)\s(.*)$ $1_$2 [R]
  117. SSLEngine on
  118. SSLCertificateFile "/etc/httpd/server.crt"
  119. SSLCertificateKeyFile "/etc/httpd/server.key"
  120. ErrorLog "/var/log/httpd/en.wikibooks.org-error_log"
  121. CustomLog "/var/log/httpd/en.wikibooks.org-access_log" common
  122. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement