Any other feasibility to achieve restart of Nginx from user other than root?by smsmaddy1981 - Nginx Mailing List - English
Hi Lukas, Any other reference on the user directive usage please? Best Regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
@Daniel, You were true on the side-note, sudo prefixed command for NGinx actions will cause an serious threat. I missed the note... @Andrew also stated "In Linux (and most other Unix based systems) ports below 1024 need to be opened using the root user. So you need to start NGINX as root which will open the port and then drop down to an unprivileged user for the port." Is thereby smsmaddy1981 - Nginx Mailing List - English
Thanks Andrew, Daniel... I am able to restart NGinx as gvp user now with the suggested command: sudo ./nginx sudo ./nginx -s stop sudo ./nginx -s reload Thanks for supporting here.by smsmaddy1981 - Nginx Mailing List - English
Hi Lukas, as below: ./nginx nginx: bind() to 0.0.0.0:80 failed (13: Permission denied) Best regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Requirement is to start NGinx other than root user 1) Added entry tp /etc/sudoers for specific user as below: gvp ALL=(ALL) NOPASSWD: ALL 2) Tried starting NGinx as gvp user, below error thrown: nginx: bind() to 0.0.0.0:80 failed (13: Permission denied) 3) Some blog says: https://www.ruby-forum.com/topic/201522 you have to start it as root, users don't have privs to open ports beby smsmaddy1981 - Nginx Mailing List - English
Hi Steve, Thanks for your email. And, Is the same solution what I have described in my initiated email. No luck there. Any other suggestions please?by smsmaddy1981 - Nginx Mailing List - English
Hi Team, root user is must for NGinx restart? Everytime of restart, prompts for root user than other users. PID's are not getting killed...for the running process with project users. I tried solution of adding entry to Sudoers file with an path of executable script. No luck. Following are the changes made /ectc/sudoers %gvp ALL=NOPASSWD: /var/gvp/Nginx/bin/restartNginx #To get rid of Nginby smsmaddy1981 - Nginx Mailing List - English
Hi, Is there any possibility to broadcast the request to all servers configured in upstream pls.? Best regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi Francis, One more observation pls. This WORKS in reading static content from remote server location ^~/wkspace/ { proxy_pass http://citwkspace; } This DOESN'T WORK? in reading static content from remote server location ^~/wkspace/agentLogin/ { proxy_pass http://citwkspace; } Best regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi Francis, There were some HW upgrades because of which I was halted to make anymore trials. Today, I am revoked the access to continue my investigation and with your recent suggestion/tip...I am able to access the static content. Cheers and very kind for your quick support. Best regards, smsmaddyby smsmaddy1981 - Nginx Mailing List - English
Hi Francis Thanks for your quick support, I will revert with my observations. Regards. Maddyby smsmaddy1981 - Nginx Mailing List - English
"/content/img.jpg" is sepcific to an application and which is deployed on "ser02". Whenenver an web request is made accessing the application (deployed on ser02)...through upstream configuration...the service responds reaching ser02...but static files (/content/img.jpg) are not rendered. The access_log shows the file is trying to look on ser01 (Nginx is installed) (You caby smsmaddy1981 - Nginx Mailing List - English
Answer below pls: Nginx is on "ser01" file is on "ser02" //Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi Francis, Yes, the file/s are located. Verified with all servers. Best regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi Francis., I have updated my old request http://forum.nginx.org/read.php?2,259786,260695#msg-260695 Awaiting for your response pls. Best regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi Francis, I tried possible options suggested proxy_pass, fastcgi_pass...and was unsuccessful This query was posted in another request http://forum.nginx.org/read.php?2,260231,260232#msg-260232 and you are smart to redirect me back to this earlier request. I would like to detail more on my question pls., I have plenty of 5 different services deployed on different 5 servers. I have NGINXby smsmaddy1981 - Nginx Mailing List - English
What is the best way to perform health check of Nginx server? Backup Nginx server is recommended, in case of risks with Primary Nginx server?by smsmaddy1981 - Nginx Mailing List - English
Hi Team, I am configured to use nginx_status and I can see the expected result on the browser Now, the query is: the /nginx_status configuration is done on the server block. Is this required to be repeated for every server block exists in the nginx.conf file? Or any feasibility to set globally for all the servers. Pls. update Regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi, ISSUE: Static content is not loaded from remote server where application is deployed, rather it is reading from the server where NGinx is installed. ------------------------------------------------------- Nginx-1.8.0 is installed (on the server nginx.corp.stel.no) Proxy pass to another server (workspace.corp.stel.no) for an webrequest Below configurations made: server {by smsmaddy1981 - Nginx Mailing List - English
Hi Mike Thanks for your quick reply... To answer your questions: - Upstream servers yes (where applications are deployed). And, not NGinx installations. - I tried accessing the static content on other servers, that isn't working... I tried using root, rewrite,.. directives. Is it possible to share an code snippet to achieve this use case pls.? Regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi Mike Thanks for your reply I did not understand your suggestion. Can you please elaborate with an example Regards, Maddyby smsmaddy1981 - Nginx Mailing List - English
Hi, I have NGinx 1.8.0 installed successfully and configured NGinx... with upstream servers provided. NGinx and Services are deployed on separate machines. Now, when an request is made via NGinx, the service is invoked resulting in UI with no static content loaded. I have tried root, rewrite directives... to specify the static content path on another server (workspace.corp.test.no), which didnby smsmaddy1981 - Nginx Mailing List - English
I have installed 1.8.0 and configure is successful and no PCRE exceptions are thrown now. But, I face issues in loading static content available on different servers. How to achieve this, pls. suggest?by smsmaddy1981 - Nginx Mailing List - English
Hi Team, I have static content available on the remote server (say NODE 02) and PATH: ../livetest/WEB-INF/static/classes/ under which I have /image, /js, /styles folders I have installed nginx-1.8.0 on server (Say Node 01). While accessing the application, the static contents are not getting loaded. Pls. suggest? I tried below option: location ~*\.(js|jpg|png|css)$ {by smsmaddy1981 - Nginx Mailing List - English
Hi Experts, I am working on NGINX-1.6.3 version. Installation is successful using latest pcre, pcre-devel packages too.. While accessing the service, static contents were not loaded. As suggested in google, I tried configuring as below where the static contents are available @ "http://livetests123/livetest/WEB-INF/classes/static/" server { listen 80; server_by smsmaddy1981 - Nginx Mailing List - English
Thanks everyone and sorry for the late reply here...due to OS upgrade from IT team. I tried using return directive to invoke the absolute URL and below case is true : -- if they are two different servers, then on the workspance one: location = / { return 301 http://workspace.corp.no/workspace/agentLogin; } This resulted in an error message during nginx restart "unknown directive retby smsmaddy1981 - Nginx Mailing List - English
Yes, the absolute URL http://workspace.corp.no/workspace/agentLogin works fine I just need to understand the configuration approach to redirect the URL request (http://workspance) to absolute url (http://workspace.corp.no/workspace/agentLogin)by smsmaddy1981 - Nginx Mailing List - English
Hi Francis Expectation is to redirect the request to the absolute URL (http://workspace.corp.no/workspace/agentLogin) when an end user access the request http://<workspace-dns-name> NGINX is installed on server Node-01 The content to be loaded (workspace-dns-name) is deployed on another server Node-02 Steps to achieve pls.? Best regards, Madhuby smsmaddy1981 - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |