php.conf.erb 893 B

12345678910111213141516171819202122232425262728293031323334
  1. <VirtualHost *:8080>
  2. ServerName <%= @params['server_name'] %>
  3. ServerAlias <% @params['server_aliases'].each do |a| %><%= "#{a}" %> <% end %>
  4. DocumentRoot <%= @params['docroot'] %>
  5. RewriteEngine On
  6. <Directory <%= @params['docroot'] %>>
  7. Options FollowSymLinks
  8. AllowOverride None
  9. Order allow,deny
  10. Allow from all
  11. </Directory>
  12. <Directory />
  13. Options FollowSymLinks
  14. AllowOverride None
  15. </Directory>
  16. <Location /server-status>
  17. SetHandler server-status
  18. Order Deny,Allow
  19. Deny from all
  20. Allow from 127.0.0.1
  21. </Location>
  22. LogLevel info
  23. ErrorLog <%= node['apache']['log_dir'] %>/<%= @params['name'] %>-error.log
  24. CustomLog <%= node['apache']['log_dir'] %>/<%= @params['name'] %>-access.log combined
  25. RewriteEngine On
  26. RewriteLog <%= node['apache']['log_dir'] %>/<%= @application_name %>-rewrite.log
  27. RewriteLogLevel 0
  28. </VirtualHost>