Answer the question
In order to leave comments, you need to log in
Add another local nginx domain?
There is an nginx server on Ubuntu, there is a configuration file in the conf.d folder
server {
listen 80;
root /home/user/www;
access_log /home/user/logs/nginx.access.log; #расположение логов данного хоста
server_name user.org www.user.org;
location / {
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Answer the question
In order to leave comments, you need to log in
Here is an example symlink for default:
ln -s /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question