I just stumbled upon this problem when setting up strollers.
In my logs, I found that the problem was with fcgi, so I noticed this line in the vhost file created by vagrant:
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www//$1
change it to:
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/awesome/$1
he should work now. Now the problem is that you have to edit it every time you use vagrant up
I also have a solution for this, maybe not the best solution, but it works, and I will use it if someone does not find a better solution.
change the vhosts section in config.yaml to something like this:
vhosts: [your hash] server_name: awesome.dev server_aliases: - www.awesome.dev docroot: /var/www/ port: '80' setenv: - 'APP_ENV dev' directories: provider: directory path: /var/www/awesome/ allow_override: - All options: - Indexes - FollowSymLinks - MultiViews engine: php custom_fragment: '' ssl: '0' ssl_cert: '' ssl_key: '' ssl_chain: '' ssl_certs_dir: ''
In the folder with your parents, find this file: puppet/modules/puphpet/templates/apache/custom_fragments.erb and change its contents to:
<%= @vhost['custom_fragment'] %> <% if !@require _mod_php %> <% if @vhost.has_key?('engine') %> <% if @vhost['engine'] == 'php' %> <% if @vhost.has_key?('directories') %> <% if @vhost['directories'].has_key?('path') %> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://<%= @fcgi_string %><%= @vhost['directories']['path'] %>$1 <% else %> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://<%= @fcgi_string %><%= @vhost['docroot'] %>/$1 <% end %> <% else %> ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://<%= @fcgi_string %><%= @vhost['docroot'] %>/$1 <% end %> <% end %> <% end %> <% end %>
Then I did vagrant destroy and vagrant up , and it worked.
source share