Advertisement
Guest User

Untitled

a guest
Oct 7th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <Directory />
  2. Options FollowSymLinks
  3. AllowOverride None
  4. Require all denied
  5. </Directory>
  6.  
  7. <Directory /usr/share>
  8. AllowOverride None
  9. Require all granted
  10. </Directory>
  11.  
  12. <Directory /var/www/>
  13. Options +Indexes
  14. Options FollowSymLinks
  15. AllowOverride None
  16. Require all granted
  17. </Directory>
  18.  
  19.  
  20. <Directory /var/www/html/flashlight/>
  21. AllowOverride All
  22. </Directory>
  23.  
  24. <FilesMatch "^.ht">
  25. Require all denied
  26. </FilesMatch>
  27.  
  28. # Include generic snippets of statements
  29. IncludeOptional conf-enabled/*.conf
  30.  
  31. # Include the virtual host configurations:
  32. IncludeOptional sites-enabled/*.conf
  33.  
  34. <VirtualHost *:80>
  35. ServerName www.example.com
  36. ServerAdmin webmaster@localhost
  37. DocumentRoot /var/www/html
  38.  
  39. <Directory /var/www/>
  40. AuthName "Mon domaine"
  41. AuthType Basic
  42. AuthUserFile /etc/apache2/users.passwd
  43. Options +Indexes
  44. Options FollowSymLinks
  45. AllowOverride None
  46. Require valid-user
  47. </Directory>
  48. </VirtualHost>
  49.  
  50. <VirtualHost 127.0.0.2:80>
  51. ServerName myname.com
  52. ServerAlias www.myname.com
  53. DocumentRoot /var/www/html/myname
  54.  
  55. <Directory /var/www/html/myname>
  56. Options +Indexes +FollowSymLinks +MultiViews
  57. AllowOverride All
  58. Require all granted
  59. </Directory>
  60. </VirtualHost>
  61.  
  62. <VirtualHost 127.0.0.3:80>
  63. ServerName penguin.com
  64. ServerAlias www.penguin.com
  65. DocumentRoot /var/www/html/penguin
  66.  
  67. <Directory /var/www/html/penguin>
  68. Options +Indexes +FollowSymLinks +MultiViews
  69. AllowOverride All
  70. Require all granted
  71. </Directory>
  72. </VirtualHost>
  73.  
  74. 127.0.0.1 localhost
  75. 127.0.0.2 myname.com
  76. 127.0.0.3 penguin.com
  77.  
  78. VirtualHost configuration:
  79. 127.0.0.3:80 penguin.com (/etc/apache2/sites-enabled/penguin.conf:1)
  80. 127.0.0.2:80 myname.com (/etc/apache2/sites-enabled/myname.conf:1)
  81. *:80 www.example.com (/etc/apache2/sites-enabled/000-default.conf:1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement