8 More Discussions You Might Find Interesting
1. Fedora
I've SSH installed a Python 3.5 application on CentOS along with uwsgi and nginx, but after doing a sudo vi /etc/nginx/nginx.conf to edit the nginx config file as per usual, the response is currently:
nginx: bind() to 0.0.0.0:80 failed (98: Address already in use)
these are the contents of... (0 Replies)
Discussion started by: dev5180
0 Replies
2. Solaris
Dear All
After powering on my Netra120 Solaris server and waiting for all of the installed processes to be started , when trying for login I am getting :
"can not open module /usr/lib/security/pam_authtok_get.so.1"
Can you please let me know what has happened to my server and how can I reach... (3 Replies)
Discussion started by: hadimotamedi
3 Replies
3. UNIX for Dummies Questions & Answers
Here is my issue:
I have two web servers hosting web services (Server A and Server B)
I'd like to configure NGINX to achieve load balancing.
Do I install NGINX on a third new server, or is it something that gets installed on Server A and Server B?
Please share some information.
... (0 Replies)
Discussion started by: ramky79
0 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
I installed NGINX and when i i go see the browser it says
welcome If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
is there any kind of document to configure that(i am completly new for this) (1 Reply)
Discussion started by: vikatakavi
1 Replies
5. Debian
I did a fresh install of nginx on a debian server.
When I check the version of nginx, it reports 0.7.67
However, the current stable version of Nginx is 1.0.5 from what I have read.
How can I update my Nginx whilst leaving my server operational?
I am a relative newb, so please do... (1 Reply)
Discussion started by: bugeye
1 Replies
6. Web Development
Could you help me to write nginx rewite rules for activecampaign at present they only have a apache rewrite rules which to be put in .htaccess
cat .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# KB
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}... (0 Replies)
Discussion started by: unimaxlin
0 Replies
7. Solaris
Hi,
I always receive the following intermittent error on the /var/adm/messages, can someone help me please on what to do and what to check for these errors to disappear? What can be the problem with my ftp? Please see details of solaris below. Thanks in advance!
SunOS 5.10 Generic_127111-08... (4 Replies)
Discussion started by: ayhanne
4 Replies
8. Linux
Hi all,
I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/.
I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies
SYSTEMD-SOCKET-PROXYD(8) systemd-socket-proxyd SYSTEMD-SOCKET-PROXYD(8)
NAME
systemd-socket-proxyd - Bidirectionally proxy local sockets to another (possibly remote) socket.
SYNOPSIS
systemd-socket-proxyd [OPTIONS...] HOST:PORT
systemd-socket-proxyd [OPTIONS...] UNIX-DOMAIN-SOCKET-PATH
DESCRIPTION
systemd-socket-proxyd is a generic socket-activated network socket forwarder proxy daemon for IPv4, IPv6 and UNIX stream sockets. It may be
used to bi-directionally forward traffic from a local listening socket to a local or remote destination socket.
One use of this tool is to provide socket activation support for services that do not natively support socket activation. On behalf of the
service to activate, the proxy inherits the socket from systemd, accepts each client connection, opens a connection to a configured server
for each client, and then bidirectionally forwards data between the two.
This utility's behavior is similar to socat(1). The main differences for systemd-socket-proxyd are support for socket activation with
"Accept=false" and an event-driven design that scales better with the number of connections.
OPTIONS
The following options are understood:
-h, --help
Print a short help text and exit.
--version
Print a short version string and exit.
--connections-max=, -c
Sets the maximum number of simultaneous connections, defaults to 256. If the limit of concurrent connections is reached further
connections will be refused.
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
EXAMPLES
Simple Example
Use two services with a dependency and no namespace isolation.
Example 1. proxy-to-nginx.socket
[Socket]
ListenStream=80
[Install]
WantedBy=sockets.target
Example 2. proxy-to-nginx.service
[Unit]
Requires=nginx.service
After=nginx.service
Requires=proxy-to-nginx.socket
After=proxy-to-nginx.socket
[Service]
ExecStart=/lib/systemd/systemd-socket-proxyd /tmp/nginx.sock
PrivateTmp=yes
PrivateNetwork=yes
Example 3. nginx.conf
[...]
server {
listen unix:/tmp/nginx.sock;
[...]
Example 4. Enabling the proxy
# systemctl enable --now proxy-to-nginx.socket
$ curl http://localhost:80/
Namespace Example
Similar as above, but runs the socket proxy and the main service in the same private namespace, assuming that nginx.service has PrivateTmp=
and PrivateNetwork= set, too.
Example 5. proxy-to-nginx.socket
[Socket]
ListenStream=80
[Install]
WantedBy=sockets.target
Example 6. proxy-to-nginx.service
[Unit]
Requires=nginx.service
After=nginx.service
Requires=proxy-to-nginx.socket
After=proxy-to-nginx.socket
JoinsNamespaceOf=nginx.service
[Service]
ExecStart=/lib/systemd/systemd-socket-proxyd 127.0.0.1:8080
PrivateTmp=yes
PrivateNetwork=yes
Example 7. nginx.conf
[...]
server {
listen 8080;
[...]
Example 8. Enabling the proxy
# systemctl enable --now proxy-to-nginx.socket
$ curl http://localhost:80/
SEE ALSO
systemd(1), systemd.socket(5), systemd.service(5), systemctl(1), socat(1), nginx(1), curl(1)
systemd 237 SYSTEMD-SOCKET-PROXYD(8)