PageRenderTime 25ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/silverlining/commands/php-devel-server.conf.tmpl

https://bitbucket.org/ianb/silverlining/
Go Template | 119 lines | 91 code | 28 blank | 0 comment | 0 complexity | 3f836088dee67732dc7329527cff97de MD5 | raw file
Possible License(s): GPL-2.0
  1. LockFile {{tempdir}}/apache.lock
  2. PidFile {{apache_pid_file}}
  3. Timeout 600
  4. KeepAlive Off
  5. <IfModule mpm_prefork_module>
  6. StartServers 1
  7. MinSpareServers 1
  8. MaxSpareServers 1
  9. MaxClients 10
  10. MaxRequestsPerChild 0
  11. </IfModule>
  12. <IfModule mpm_worker_module>
  13. StartServers 1
  14. MinSpareThreads 25
  15. MaxSpareThreads 75
  16. ThreadLimit 64
  17. ThreadsPerChild 25
  18. MaxClients 150
  19. MaxRequestsPerChild 0
  20. </IfModule>
  21. AccessFileName .htaccess
  22. <Files ~ "^\.ht">
  23. Order allow,deny
  24. Deny from all
  25. </Files>
  26. DefaultType text/plain
  27. HostnameLookups Off
  28. ErrorLog {{tempdir}}/error.log
  29. LogLevel info
  30. ## FIXME: Figure out where to look for these?
  31. # Include module configuration:
  32. {{for inc in includes}}
  33. Include {{inc}}
  34. {{endfor}}
  35. ## FIXME: How to load and conf mod_rewrite, etc?
  36. ## FIXME: do we need this?
  37. #NameVirtualHost *:8080
  38. ServerName localhost
  39. Listen 8080
  40. <VirtualHost 127.0.0.1:8080>
  41. ServerAdmin webmaster@localhost
  42. <Directory />
  43. Options FollowSymLinks
  44. AllowOverride None
  45. </Directory>
  46. <Directory ./>
  47. Options Indexes FollowSymLinks MultiViews
  48. AllowOverride None
  49. Order allow,deny
  50. allow from all
  51. </Directory>
  52. <LocationMatch />
  53. # Insert filter
  54. SetOutputFilter DEFLATE
  55. # Netscape 4.x has some problems...
  56. BrowserMatch ^Mozilla/4 gzip-only-text/html
  57. # Netscape 4.06-4.08 have some more problems
  58. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  59. # MSIE masquerades as Netscape, but it is fine
  60. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  61. # Don't compress images
  62. SetEnvIfNoCase Request_URI \
  63. \.(?:gif|jpe?g|png)$ no-gzip dont-vary
  64. # Make sure proxies don't deliver the wrong content
  65. #Header append Vary User-Agent env=!dont-vary
  66. </LocationMatch>
  67. LogFormat "%{SILVER_FORWARDED}e %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{HTTP_HOST}e \"%{SILVER_APP_NAME}e\" %D" wsgi_combined
  68. CustomLog {{tempdir}}/access.log wsgi_combined
  69. ## Python/WSGI setup:
  70. RewriteEngine on
  71. ## Uncomment if you want to understand what is happening here:
  72. #RewriteLog {{tempdir}}/rewrite.log
  73. #RewriteLogLevel 5
  74. RewriteCond %{HTTP_HOST} ^([^:]*)
  75. RewriteRule . - [E=SILVER_HOSTNAME:%1]
  76. RewriteRule . - [E=SILVER_INSTANCE_DIR:{{silver_instance_dir}}]
  77. RewriteRule . - [E=SILVER_SECRET_FILE:{{silver_secret_file}}]
  78. RewriteRule . - [E=SILVER_ENV_VARS:{{silver_env_vars}}]
  79. RewriteRule . - [E=SILVER_FUNCS:{{silver_funcs}}]
  80. {{for prefix in path_prefixes}}
  81. RewriteCond {{prefix}}%{REQUEST_URI} -f
  82. RewriteRule (.*/)index.html $1 [L,R=permanent]
  83. RewriteCond {{prefix}}%{REQUEST_URI} -d
  84. RewriteCond %{REQUEST_URI} [^/]$
  85. RewriteCond {{prefix}}%{REQUEST_URI}/index.html -f
  86. RewriteRule (.*) $1/ [L,R=permanent]
  87. RewriteCond {{prefix}}%{REQUEST_URI} -f
  88. RewriteRule !\.php$ {{prefix}}%{REQUEST_URI} [L]
  89. {{endfor}}
  90. RewriteRule . {{mgr_scripts}}/master-runner.php [L]
  91. </VirtualHost>