Questions tagged [webserver]
A software application that services requests from clients using the Hypertext Transfer Protocol.
8,230
questions
0
votes
0
answers
20
views
How to get values from cookies using angular?
I have a system on the Internet that enables me to add custom applications to it through a window within this system. When you enter this window, the user session hash will be sent to the URL of the ...
0
votes
0
answers
5
views
Dogtag PKI "/usr/share/pki/common-ui" is missing
I am using Dogtag PKI 11.4.2 on CentOS 9
I am facing an issue where Tomcat can not find the static css/image files as the GUI for dogtag is actually missing!
This is the command i am using for ...
0
votes
0
answers
13
views
Using Rocket, I am getting an error loading a CSS file. How do I properly do it?
so I'm currently learning Rust and Rocket for web development, however, I am getting an error while loading a css file to my submit.html file.
My directory layout is as follows:
project_root/
|-- src/
...
2
votes
0
answers
20
views
How do I call a specific function when a SIGTERM or SIGKILL system signal is received?
I'm in need of a solution when I want to execute a particular function in my flask app before shutting the app completely (Essentially, a graceful shutdown).
I'm running a flask server with uwsgi (1 ...
0
votes
1
answer
25
views
how to add delay in Nginx response
To mock the API I have to create an endpoint on Nginx and the response time should match as I receive from the actual API.
I tried to find help online and came to know that, this echo module can help: ...
0
votes
0
answers
17
views
API is slow when open website page by using domain and fast when open using IP address
I have developed one website page in ReactJs in which some APIs are calling an API implemented in Lravel. I am using ReactJS 16.2.0 and Laravel 9.32.0.
When I open this page by using a domain like ...
0
votes
0
answers
21
views
IIS WebApp: slow Windows-Authentication in other Windows-Domain
I have a problem with IIS Windows authentication. I have a client in windows domain A and a server (IIS) in windows domain B (trust-relationship).
The client has an A domain user logged in (A\user01). ...
0
votes
0
answers
30
views
How to load a website (html and javascript) with the [Android-Web-Server](https://github.com/sonuauti/Android-Web-Server)
I have a website that can be loaded only on a web-server. I need to load it offline on Android.
How can I load the website with Android-Web-Server?
The website file structure:
I have already tried ...
0
votes
0
answers
34
views
C# filestream, file cannot be accessed because it is being used by another process
I have the following code acting as a controller on my .net core webapi:
public IActionResult ViewClip(string id)
{
filestream = new FileStream($"Clips/{id}.mp4", ...
0
votes
0
answers
16
views
Nginx Webserver Reverse Proxy Unauthorized Access?
I am having a very strange issue on Nginx web server. I have a virtual host with fully qualified domain name in server block, this virtual host basically does the work of reverse proxying to the ...
1
vote
3
answers
178
views
+100
Is it secure to make source code files writable by webserver?
I'm working with a fresh PHP Laravel framework installation, and I've noticed that the ownership of all files and folders within the public directory has been recursively changed to the web server ...
1
vote
2
answers
48
views
Calling `accept` syscall in loop creates corrupted sockets
I'm trying to build myself a web app in C. So far, I've got the HTTP server working, but for some reason, when I have things like HTML files that require other CSS, and JavaScript files, the browser (...
0
votes
0
answers
18
views
How to protect access to sensitive files of a laravel application from a sub-application?
Can you tell me how to protect access to sensitive files of a laravel application from a sub-application. Currently, the application is a monolith using modules that are sub-sites. The Modules ...
0
votes
0
answers
13
views
How to save images to Render Disk by using Web Service BunJs
I'm having trouble saving pictures to the Render Disk.
I set up the BanJs Web Server on the Render service and opened the Disk with the /var/lib/data router
Then configured the server and started ...
0
votes
1
answer
13
views
Are there any downsides to reference the same .war file from many Jetty server instances?
I have a system with many Jetty servers running in parallel (each one on a different port), but they all use the same .war file (copied into each of the folders and referenced in their respective ...
0
votes
0
answers
16
views
Webserver on RaspberryPi is not reachable with DynDNS
I got a Docker Setup with an Apache Webserver on my RaspberryPi. I want to reach this webserver from the internet. So I got a domain and activated the dyndns to my fritz.box router.
But I only a Site ...
0
votes
1
answer
47
views
How to handle a user abort by Deno.serve
The Deno website has an example at: https://deno.land/manual@v1.36.4/runtime/http_server_apis#inspecting-the-incoming-request
I have shortened it to the following code:
const abortController = new ...
0
votes
1
answer
31
views
Python Web Server diferent folders in desktop and laptop
I'm making a simple web server following the documentaction . The idea is to make the server without install any additional module.
The matter is work perfect in desktop computers but in laptops it ...
0
votes
1
answer
26
views
HostNotFoundError error when running 'npm start' on Node.js server - React Project
Description of the problem:
I'm working on a React project and when trying to run npm start on the server folder, I get the following error:
HostNotFoundError [SequelizeHostNotFoundError]: getaddrinfo ...
0
votes
1
answer
12
views
Route traffic between Multiple webservers on dedicated server
I have a dedicated server with proxmox installed.
I have on it multiple vps and on each vps there is a website which is eather a domain or subdomain.
All have same Ip address.
How can i route traffic ...
0
votes
0
answers
16
views
How do depoy a Django Project on a Webgo server
im new to Django i did made a tutorial from w3school, now im at the point to deploy the project but i dont want to deploy the project on my own webhost at Webgo. On the Server there is python and ...
0
votes
0
answers
37
views
How to change base URL in a Mockito test in Rust?
I am relatively new to Rust and I am trying to write a few unit tests for my web service using Mockito.
In Mockito's documentation, they have the following example:
#[cfg(test)]
mod tests {
#[test]
...
0
votes
0
answers
15
views
.htaccess Problems with Rewriting Rules
I was playing around with .htaccess a bit today because I wanted to try creating flat-links. My code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
...
1
vote
1
answer
50
views
Dynamic Route Resolution with Rust's Axum Framework
I'm currently implementing a web service from scratch using the Axum framework. The goal of this service is to access and read/write files or directories on a target directory.
Want I want to achieve ...
0
votes
1
answer
27
views
server the /tmp/ directory as /npm-logs using Nginx webserver
I wish to expose the /tmp/ directory as /npm-logs in Nginx
I wish to serve the contents of /tmp directory by hitting this URL: https://portal.sggs.com.au/npm-logs
Below is what the server block looks ...
0
votes
1
answer
25
views
Connecting to a WebSocket Server with Node and a React App
I have a nginx web server running on my raspberry PI. In the webserver I have a React App, and a node server on the backend. When I run this locally, everything works great. But I am stumped on ...
-1
votes
0
answers
17
views
Setup own webhook for python script to read data out of it
I'd like to set up my own webhook running on a raspberry pi. My alarm app (for firefighting, aPager Pro) is supposed to trigger it every time an alarm is recieved (The app sends a get request with ...
-1
votes
1
answer
34
views
How do I execute a python file or function in that file on my website?
So I have a website and when I click a button I am running a javascript file to get some variables. After getting those variables I want to run some python with the variables the javascript collected. ...
-1
votes
1
answer
42
views
How to create a webserver with soft access point in CircuitPython?
I want to serve a basic index.html file using a Raspberry Pi Pico W. I am able to in MicroPython but need to use CircuitPython for this project. I found code to create a soft access point but wasn't ...
1
vote
1
answer
21
views
How to update web server config to set different APP_ID under different domain
I have just finished splitting my Symfony application into multiple apps by following the documentation:
https://symfony.com/doc/current/configuration/multiple_kernels.html
At the bottom it says ...
0
votes
0
answers
13
views
Node.js but Webserver expects index.html
For Learning and Testing I generate via node.js on port 3000 dynamically a website.
Want to move it to now to port 443 the webserver (Ubuntu with Cyberpanel) does expect an index.html or index.php ...
0
votes
0
answers
18
views
Apache is failing to start with mentioned error
I am enabled mod_ssl module in httpd.conf file and tried to enable ssl but now when I try to start httpd, getting below error
[webusr@web-node1 bin]$ ./apachectl -t
httpd: Syntax error on line 134 of /...
0
votes
1
answer
13
views
How to share fronend localhost which is connected to backend localhost?
I wanted to share my Full Stack WebApp with testing members before deployment. I tried using ngrok and localtunnel.me, but I was only able to share the frontend, since, both frontend(localhost:4200) ...
0
votes
1
answer
44
views
Extending Django model
I have two apps in my project, app1 and app2.
In app1 I have two models called Task and Job.
I want to add new feature to these two models, I want to add category to them.
But its more complicated ...
0
votes
0
answers
8
views
Nginx Intermittently Stops Responding on GoDaddy VPS
Question:
I'm facing recurring Nginx issues on my GoDaddy VPS, where Nginx becomes inactive intermittently, leading to website downtime. Seeking guidance to troubleshoot and resolve this.
Problem:
...
-1
votes
0
answers
13
views
How can I connect to different ports while staying on the same port for a game server?
I am trying to make a game like Agar.io, I have made a game server, and it creates 5 different servers for different modes such as FFA, Teams and others. I can connect to each of these servers from ...
0
votes
1
answer
28
views
Node Express thinks i am sending response multiple times?
So I am trying to program express middleware, and I am using return statements for every res.json() or res.send(), yet I am still receiving the error:
Error [ERR_HTTP_HEADERS_SENT]: Cannot remove ...
0
votes
0
answers
16
views
Is there a way to reassign used SSL certificates without restarting the HTTPServer using C++ Poco?
Is it possible to reassign and reload the SSL certificate/private key pair being used by the Poco SSLManager, and have that change reflected on the web browser without needing to restart the ...
0
votes
0
answers
8
views
How web server knows that HTTP request is addressed to it?
So I know that ports are assigned to each program and the HTTP port is 80(or 443 if secure) and if I will send some request via browser to something like google.com it will get the IP from the DNS ...
0
votes
0
answers
20
views
Python web server does not close stdin in CGI script
A Python simple webserver is started to serve a POST request.
In the CGI script, reading the request body from stdin hangs.
CGI script:
#! /bin/bash
echo "Content-Type: text/plain"
echo
cat
...
0
votes
0
answers
15
views
How to get nginx phase on which handler was called
I'm writing my own Nginx HTTP module. I'm registering module's handler on two phases: NGX_HTTP_SERVER_REWRITE_PHASE and NGX_HTTP_PREACCESS_PHASE. The logic is pretty much the same on each phase ...
0
votes
0
answers
35
views
Nginx Reverse Proxy's problematic behaviour
I have a frontend running on port 80 and a backend running on port 8000 using a reverse proxy in nginx both of them are being connected from the same domain URL (eg. https://abc123.com it is an HTTPS -...
1
vote
1
answer
23
views
What does RewriteCond %{REQUEST_FILENAME} !-f mean?
I had the following rule in the .htaccess file:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([\s\S]*)$ index.php?rt=$1 [L,B,QSA]
Now I've switched to Nginx ...
0
votes
0
answers
40
views
How to access VSCode live server on public wifi network?
I have set up a live server on VSCode using the Live Server extension. The live server runs on port 5500 and works fine on my local machine. However, when I try to access the hosted web page from ...
1
vote
1
answer
25
views
How to convert Apache's RewriteCond and RewriteRule to Nginx configuration?
I have the following code in .htaccess file:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([\s\S]*)$ index.php?rt=$1 [L,B,QSA]
I need to convert it to Nginx ...
0
votes
0
answers
19
views
Airflow scheduler stops running when using requests library in task
my airflow scheduler stops running on tasks that utilize the requests library.
Other tasks in my dag will run but anytime a task with a request method in it tries to ru, Airflow shows the following ...
0
votes
0
answers
66
views
Raspberry Pi Pico W getting stuck in socket.accept call
I am using Pico W as web server to control relays to switch on and off switches. I am able to connect pico w to wifi router. Web server works fine. After some idle time like 2-3 hrs, Pico stops ...
0
votes
1
answer
10
views
python 3.11 cannot set value for SimpleHTTPRequestHandler.extensions_map
Python SimpleHTTPRequestHandler cannot server yaml as content type.
I try to run a python web server as helm charts repo. I need to set yaml files as content type (text/yaml or text/x-yaml).
Here is ...
1
vote
1
answer
47
views
.htaccess to different subfolders
I have following folder structure
root
- production
- tool
- wordpress
- subfolder
- subfolder1
- subfolder2
And a subdomain sub.domain.com where the root folder is ...
1
vote
1
answer
45
views
calling external javascript function from a html file
I'd like to run a server in JavaScript on Raspbian that does not just provides the .html content to the browser but also be able to get input from it, let's say, triggered by a button event. The .html ...