Sunday, 15 April 2012

php - Vagrant & Nginx - Name Based Virtual Hosts -



php - Vagrant & Nginx - Name Based Virtual Hosts -

i believe have set nginx virtual host file correctly, however, i'm not able navigate url on host machine. have slight feeling i'm misunderstanding here.

here's situation. have vagrantfile following:

installation of required packages composer update copies nginx virtual host file on nginx restarts relevant services

heres vhost file:

server { hear 80; server_name vagrant; root /usr/share/nginx/www; index index.html index.htm index.php; location / { try_files $uri /index.php; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; } }

i can verify when virtual host file called vagrant , server name set next server_name _; page rendered when visited localhost.

as i'm trying set magento, doesn't work localhost domains, i'm trying set name based virtual host under domain dev.magento.co.uk

if ssh vagrant installation, can verify dev.magento.co.uk file in /etc/nginx/site-enabled directory , it's contents copied on correctly.

what missing?

php nginx vagrant

No comments:

Post a Comment