The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Just came
Rating: 0
Joined: Feb 29, 2012
Company: 1VS

Could you please help us with nginx settings. We have edited nginx.config file according to documentation and everything works except we have to specify the site port number explicitly, i.e. put "http://may.1vs.vn:8080/" instead of "http://may.1vs.vn". What we need to change to make the link "http://may.1vs.vn" work? Please, find current nginx.config file attached

Edited: Tran Huy - Aug 18, 2014 06:47 PM
 
#2
People who like this: 0 Yes / 0 No
Active user
1C:Professional
Rating: 6
Joined: May 8, 2013
Company: 1C Company

This file contains two sections "location / {}" which most probably causes the issue:

Code
location / {
    root   html;
    index  index.html index.htm;
}

location /{
    proxy_pass http://may.1vs.vn:8080;
    proxy_set_header Host $host;
}

To fix it you need to delete the first "location /" section.

 
#3
People who like this: 0 Yes / 0 No
Just came
Rating: 0
Joined: Feb 29, 2012
Company: 1VS

Thank you!

I resolved the problem.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)