Comments (7)
Also, this is along the same lines. Would it not make more sense to use the default.conf
file from the copied src/
folder rather than the one relative to domman.sh
? That way if you want to change it then you're not mucking up the git repo.
from nginx-boilerplate.
BTW I solved the original issue with this bash script in my $PATH, which I called ngbp_create
:
#!/bin/bash
/usr/local/share/nginx-boilerplate/bin/domman.sh -c /etc/nginx/sites "$@"
But personally I'd sooner have /etc/nginx/sites
hardcoded as the default for $BPCONFPATH in domman.sh
. Happy to PR that if it helps.
from nginx-boilerplate.
Sorry, one more thing! Not related, but I didn't want to start a new issue in case it's just me being stupid. But I had to use the following in upstreams/php.conf
to get my php5-fpm working on Debian Wheezy using Dotdeb's repo:
upstream php
{
server unix:/var/run/php5-fpm.sock;
server 127.0.0.1:9000;
#ip_hash;
keepalive 16;
}
from nginx-boilerplate.
Hey, thanks for the feedback. The domman.sh
indeed needs work, since I haven't touched it for a long time and at some point even wondered what it does 😄. Initially, if I remember correctly, I used it only to manage the not-yet-installed nginx-boilerplate in a random directory, that's probably why it didn't work for /etc/nginx
. A decent sdk-like environment would be great, since to develop this config you don't need it installed, you just run it wherever it is. I'll make a note to create an install.sh
, thanks for the hint.
from nginx-boilerplate.
About the upstream settings - looks like you have your php-fpm set up listening on the socket, rather than tcp/ip.
Good thing to have both: one active and one commented out for easy switch. I'll make the change.
EDIT: I see you used the correct port 9000
. I remember changing mine to 9001
because 9000
was used for xdebug and I didn't want to tuch that, since it was always a pain for me to make xdebug work with netbeans. And it slipped into git, which it shouldn't have.
from nginx-boilerplate.
That makes sense that domman.sh
hasn't been updated in a while. The main thing after all is the fantastic modularised conf files :)
Glad I helped out with the php settings too.
from nginx-boilerplate.
OK, thanks :) I'll close this issue and open a new one as soon as I have it decently formulated.
from nginx-boilerplate.
Related Issues (20)
- 404 error HOT 2
- Force SSL HOT 1
- invalid parameter "if=$bot_ua" HOT 2
- "root" directive is duplicate HOT 5
- location php blocked run php in other locations HOT 1
- 504 Gateway Time-out HOT 1
- Снова проблема с настройкой. (нехватка знаний) HOT 1
- Consider tcp_nodelay on; HOT 3
- Hacked HOT 1
- Not indexing subdirectories. HOT 1
- Specify Minimum Nginx Version HOT 2
- ownCloud не работает с текущим php.conf HOT 4
- Nginx is starting, bug don't listen HOT 5
- "Primary script unknown" в логах при попытке открыть несуществующий документ. HOT 2
- Wiki HOT 3
- fastcgi_cache race conditions
- ALLOW standard request methods HOT 1
- Unknown Variable error HOT 4
- JavaScript content type HOT 3
- Include application/x-gzip
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 nginx-boilerplate.