Questions tagged [winginx]

Winginx is a local web-server specially for nginx users, it also serves PHP5, MySQL, MongoDB, NodeJS developers.

46 questions
5
votes
2 answers

How can I redirect non-www to www in https NGINX

I have a question related with Nginx redirects Bellow you can see configurations. My goal is to redirect from https://example.com to https://www.example.com I looked through almost all in stackoverflow and I didn't find any help. Please help me with…
Min MIna
  • 51
  • 1
  • 5
5
votes
0 answers

Adding a prefix to the location in nginx

I want to add a location with a prefix so that my app works similar to the one without slash, eg: server_name mydomain.com location /{ proxy_pass http://127.0.0.1:8000; } with the above config, the app is working, but I have multiple apps to be…
IAmHomes
  • 513
  • 2
  • 11
  • 20
3
votes
2 answers

Unable to map upstream with folder in nginx server

I want to map our system port 82 with 127.0.0.1:8080/runningSite and I am gettting exception with nginx config. upstream dev { server 127.0.0.1:8080/runningSite; } server { rewrite_log on; listen [::]:81; server_name localhost; …
Charnjeet Singh
  • 3,056
  • 6
  • 35
  • 65
2
votes
1 answer

Curl Timeout in PHP (Works fine in CLI)

I'm experiencing an issue where I'm running two websites locally on my Windows machine (a.ryan and b.ryan). The issue I'm experiencing does not happen on the live environment (running CentOS7). A script in b.ryan makes a CURL request to a.ryan: *…
Ryan
  • 3,552
  • 1
  • 22
  • 39
2
votes
1 answer

nginx with iis server, load balancing

**NGINX LOad Balancing** Am trying to load balance my servers hosted in IIS using nginx. If i shut down one of the app pool, nginx should stop sending requests to that server. But what I am seeing nginx will keep sending requests to both…
Jitin
  • 41
  • 4
2
votes
1 answer

How to configure NGINX server which download any files in derectory

I am trying to configure NGINX server on Linux which downloads any files from the directory. But the problem I am facing is when the file is a text file or the file name contains any special character like spaces and ( "()"#"&" ) then the browser…
Akki
  • 557
  • 3
  • 7
  • 16
2
votes
1 answer

How to add postfix url with proxy_pass nginx server

I am new to nginx server. I have want to send my request of http://localhost:81/app/get/all to http://localhost:9000/abc/get/all I have using location regex. But it not working can any one help me. I have add server as: upstream dev { …
Charnjeet Singh
  • 3,056
  • 6
  • 35
  • 65
2
votes
0 answers

nginx's php-cgi closing/crashing due to ajax calls

I have just set up nginx on my website and when ever visitors are visiting the php-cgi.exe and the website is becoming very slow, and I am unsure if it is loading at all. nginx.exe is still running as a service from what I can see. Below is my error…
Josh Hallow
  • 359
  • 3
  • 15
2
votes
0 answers

How to write nginx config file to allow 3 languages switching.

From this example, it explains the way to write nginx config to switch the language between DE and EN. using Modx as CMS. However, I have 3 languages which are EN/DA/TH. Please guide me to the right approach of writing nginx config to change between…
mangajin
  • 23
  • 2
2
votes
1 answer

location rewrite for multiple domains

I am working on multiple projects so I have multiple domains : 1. domain1 2. domani2 how to rewrite for example domain1/user to domain1/?page=user, domain2/user to domain2/clientArea/userMain Now I am using : location /user { rewrite…
John
  • 7,500
  • 16
  • 62
  • 95
1
vote
1 answer

How to add composer to winginx?

How to add composer to winginx on windows 10? when i try to load install for composer from winginx php71 folder it does throw an error PHP Warning: Module 'zip' already loaded in Unknown on line 0 I did tried to install composer being in php71…
1
vote
0 answers

Memcached automatically stops in the winginx panel

I just simply installed winginx on my windows 10 and memcached couldn't start(Stopped at wingginx panel) , i didn't change anything how do i fix that
Mwthreex
  • 913
  • 1
  • 11
  • 24
1
vote
1 answer

NGINX resolving a non configured domain, why?

I have one server running on: http://localhost:8080 I'm configuring a sample NGINX server. I copied from internet the following configuration: # user nobody; worker_processes 1; error_log logs/error.log; error_log logs/error.log …
davidesp
  • 3,743
  • 10
  • 39
  • 77
1
vote
0 answers

Want to load same name file from Folder nginx server

I am new to nginx server. I want to load same name file from folder. Suppose: I have file system as: folder/xyz/xyz.html I am want to access xyz.html file using this url: http://localhost:84/xyz using nginx server. I have created the configuration…
Charnjeet Singh
  • 3,056
  • 6
  • 35
  • 65
1
vote
2 answers

How to upload files to gridfs lua module through nginx server, And which module should i use

I am trying to use nginx for serving static contents(images/css etc.) I need to span up multiple instances of nginx to support as per the incoming load. So i am looking for Mongo+gridfs solution to store the static files- since it provides…
Sumant Das
  • 19
  • 6
1
2 3 4