Advertisement
Guest User

Untitled

a guest
Mar 9th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.19 KB | None | 0 0
  1. root@server:/etc/apache2/conf.d# cat virtual.conf
  2. NameVirtualHost *:80
  3. <VirtualHost *:80>
  4. DocumentRoot /var/www/www.forgym.tk/
  5. ServerName www.forgym.tk
  6. ServerAlias forgym.tk *.forgym.tk
  7. </VirtualHost>
  8.  
  9. <VirtualHost *:80>
  10. DocumentRoot /var/www/www.somgeodet.tk/
  11. ServerName www.somgeodet.tk
  12. ServerAlias somgeodet.tk *.somgeodet.tk
  13. </VirtualHost>
  14.  
  15.  
  16.  
  17.  
  18. root@server:/etc/apache2# cat httpd.conf
  19. NameVirtualHost *:80
  20.  
  21.  <VirtualHost *:80>
  22.  ServerName www.forgym.tk
  23.  ServerAlias forgym.tk *.forgym.tk
  24.  DocumentRoot /var/www/www.forgym.tk
  25.  </VirtualHost>
  26.  
  27.  <VirtualHost *:80>
  28. ServerName www.somgeodet.tk
  29. ServerAlias somgeodet.tk *.somgeodet.tk
  30. DocumentRoot /var/www/www.somgeodet.tk
  31.  </VirtualHost>
  32.  
  33.  
  34.  
  35.  
  36.  
  37. root@server:/etc/apache2/sites-available# cat www.forgym.tk
  38. ServerAdmin email@example.com
  39. ServerName www.forgym.tk
  40. DocumentRoot /var/www/www.forgym.tk
  41. ErrorLog /var/logs/www.forgym.tk/logs/error.log
  42. CustomLog /var/logs/www.forgym.tk/logs/access.log combined
  43.  
  44. root@server:/etc/apache2/sites-available# cat www.somgeodet.tk
  45. ServerAdmin info@somgeodet.tk
  46. ServerName www.somgeodet.tk
  47. DocumentRoot /var/www/www.somgeodet.tk
  48. ErrorLog /var/logs/www.somgeodet.tk/error.log
  49. CustomLog /var/logs/www.somgeodet.tk/access.log combined
  50.  
  51.  
  52.  
  53.  
  54. root@server:/etc/apache2/sites-enabled# cat www.forgym.tk
  55. ServerAdmin email@example.com
  56. ServerName www.forgym.tk
  57. DocumentRoot /var/www/www.forgym.tk
  58. ErrorLog /var/logs/www.forgym.tk/logs/error.log
  59. CustomLog /var/logs/www.forgym.tk/logs/access.log combined
  60.  
  61. root@server:/etc/apache2/sites-enabled# cat www.somgeodet.tk
  62. ServerAdmin info@somgeodet.tk
  63. ServerName www.somgeodet.tk
  64. DocumentRoot /var/www/www.somgeodet.tk
  65. ErrorLog /var/logs/www.somgeodet.tk/error.log
  66. CustomLog /var/logs/www.somgeodet.tk/access.log combined
  67.  
  68.  
  69.  
  70.  
  71. root@server:/etc# cat hosts
  72. 127.0.0.1       localhost
  73. 127.0.1.1       server.provider.sk server
  74. 127.0.0.1       forgym.tk.localhost
  75. 127.0.0.1       somgeodet.tk.localhost
  76. 127.0.0.1       somgeodet.tk
  77. 127.0.0.1       forgym.tk
  78.  
  79. # The following lines are desirable for IPv6 capable hosts
  80. ::1     ip6-localhost ip6-loopback
  81. fe00::0 ip6-localnet
  82. ff00::0 ip6-mcastprefix
  83. ff02::1 ip6-allnodes
  84. ff02::2 ip6-allrouters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement