centos7 - Nginx configuration on Centos -


i have purchased new vps weloveservers provider . vps operating system centos 7 . allocated ip 192.3.108.207 . have installed nginx using ssh . need show on ip address . how can point ip specific folder .. current configuration nginx follows ,

user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid;  events {   worker_connections 1024; }  http {  access_log  /var/log/nginx/access.log  main;  sendfile            on; tcp_nopush          on; tcp_nodelay         on; keepalive_timeout   65; types_hash_max_size 2048;  include             /etc/nginx/mime.types; default_type        application/octet-stream;  # load modular configuration files /etc/nginx/conf.d directory. # see http://nginx.org/en/docs/ngx_core_module.html#include # more information. include /etc/nginx/conf.d/*.conf; 

}

here virtual.conf

server {     listen       80;     server_name  192.3.108.207;     root   /var/www;     #charset koi8-r;    #access_log  /var/log/nginx/log/host.access.log  main;     location / {       root   /var/www;       index  index.php index.html index.htm;       try_files $uri $uri/ /index.php?$args;   }   } 

you can specify particular folder in virtual.conf. have mentioned in virtual.conf root /var/www;

instead of /var/www; , can give folder name , restart nginx service.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -