Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Default location #21

Open
essteffan opened this issue Mar 26, 2015 · 4 comments
Open

Change Default location #21

essteffan opened this issue Mar 26, 2015 · 4 comments

Comments

@essteffan
Copy link

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

@irmantas
Copy link
Owner

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

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

@essteffan
Copy link
Author

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

@essteffan
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants