Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
2114
views
Apache server sometimes gets stuck for minutes with requests getting backlogged and waiting too much to be processed
I've got a production server with **Apache 2.4.38** on **Debian 10** and sometimes the web server doesn't function properly and doesn't immediately send a response to the HTTP requests it gets (All virtual hosts requests on it are completely unresponsive (no matter what they reverse proxy to)). Afte...
I've got a production server with **Apache 2.4.38** on **Debian 10** and sometimes the web server doesn't function properly and doesn't immediately send a response to the HTTP requests it gets (All virtual hosts requests on it are completely unresponsive (no matter what they reverse proxy to)). After a restart it immediately fixes itself or after being like this a while (seconds or even minutes) and starts sending A LOT of HTTP responses all of a sudden.
CPU and RAM usage seem to be fine, so it's definitely not that. I don't know what exactly is going on and why it's doing this. I've also changed mpm_event.conf settings, they currently are set to this:
CPU and RAM usage seem to be fine, so it's definitely not that. I don't know what exactly is going on and why it's doing this. I've also changed mpm_event.conf settings, they currently are set to this:
StartServers 2
ServerLimit 100
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 128
ThreadsPerChild 25
MaxRequestWorkers 400
MaxConnectionsPerChild 5000
There are some errors I've seen in the Apache error log though:
[Tue Mar 22 19:53:38.339703 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 29595 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.339777 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 26190 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.339825 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 27903 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.339889 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 16907 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.339933 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 26880 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.340000 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 15384 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.340041 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 24971 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.340091 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 9780 still did not exit, sending a SIGKILL
[Tue Mar 22 19:53:38.340130 2022] [core:error] [pid 3375:tid 140244229465216] AH00046: child process 26317 still did not exit, sending a SIGKILL
What settings can I change that would fix this issue?
BitMonster
(35 rep)
Mar 22, 2022, 06:32 PM
• Last activity: Aug 2, 2025, 01:01 AM
-2
votes
0
answers
31
views
Serve File Directory of Another server in nginx
https://unix.stackexchange.com/q/126745/762527 follow up to this. If I want to server a file directory from another server, what would be the process apart from rsync/scp?
https://unix.stackexchange.com/q/126745/762527 follow up to this. If I want to server a file directory from another server, what would be the process apart from rsync/scp?
SanthoshKumar M
(1 rep)
Jul 21, 2025, 08:38 AM
-1
votes
1
answers
81
views
Serving a file (e.g. in Apache) from a named pipe (made with mkfifo)
Let's say I use Apache, and that I am in `/var/www/html/`. I do: mkfifo test.tar tar cvf - ~/test/* > test.tar & In a browser, when trying to download `http://localhost/test.tar` I get: ERR_EMPTY_RESPONSE (didn’t send any data) Is there a specific parameter of `mkfifo` that would the pipe look reall...
Let's say I use Apache, and that I am in
/var/www/html/
. I do:
mkfifo test.tar
tar cvf - ~/test/* > test.tar &
In a browser, when trying to download http://localhost/test.tar
I get:
ERR_EMPTY_RESPONSE
(didn’t send any data)
Is there a specific parameter of mkfifo
that would the pipe look really like a regular file? Here the problems seems to come from the fact the file is a named pipe.
In my real example, I might use different webservers (not Apache), like [CivetWeb
](https://github.com/civetweb/civetweb) , but first I want to analyze if it works with Apache (that I use the most).
Basj
(2579 rep)
Jul 13, 2025, 03:26 PM
• Last activity: Jul 21, 2025, 07:11 AM
3
votes
1
answers
2018
views
Error on Setup nginx to multiples ReactJS app on the same server?
I'm building a solution with multiple modules. Each module is a ReactJS app, and I trying config nginx to publish it on the same domain. For examples: - http://application-domain/**auth** - http://application-domain/**admin** - http://application-domain/**dashboard** - http://application-domain/**sa...
I'm building a solution with multiple modules. Each module is a ReactJS app, and I trying config nginx to publish it on the same domain. For examples:
- http://application-domain/**auth**
- http://application-domain/**admin**
- http://application-domain/**dashboard**
- http://application-domain/**sales**
My public directory for nginx stay like this:
The problem is when access
/var/www
├── /auth
├── /admin
├── /dashboard
└── /sales
Where auth, admin, dashboard, and sales are subfolders for each project.
My nginx server conf:
server {
listen 9000 default_server;
listen [::]:9000 default_server;
server_name localhost;
index index.html;
location / {
root /var/www/auth;
}
location /admin {
root /var/www;
}
location /dashboard {
root /var/www;
}
location /sales {
root /var/www;
}
}
Each project's subfolder has the similar structure like this

http://application-domain/admin
, for example, the application try to load the static files on root instead subfolder project
GET http://localhost:9000/static/js/main.6314dcaa.js net::ERR_ABORTED
the correct would be get files on **admin** sub folder like this:
GET http://localhost:9000/admin/static/js/main.6314dcaa.js
What's the better approach to correct nginx configuration for this?
DBs
(31 rep)
Aug 26, 2018, 02:10 PM
• Last activity: Jul 20, 2025, 11:10 PM
0
votes
0
answers
28
views
How to make caddy run in/from a directory as a service in Ubuntu 20.04.2?
I installed caddy with "sudo apt install caddy" and have everything setup and working, but I also want to run caddy automatically from boot. When I use ``` sudo systemctl enable caddy ``` and reboot, I get a 403 error from my website. To fix this I kill caddy and use ``` cd /home/user/Desktop/websid...
I installed caddy with "sudo apt install caddy" and have everything setup and working, but I also want to run caddy automatically from boot.
When I use
sudo systemctl enable caddy
and reboot, I get a 403 error from my website. To fix this I kill caddy and use
cd /home/user/Desktop/websida
then
sudo caddy run
, then it's fixed, no errors but I have to do this every time I boot, hence why I want it to run as a service but in another directory: /home/user/Desktop/websida
MR_MEME53
(1 rep)
Jul 1, 2025, 08:07 AM
0
votes
1
answers
12466
views
How do I find the version of JQuery that is installed on a Linux web server?
All the methods I found on the Internet involved using a .jsp page and a web browser. I have Linux servers with no GUI desktops. I do not want to use the web browser on a desktop to view a .jsp file on every web browser. I want to find out from the backend. This way I can use a script to find out on...
All the methods I found on the Internet involved using a .jsp page and a web browser. I have Linux servers with no GUI desktops.
I do not want to use the web browser on a desktop to view a .jsp file on every web browser. I want to find out from the backend. This way I can use a script to find out on every server.
How do I find the version of JQuery that is installed on a Linux web server?
Kiran
(321 rep)
Jun 8, 2016, 12:34 AM
• Last activity: Jun 11, 2025, 10:01 PM
33
votes
3
answers
149853
views
Installing Debian without GUI for a web server
I'm unfamiliar with Debian (obviously), so I downloaded the live ISO thinking it might help me. From the live GUI, I doubled click on the install icon on the desktop and proceeded - it gave me an install with GNOME and a bunch of other software that has no business being on a web server. Generally....
I'm unfamiliar with Debian (obviously), so I downloaded the live ISO thinking it might help me. From the live GUI, I doubled click on the install icon on the desktop and proceeded - it gave me an install with GNOME and a bunch of other software that has no business being on a web server. Generally.
So the first part of my question is, can I install the base/non-GUI version from the Live disc? If so, how? If not, can someone point me to the correct download for the amd64 bit version?
I want what would be the Debian equivalent to Ubuntu Server - a simple, bare-bones, non-GUI OS. I prefer to install my HTTP server as well - I'm not sure if I'll be going with Apache or Nginx or handling HTTP requests myself in node.js...
jreed121
Oct 14, 2012, 10:31 AM
• Last activity: Jun 8, 2025, 06:16 PM
0
votes
2
answers
173
views
Lighttpd web server - show files in folder
I have Lighttpd web server on my Ubuntu server. It works as expected. But now I want that it shows files in folders. I follow the instructions, but it doesn't work. This is lighttpd.conf file: server.modules = ( "mod_access", "mod_auth", "mod_expire", "mod_redirect", "mod_setenv", "mod_dirlisting",...
I have Lighttpd web server on my Ubuntu server. It works as expected. But now I want that it shows files in folders. I follow the instructions, but it doesn't work.
This is lighttpd.conf file:
server.modules = (
"mod_access",
"mod_auth",
"mod_expire",
"mod_redirect",
"mod_setenv",
"mod_dirlisting",
"mod_rewrite"
)
server.document-root = "/var/www/html"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.pid-file = "/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
# For lighttpd version 1.4.46 or above, the port can be overwritten in
/etc/lighttpd/external.conf
using the := operator
# e.g. server.port := 8000
server.port = 80
# Allow streaming response
# reference: https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_stream-response-bodyDetails
server.stream-response-body = 1
#ssl.read-ahead = "disable"
index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
mimetype.assign = (
".ico" => "image/x-icon",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".png" => "image/png",
".svg" => "image/svg+xml",
".css" => "text/css; charset=utf-8",
".html" => "text/html; charset=utf-8",
".js" => "text/javascript; charset=utf-8",
".json" => "application/json; charset=utf-8",
".map" => "application/json; charset=utf-8",
".txt" => "text/plain; charset=utf-8",
".eot" => "application/vnd.ms-fontobject",
".otf" => "font/otf",
".ttc" => "font/collection",
".ttf" => "font/ttf",
".woff" => "font/woff",
".woff2" => "font/woff2"
)
# Add user chosen options held in (optional) external file
include "external*.conf"
# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include "/etc/lighttpd/conf-enabled/*.conf"
And external.conf file:
$HTTP["host"] =~ "slike" {
server.document-root = "/var/www/html/slike/"
accesslog.filename = "/var/log/lighttpd/access-slike.log"
server.errorlog = "/var/log/lighttpd/error-slike.log"
index-file.names = ( ) # An empty list means no index files are served
dir-listing.activate = "enable"
mimetype.assign = ( ".png" => "image/png",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".html" => "text/html",
".css" => "text/css; charset=utf-8",
".js" => "application/javascript",
".json" => "application/json",
".txt" => "text/plain",
".svg" => "image/svg+xml" )
}
If I have index.html file in the folder, the web server shows it to the visitor. If I remove the index.html file, I get "403 Forbidden".
Any idea what can be wrong?
EDIT - UPDATE:
Here is what I found in LOG files (URL are changed!):
2025-04-30 07:20:05: (response.c.407) -- parsed Request-URI
2025-04-30 07:20:05: (response.c.409) Request-URI : /slike
2025-04-30 07:20:05: (response.c.411) URI-scheme : http
2025-04-30 07:20:05: (response.c.413) URI-authority : k2.test.eu
2025-04-30 07:20:05: (response.c.415) URI-path (clean): /slike
2025-04-30 07:20:05: (response.c.417) URI-query :
2025-04-30 07:20:05: (response.c.495) -- logical -> physical
2025-04-30 07:20:05: (response.c.497) Doc-Root : /var/www/html
2025-04-30 07:20:05: (response.c.499) Basedir : /var/www/html
2025-04-30 07:20:05: (response.c.501) Rel-Path : /slike
2025-04-30 07:20:05: (response.c.503) Path : /var/www/html/slike
2025-04-30 07:20:06: (response.c.407) -- parsed Request-URI
2025-04-30 07:20:06: (response.c.409) Request-URI : /slike/
2025-04-30 07:20:06: (response.c.411) URI-scheme : http
2025-04-30 07:20:06: (response.c.413) URI-authority : k2.test.eu
2025-04-30 07:20:06: (response.c.415) URI-path (clean): /slike/
2025-04-30 07:20:06: (response.c.417) URI-query :
2025-04-30 07:20:06: (response.c.495) -- logical -> physical
2025-04-30 07:20:06: (response.c.497) Doc-Root : /var/www/html
2025-04-30 07:20:06: (response.c.499) Basedir : /var/www/html
2025-04-30 07:20:06: (response.c.501) Rel-Path : /slike/
2025-04-30 07:20:06: (response.c.503) Path : /var/www/html/slike/
2025-04-30 07:20:06: (response.c.522) -- handling subrequest
2025-04-30 07:20:06: (response.c.524) Path : /var/www/html/slike/
2025-04-30 07:20:06: (response.c.526) URI : /slike/
2025-04-30 07:20:06: (response.c.528) Pathinfo :
2025-04-30 07:20:06: (mod_indexfile.c.151) -- handling the request as Indexfile
2025-04-30 07:20:06: (mod_indexfile.c.153) URI : /slike/
2025-04-30 07:20:12: (connections.c.1492) connection closed - keep-alive timeout: 15
EDIT - UPDATE (2025-05-09):
$HTTP["url"] =~ "^/slike" {
server.document-root = "/var/www/html/slike/"
accesslog.filename = "/var/log/lighttpd/access-slike.log"
server.errorlog = "/var/log/lighttpd/error-slike.log"
index-file.names = ( ) # An empty list means no index files are served
dir-listing.activate = "enable"
mimetype.assign = ( ".png" => "image/png",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".html" => "text/html",
".css" => "text/css; charset=utf-8",
".js" => "application/javascript",
".json" => "application/json",
".txt" => "text/plain",
".svg" => "image/svg+xml" )
}
JanezKranjski
(131 rep)
Apr 27, 2025, 04:22 PM
• Last activity: May 9, 2025, 06:05 AM
0
votes
1
answers
2380
views
What is the equivalent of localhost in Debian using nginx?
Every nginx config guide I find is about setting up the server for, say, example.com. But I don't have a domain name, and I want to set up a local DNS, something like localhost in Windows with Apache that comes with XAMPP. I want to create two ports, which is I believe server blocks in nginx. One of...
Every nginx config guide I find is about setting up the server for, say, example.com. But I don't have a domain name, and I want to set up a local DNS, something like localhost in Windows with Apache that comes with XAMPP. I want to create two ports, which is I believe server blocks in nginx. One of the ports is for api, one of the ports is for the frontend. I have created two files:
/etc/nginx/conf.d/chubak.conf:
server {
listen 85;
server_name chubak.com;
access_log /srv/logs/vue.access.log;
error_log /srv/logs/vue.error.log;
gzip_static on;
# root /srv/default;
root /var/www/chubak.com/html;
index index.html;
location / {
add_header 'Access-Control-Allow-Origin' '*';
try_files $uri $uri/ /index.html;
}
And /etc/nginx/conf.d/api.chubak.conf:
server {
listen 180;
server_name api.chubak.com;
access_log /var/www/api.chubak.com/logs/api.access.log;
error_log /var/www/api.chubak.com/logs/api.error.log;
root /var/www/api.chubak.com/html;
index index.php index.html;
client_max_body_size 128M;
location / {
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
location ~ \.php$ {
include /etc/nginx/fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_read_timeout 600;
fastcgi_intercept_errors on;
gzip off;
fastcgi_index index.php;
}
And I've created index.html files in the /var/www/site/html folder, but I don't know how to access them. As I said, the tutorials always assume that you have a domain name pointed to your server.
Major Despard
(57 rep)
Apr 17, 2019, 05:59 PM
• Last activity: Apr 20, 2025, 02:07 AM
11
votes
4
answers
42161
views
systemd - My custom service exits with status code 216/GROUP
I installed the following unit file for an Nodejs Express Server: [Unit] Description=Server for SpeedBot After=network.target [Service] ExecStart=/var/www/SpeedBot/server.js Restart=always User=nobody Group=nobody Environment=PATH=/usr/bin:/usr/local/bin Environment=NODE_ENV=production WorkingDirect...
I installed the following unit file for an Nodejs Express Server:
[Unit]
Description=Server for SpeedBot
After=network.target
[Service]
ExecStart=/var/www/SpeedBot/server.js
Restart=always
User=nobody
Group=nobody
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/home/pi/SpeedBot/server.js
[Install]
WantedBy=multi-user.target
When I run it and do:
service speedbotserver status
i get:
● speedbotserver.service - Server for SpeedBot
Loaded: loaded (/etc/systemd/system/speedbotserver.service; disabled)
Active: failed (Result: start-limit) since Thu 2017-06-29 01:31:18 UTC; 18h ago
Process: 19189 ExecStart=/var/www/SpeedBot/server.js (code=exited, status=216/GROUP)
Main PID: 19189 (code=exited, status=216/GROUP)
medicengonzo
(231 rep)
Jun 29, 2017, 07:52 PM
• Last activity: Apr 10, 2025, 01:12 PM
0
votes
1
answers
2194
views
When I access my page I have a 403 Forbidden error LiteSpeed Web Server
I'm trying to install Wordpress using OpenLiteSpeed webserver. Wordpress is installed in `/usr/local/lsws/Liveragi/html/{wordpress files}`. When I access the page using HTTP the page has a "404 Not Found" error and with HTTPS the page is throwing a "403 Forbidden" error. I have PHP latest version in...
I'm trying to install Wordpress using OpenLiteSpeed webserver. Wordpress is installed in
/usr/local/lsws/Liveragi/html/{wordpress files}
.
When I access the page using HTTP the page has a "404 Not Found" error and with HTTPS the page is throwing a "403 Forbidden" error. I have PHP latest version installed and the web panel works well.
If I put an .html
file it works but if it is PHP, I get "403 Forbidden".
Hope someone has the solution to this. Thanks.
PS: I'm using Ubuntu Server latest version
Jan Sánchez Van Den Berg
(21 rep)
Oct 15, 2020, 08:25 AM
• Last activity: Mar 1, 2025, 09:01 AM
2
votes
2
answers
226
views
CSS not updating on a `http.server` website
I have a website using the Python `http.server` module and it was working great. Earlier this day I wanted 2 users to work on the same files (HTML, CSS, JS) so I set the `chmod` tag to `777`. The problem is that the CSS content now only updates when starting a new browser session, whereas the HTML c...
I have a website using the Python
http.server
module and it was working great. Earlier this day I wanted 2 users to work on the same files (HTML, CSS, JS) so I set the chmod
tag to 777
.
The problem is that the CSS content now only updates when starting a new browser session, whereas the HTML content updates every time I refresh the page without any issues.
I have tried:
- Clearing the browser cache using Ctrl+F5
/Shift+F5
- Changing the ownership of the files to a group containing the editor users (using chgrp
)
- Removing caching in Nginx
- Removing caching in Cloudflare
If you need any additional info, I'd be happy to provide it.
TheFrenchTechMan
(23 rep)
Feb 24, 2025, 07:21 PM
• Last activity: Feb 27, 2025, 11:27 AM
0
votes
1
answers
63
views
What does /etc/resolve.conf actually contain - does it contain the server's own IP or does it contain the upstream delegator?
I have looked at various `resolve.conf` questions on here and other documentation but they're talking about DNS as an external thing, which doesn't help me distinguish in this case. - I have a server. The server has some sort of DNS issues. - The server runs Linux (CentOS 7.9) and has 2 IP addresses...
I have looked at various
resolve.conf
questions on here and other documentation but they're talking about DNS as an external thing, which doesn't help me distinguish in this case.
- I have a server. The server has some sort of DNS issues.
- The server runs Linux (CentOS 7.9) and has 2 IP addresses that point to it.
- The server has a /etc/resolve.conf
which contains two *other* IP addresses.
Should these *other* IP in resolve.conf be the 2 that point to the server or should they be 2 "stranger" IPs pointing to upstream?
THanks
Martin
(143 rep)
Feb 11, 2025, 02:27 PM
• Last activity: Feb 11, 2025, 03:11 PM
1
votes
1
answers
718
views
A process called "Opera" (the browser is not installed) constantly uses 100% of my CPU. Does anyone know what this is?
I have a server box I use to host various web applications and game servers for friends. I recently connected to it to check how it was running, and discovered a program "Opera" trying to use over 3000% of my CPU according to `top`. I tried to kill it with `pkill Opera` and `pkill ` then used `killa...
I have a server box I use to host various web applications and game servers for friends. I recently connected to it to check how it was running, and discovered a program "Opera" trying to use over 3000% of my CPU according to
/var/tmp/Documents folder without the Opera executable" class="img-fluid rounded" style="max-width: 100%; height: auto; margin: 10px 0;" loading="lazy">
Deleting the executable seems to have fixed the problem, but I still have no idea what it was caused by or what the Opera executable is, what it was doing, and why it was executing from the
top
.
I tried to kill it with pkill Opera
and pkill
then used killall
to do the same, which worked initially, but the Opera program came back within a minute or so. I checked through all of my system services and cron jobs and can't find any mention of "Opera" anywhere, and trying to run the command manually ("Opera", not "opera" like the browser) just prompts me to install the opera browser from snap. top
only informed me that opera was somehow located at ./Opera
. I eventually tracked down the executable by following the symlink in /proc/
and found it in /var/tmp
inside a "Documents" folder with some other odd files (a config.json, and several hidden files with strange names and no extensions) the picture I've included does not have the Opera file, as I deleted it.

/var/tmp
folder. I mainly want to know if this is a known virus or trojen, and whether I should purge the user it's executing from.
Editing this because I forgot to add my system info.
My operating system is Ubuntu 22.04.4 LTS and I use bash as my kernel. my kernel version is Linux 5.15.0-116-generic
Any help is appreciated, thanks!
Isaakfire
(13 rep)
Jul 25, 2024, 10:00 PM
• Last activity: Jan 26, 2025, 04:00 PM
0
votes
1
answers
175
views
How to access an Angular App created on CentOs7 in a Windows 10 VM?
I created an angular app in CentOs7 and was able to open it in a web browser in my CentOs7 VM using http://localhost:4200/. I need to be able to access it my Windows 10 VM, but when I tried changing the IP, it still worked in Cent but gave me an error saying port 4200 is already in use. It doesn't w...
I created an angular app in CentOs7 and was able to open it in a web browser in my CentOs7 VM using http://localhost:4200/. I need to be able to access it my Windows 10 VM, but when I tried changing the IP, it still worked in Cent but gave me an error saying port 4200 is already in use. It doesn't work in Windows with either address. How do I configure this so it's accessible in my Windows VM?
Nudge
(3 rep)
May 1, 2020, 02:35 AM
• Last activity: Jan 21, 2025, 03:49 PM
3
votes
2
answers
1845
views
redirect web server with no-ip and port forwarding in livebox
I want my Apache web server running on a Livebox (home router appliance running Linux) to be accessible from the Internet (WAN). I installed and configured the application noip2 on my Ubuntu PC. When I ping my hostname, it redirects me to my WAN ip, which is what I wanted. But I cannot access my Apa...
I want my Apache web server running on a Livebox (home router appliance running Linux) to be accessible from the Internet (WAN).
I installed and configured the application noip2 on my Ubuntu PC. When I ping my hostname, it redirects me to my WAN ip, which is what I wanted. But I cannot access my Apache web server.
I tried this:
- Disabling the
iptables
firewall configuration or the firewall of my Sagem modem.
- Port forwarding on sagem modem (NAT).
- Configuration of Apache.
What else can I try? How can I make my web server accessible from the WAN side?
tmedtcom
(485 rep)
Nov 20, 2012, 10:22 PM
• Last activity: Dec 8, 2024, 10:01 AM
1
votes
1
answers
47
views
WebSocket Error "Unexpected close, re-opening websocket" after moving Focalboard to a subdirectory in Nginx
I'm trying to configure Focalboard to run in a specific subdirectory using Nginx. I followed the steps from the official Focalboard documentation and was able to set it up normally. However, after moving Focalboard to the /focalboard subdirectory, the WebSocket connection started showing issues. Ngi...
I'm trying to configure Focalboard to run in a specific subdirectory using Nginx. I followed the steps from the official Focalboard documentation and was able to set it up normally. However, after moving Focalboard to the /focalboard subdirectory, the WebSocket connection started showing issues.
Nginx Configuration:
upstream focalboard {
server localhost:8000;
keepalive 32;
}
server {
listen 443 ssl;
server_name example.com;
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/certificate.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
# WebSocket configuration
location /focalboard/ws/ {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 50M;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_buffers 256 16k;
proxy_buffer_size 16k;
client_body_timeout 60;
send_timeout 300;
lingering_timeout 5;
proxy_connect_timeout 1d;
proxy_send_timeout 1d;
proxy_read_timeout 1d;
proxy_pass http://focalboard ;
}
# Default configuration for Focalboard
location /focalboard/ {
client_max_body_size 50M;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_buffers 256 16k;
proxy_buffer_size 16k;
proxy_read_timeout 600s;
proxy_cache_revalidate on;
proxy_cache_min_uses 2;
proxy_cache_use_stale timeout;
proxy_cache_lock on;
proxy_http_version 1.1;
proxy_pass http://focalboard/ ;
}
}
Focalboard config.json:
{
"serverRoot": "https://example.com/focalboard ",
"port": 8000,
"dbtype": "sqlite3",
"dbconfig": "./focalboard.db",
"postgres_dbconfig": "dbname=exampledb sslmode=disable",
"useSSL": false,
"webpath": "./pack",
"filespath": "./files",
"telemetry": true,
"prometheusaddress": ":9092",
"session_expire_time": 2592000,
"session_refresh_time": 18000,
"localOnly": false,
"enableLocalMode": true,
"localModeSocketLocation": "/var/tmp/example_local.socket"
}
After applying this configuration, I'm repeatedly getting the following error:
close, re-opening websocket
The WebSocket connection keeps closing unexpectedly and immediately reopening, which creates a constant loop.
- Is there something wrong or missing in my Nginx WebSocket configuration?
- How can I fix the WebSocket disconnection issue when running Focalboard in a subdirectory?
siqueir4
(11 rep)
Nov 9, 2024, 02:19 AM
• Last activity: Nov 12, 2024, 07:55 AM
234
votes
22
answers
370334
views
Simple command line HTTP server
I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don't want to add to my headaches maintance of a HTTP server (e.g. Apache) with all the configurations and security implications. Is there a dead simple solution for serving one sma...
I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don't want to add to my headaches maintance of a HTTP server (e.g. Apache) with all the configurations and security implications.
Is there a dead simple solution for serving one small HTML page without the effort of configuring a full blown HTTP server?
Cid
(2555 rep)
Feb 20, 2012, 10:55 AM
• Last activity: Sep 18, 2024, 11:30 PM
0
votes
0
answers
52
views
"Couldn't connect to server" outside of the server
I have a VPS instance running FreeBSD. I started a simple web server on port 80. When I am ssh'd into the server, I can reach the server: ```sh $ curl hello ``` However, when I try to connect on my own device: ```sh $ curl http:// curl: (28) Failed to connect to port 80 after 8710 ms: Couldn't conne...
I have a VPS instance running FreeBSD. I started a simple web server on port 80.
When I am ssh'd into the server, I can reach the server:
$ curl
hello
However, when I try to connect on my own device:
$ curl http://
curl: (28) Failed to connect to port 80 after 8710 ms: Couldn't connect to server
I have searched on how to fix it, but have thusfar not been able to solve it.
Here's some information that might be useful:
- Running ifconfig vtnet0
returns inet
- This IP address is the same address as my VPS provides shows in the server management tool
- My firewall (using pf) (pf.conf
):
## Set public interface ##
ext_if = "vtnet0"
## Set server public IP address
ext_if_ip = ""
## Set and drop IP ranges on public interface ##
martians = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, \
10.0.0.0/8, 169.254.0.0/16, 192.0.2.0/24, \
0.0.0.0/8, 240.0.0.0/4 }"
## Set http (80) and https (443) ports ##
webports = "{http, https}"
## enable services ##
int_tcp_services = "{domain, ntp, smtp, www, https, ftp, ssh}"
int_udp_services = "{domain, ntp}"
## Skip loop back interface ##
set skip on lo
## Sets the interface for which PF should gather statistics such as bytes in/o
set loginterface $ext_if
## Set default policy ##
block return in log all
block out all
# Drop all Non-Routable Addresses
block drop in quick on $ext_if from $martians to any
block drop out quick on $ext_if from any to $martians
## Blocking spoofed packets
antispoof quick for $ext_if
# Allow SSH from any IP address
pass in inet proto tcp to $ext_if port ssh
# Allow Ping-Pong stuff. Be a good sysadmin
pass inet proto icmp icmp-type echoreq
# All access to our Nginx/Apache/Lighttpd Webserver ports
pass proto tcp from any to $ext_if port $webports
# Allow essential outgoing traffic
pass out quick on $ext_if proto tcp to any port $int_tcp_services
pass out quick on $ext_if proto udp to any port $int_udp_services
- Last 2 entries of tcpdum -n -e -ttt -r /var/log/pflog
00:01:06.020635 rule 0/0(match): block in on vtnet0: > : Flags [S], seq 3213013147, win 64240, options [mss 1460, [|tcp]
00:02:17.580326 rule 0/0(match): block in on vtnet0: > : Flags [S], seq 3170210564, win 65535, length 0
Any help is much appreciated as I've hit a roadblock on trying to fix this.
Jomy
(121 rep)
Sep 13, 2024, 03:26 PM
• Last activity: Sep 17, 2024, 06:04 PM
0
votes
0
answers
21
views
how to make openresty support pdf partial download
I am using react pdf 9.1.0 to show the pdf in browser, now I want to make the react pdf support the partial download. The server side was using openresty, I read the pdf.js manual that told me to make the server side add partial download. how to make openresty support the pdf partial download? I hav...
I am using react pdf 9.1.0 to show the pdf in browser, now I want to make the react pdf support the partial download. The server side was using openresty, I read the pdf.js manual that told me to make the server side add partial download. how to make openresty support the pdf partial download? I have added the configuration:
location /tex/static/proj {
alias /data/k8s/reddwarf-pro/texhub-server-service/project/;
add_header Accept-Ranges bytes;
autoindex off;
}
how to make the openresty handle the pdf range request?
Dolphin
(791 rep)
Sep 7, 2024, 04:40 PM
• Last activity: Sep 7, 2024, 07:54 PM
Showing page 1 of 20 total questions