i configured nginx as a reverse proxy for my web server running on 8080. It is very basic configuration. Lets take a look at it.
server {
listen 80;
server_name geekinlinux.com
access_log /var/www/geekinlinux/log/nginx.access.log;
error_log /var/www/geekinlinux/log/nginx_error.log
location / { proxy_pass http://localhost:8080/subdomain/index; }
}
restart nginx and access your site to see if it is working properly or not.
Note: if you don't have a public ip/ you are behind ip, don't forget to mention public ip/domain name " server_name <Publicip/domainnam>"
gil ...
0 Comments