Facebook
From Idiotic Bongo, 9 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 267
  1. Listen 80
  2. Listen 8080
  3.  
  4. NameVirtualHost *:80
  5. NameVirtualHost *:8080
  6.  
  7. #http://example.com/
  8.  
  9. <VirtualHost *:80>
  10.         DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/strona1"
  11.         ServerName example.com
  12. </VirtualHost>
  13.  
  14. <VirtualHost *:80>
  15.         DocumentRoot "D:/Gr_14B/Strony_www/student"
  16.         ServerName www.student.pl
  17.         ServerAlias student.pl
  18. </VirtualHost>
  19.  
  20. <VirtualHost *:80>
  21.         DocumentRoot "D:/Gr_14B/Strony_www/wykladowca"
  22.         ServerName www.wykladowca.pl
  23.         ServerAlias wykladowca.pl
  24. </VirtualHost>
  25.  
  26. <VirtualHost *:8080>
  27.         DocumentRoot "D:/Gr_14B/Strony_www/student80"
  28.         ServerName www.student.pl
  29.         ServerAlias student.pl
  30. </VirtualHost>
  31.  
  32. <VirtualHost *:8080>
  33.         DocumentRoot "D:/Gr_14B/Strony_www/wykladowca80"
  34.         ServerName www.wykladowca.pl
  35.         ServerAlias wykladowca.pl
  36. </VirtualHost>
  37.  
  38. <VirtualHost *:80>
  39.         DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/phpmyadmin"
  40.         ServerName www.phpmyadmin
  41. </VirtualHost>
  42.  
  43. <Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi-bin">
  44.     AllowOverride None
  45.     Options None
  46.     Order allow,deny
  47.     Allow from all
  48. </Directory>
  49.  
  50. <Directory "D:/Gr_14B/Strony_www/student">
  51.     AllowOverride None
  52.     Options None
  53.     Order allow,deny
  54.     Allow from all
  55. </Directory>
  56.  
  57. <Directory "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/phpmyadmin">
  58.     AllowOverride None
  59.         Order deny,allow
  60.         Deny from all
  61.         Allow from 127.0.0.1
  62. </Directory>
  63.  
  64. <Directory "D:/Gr_14B/Strony_www/wykladowca">
  65.     AllowOverride All
  66.     Options None
  67.     Order allow,deny
  68.     Allow from all
  69. </Directory>
  70.  
  71.     DirectoryIndex start.html
  72.        
  73. AuthName "Podaj haslo"
  74. AuthType Basic
  75. AuthUserFile "C:/Program Files (x86)/Apache Software Foundation/.htpasswd"
  76. Order allow,deny
  77. Allow from all
  78. Require valid-user
  79.  
  80. .htaccess