Answer the question
In order to leave comments, you need to log in
Error with domain name in ubuntu hosts file and nginx?
Hello!
Interested in the question: why can not create a domain name app for 127.0.0.1 ?
In ubuntu file /etc/hosts I added the following line 127.0.0.1 app
In nginx config file I added the following:
server {
listen 127.0.0.1:80;
server_name app;
root /var/www/app;
index index.html index.htm index.php;
location ~ \.php$ {
include fastcgi_params;
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question