Advertisement
akurczyk

vhosty

Jan 3rd, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. root@e00:/etc/apache2/sites-enabled# ls
  2. 000-default e00.eu vps-admin.eu
  3. root@e00:/etc/apache2/sites-enabled# cat 000-default
  4. <VirtualHost *:80>
  5. ServerAdmin webmaster@localhost
  6.  
  7. DocumentRoot /var/www
  8. <Directory />
  9. Options FollowSymLinks
  10. AllowOverride None
  11. </Directory>
  12. <Directory /var/www/>
  13. Options Indexes FollowSymLinks MultiViews
  14. AllowOverride None
  15. Order allow,deny
  16. allow from all
  17. </Directory>
  18.  
  19. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  20. <Directory "/usr/lib/cgi-bin">
  21. AllowOverride None
  22. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  23. Order allow,deny
  24. Allow from all
  25. </Directory>
  26.  
  27. ErrorLog ${APACHE_LOG_DIR}/error.log
  28.  
  29. # Possible values include: debug, info, notice, warn, error, crit,
  30. # alert, emerg.
  31. LogLevel warn
  32.  
  33. CustomLog ${APACHE_LOG_DIR}/access.log combined
  34. </VirtualHost>
  35. root@e00:/etc/apache2/sites-enabled# cat e00.eu
  36. <VirtualHost *:80>
  37. ServerAdmin [email protected]
  38. ServerName www.e00.eu
  39. ServerAlias e00.eu
  40.  
  41. DocumentRoot /home/e00.eu/htdocs
  42. <Directory />
  43. Options FollowSymLinks
  44. AllowOverride None
  45. </Directory>
  46. <Directory /home/e00.eu/htdocs>
  47. Options Indexes FollowSymLinks MultiViews
  48. AllowOverride None
  49. Order allow,deny
  50. allow from all
  51. </Directory>
  52.  
  53. ScriptAlias /cgi-bin/ /home/e00.eu/cgi-bin/
  54. <Directory "/home/e00.eu/cgi-bin">
  55. AllowOverride None
  56. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  57. Order allow,deny
  58. Allow from all
  59. </Directory>
  60.  
  61. ErrorLog /home/e00.eu/logs/error.log
  62.  
  63. # Possible values include: debug, info, notice, warn, error, crit,
  64. # alert, emerg.
  65. LogLevel warn
  66.  
  67. CustomLog /home/e00.eu/logs/access.log combined
  68. </VirtualHost>
  69. root@e00:/etc/apache2/sites-enabled# cat vps-admin.eu
  70. <VirtualHost *:80>
  71. ServerAdmin [email protected]
  72. ServerName www.vps-admin.eu
  73. ServerAlias vps-admin.eu
  74.  
  75. DocumentRoot /home/vps-admin.eu/htdocs
  76. <Directory />
  77. Options FollowSymLinks
  78. AllowOverride None
  79. </Directory>
  80. <Directory /home/vps-admin.eu/htdocs>
  81. Options Indexes FollowSymLinks MultiViews
  82. AllowOverride None
  83. Order allow,deny
  84. allow from all
  85. </Directory>
  86.  
  87. ScriptAlias /cgi-bin/ /home/vps-admin.eu/cgi-bin/
  88. <Directory "/home/vps-admin.eu/cgi-bin">
  89. AllowOverride None
  90. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  91. Order allow,deny
  92. Allow from all
  93. </Directory>
  94.  
  95. ErrorLog /home/vps-admin.eu/logs/error.log
  96.  
  97. # Possible values include: debug, info, notice, warn, error, crit,
  98. # alert, emerg.
  99. LogLevel warn
  100.  
  101. CustomLog /home/vps-admin.eu/logs/access.log combined
  102. </VirtualHost>
  103. root@e00:/etc/apache2/sites-enabled#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement