apache.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ##
  2. ## apache.conf -- Apache Custom Configuration
  3. ##
  4. # include Apache default/base configuration
  5. Include "@l_prefix@/etc/apache/apache.base"
  6. Listen 127.0.0.1:80
  7. NameVirtualHost 127.0.0.1:80
  8. <IfModule mod_ssl.c>
  9. Listen 127.0.0.1:443
  10. </IfModule>
  11. <VirtualHost 127.0.0.1:80>
  12. ServerName @l_hostname@.@l_domainname@
  13. ServerAlias localhost.@l_domainname@
  14. ServerAdmin root@localhost.@l_domainname@
  15. ServerSignature on
  16. DocumentRoot @l_prefix@/share/apache/htdocs
  17. <Directory @l_prefix@/share/apache/htdocs>
  18. Options Indexes FollowSymLinks MultiViews
  19. AllowOverride none
  20. Order allow,deny
  21. Allow from all
  22. </Directory>
  23. ScriptAlias /cgi-bin @l_prefix@/cgi
  24. <Directory @l_prefix@/cgi>
  25. Options Indexes FollowSymLinks MultiViews ExecCGI
  26. AllowOverride None
  27. Order allow,deny
  28. Allow from all
  29. </Directory>
  30. </VirtualHost>
  31. <IfModule mod_ssl.c>
  32. <VirtualHost 127.0.0.1:443>
  33. ServerName @l_hostname@.@l_domainname@
  34. ServerAlias localhost.@l_domainname@
  35. ServerAdmin root@localhost.@l_domainname@
  36. ServerSignature on
  37. DocumentRoot @l_prefix@/share/apache/htdocs
  38. <Directory @l_prefix@/share/apache/htdocs>
  39. Options Indexes FollowSymLinks MultiViews
  40. AllowOverride none
  41. Order allow,deny
  42. Allow from all
  43. </Directory>
  44. ScriptAlias /cgi-bin @l_prefix@/cgi
  45. <Directory @l_prefix@/cgi>
  46. Options Indexes FollowSymLinks MultiViews ExecCGI
  47. AllowOverride None
  48. Order allow,deny
  49. Allow from all
  50. </Directory>
  51. SSLEngine on
  52. SSLCertificateFile @l_prefix@/etc/apache/ssl.crt/snakeoil-rsa.crt
  53. SSLCertificateKeyFile @l_prefix@/etc/apache/ssl.key/snakeoil-rsa.key
  54. SSLCertificateFile @l_prefix@/etc/apache/ssl.crt/snakeoil-dsa.crt
  55. SSLCertificateKeyFile @l_prefix@/etc/apache/ssl.key/snakeoil-dsa.key
  56. </VirtualHost>
  57. </IfModule>