symfony2-vagrant icon indicating copy to clipboard operation
symfony2-vagrant copied to clipboard

Change Default location

Open essteffan opened this issue 9 years ago • 4 comments

I have this message when i try to access 33.33.33.100 "File not found".

I need to change de default location to /media/sf_www where is symfony located . Could you please advice how to change default folder?

Thank you

essteffan avatar Mar 26 '15 14:03 essteffan

You can change default location in nginx configuration file files/nginx/default

root /vagrant/www/web;
##change to
root /media/sf_www;

irmantas avatar Mar 26 '15 17:03 irmantas

Hy. I've tried in /etc/nginx/sites-enabled/default but i get "403 Forbidden" Do you have any ideea why?

essteffan avatar Mar 26 '15 17:03 essteffan

I've rebuild virtual machine and change the path like you said and i get the same error "File not found".

Here is a printscreen: http://screencast.com/t/XxMrgN67M

essteffan avatar Mar 26 '15 19:03 essteffan

I come back with same problem. I reinstall today all and when i acces 33.33.33.100 i get an "File not found."

When i view /var/log/nginx/error.log i have this error.

[error] 3435#0: *18 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 33.33.33.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix://var/run/php5-fpm.sock:", host: "33.33.33.100"

This is my default file http://pastebin.com/8f1tSAXn

essteffan avatar Apr 10 '15 12:04 essteffan