Comments (6)
Check the nginx and Unit logs to see where that 503
is coming from.
Your nginx configuration is confusing and ambiguous, with root
and location /
in the server{}
block. How does nginx know which URIs to serve locally, and which ones to proxy to Unit?
I'd recommend to keep nginx as the HTTP/2 front-end and have Unit take care of all the Wordpress parts. Remove the root
directive and follow https://unit.nginx.org/howto/wordpress/
from unit.
thanks for the info, Unit docs doesn't say much about nginx configuration settings and I don't know much about configuring that.
from unit.
Then get it working with Unit and then add NGINX in front for the jobs you need it to do. Unit has no dependency on NGINX and other reverse proxies are available :)
from unit.
ok, are the settings on this script wrong? https://gist.github.com/nginx-gists/bdc7da70b124c4f3e472970c7826cccc
the current configs does not seem to be working
from unit.
sorry for the bother, I got half of it working, how do I get my unit php server listening on 127.0.0.1:8080 to stream content to nginx via reverse proxy?
currently, nginx is showing the www/html/default.html page
my root is: "root": "var/www/mywebsite.org"
/conf.d/default.conf
server {
listen 80;
server_name example.com;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name example.com;
# SSL configuration
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/certificate.key;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
from unit.
I already linked to the official Unit documentation for Wordpress. As you have already engaged 3 different members of the Unit team here and in the Gist comments, I will convert this issue to a discussion and encourage you to use that as the preferred channel for assistance.
from unit.
Related Issues (20)
- Badge colors don't match NGINX colors
- nginx unit php server stops responding when using supervisor HOT 2
- BUG: Environment Variables not passed to Wasm Applications HOT 4
- Error: Cannot find module 'unit-http/loader' HOT 3
- Error 503, PHP HOT 8
- [Feature Request] Basic Authentication for Control Socket HOT 3
- CLI: subcommand for saving configuration HOT 3
- CLI: deploy configuration to many instances HOT 3
- CLI: SSH Support HOT 4
- Unit is not compiled with php, njs and wasm-wasi-component HOT 5
- Node.js: Unable to run due to Server this.on is not a function HOT 4
- "Waiting for Server Response" time consistently different depending on POST DATA Length? HOT 9
- http2 on; doesnt work as expected HOT 2
- RHEL Packages: GPG check fails when explicitly enabled HOT 9
- Query control API to show the loaded modules HOT 9
- Change server name header HOT 1
- Add error code and error message as variables at error page HOT 1
- Docker: for python based images, use the -slim version HOT 13
- Building Containers for amd64 on ARM instances fails HOT 5
- Crypto HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unit.