Cannot figure out why nginx continues to redirect to the Welcome to nginx page. I am trying to install and run an open source app (question2 answer). Just trying to get it to run locally in my VM first.
I am on a vagrant vm machine. Ubuntu running 16.04. I edited my /etc/hosts files in my local machine to match those in my vagrant box. Ive tried different tutorials as well as SO but still redirecting to welcome page
This is my server file
server {
#Nginx should listen on port 80 for requests to yoursite.com
listen 80;
listen [::]:80;
#Create access and error logs in /var/log/nginx
access_log /var/log/nginx/yoursite.access_log main;
error_log /var/log/nginx/yoursite.error_log info;
#Nginx should look in /var/www/q2a for website
root /var/www/q2a.org/q2a/;
#The homepage of your website is a file called index.php
index.php;
server_name local-q2a.org;
#Specifies that Nginx is looking for .php files
location ~ \.php$ {
#If a file isn’t found, 404
try_files $uri =404;
#Include Nginx’s fastcgi configuration
include /etc/nginx/fastcgi.conf;
#Look for the FastCGI Process Manager at this location
fastcgi_pass unix:/run/php/php7.1-fpm.sock;
fastcgi_param HTTP_X_FORWARDED_FOR
$http_x_forwarded_for;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
}
}
I am trying to get the app to run at least locally.