Questions tagged [webserver]

A cutting-edge software solution that efficiently manages client requests through the widely adopted Hypertext Transfer Protocol.

invoking a JavaScript function from an HTML file

I want to create a JavaScript server on Raspbian that not only serves .html content to the browser but also allows for user input through events like button clicks. Both my .html and .js files are located in the same directory, and I have used absolute pat ...

Issue with Node.js local web server: unable to locate module ws despite it being installed globally

I am trying to set up a simple local web server for development purposes on my Windows 7 machine. Following the installation of node.js, I ran the command: npm install -g local-web-server Afterwards, I navigated to the directory D:[path_to_webcontent] w ...

What are some npm web servers that support URL rewriting?

I am currently developing a single page application using AngularJS and require a local web server that can handle URL rewriting. I need all requests such as /home, /profile/1, /products?id=12 to serve the index.html file from the root directory. I have ...

Error: The specified JSON path for Ajax request could not be

Although my expertise lies in C++, I must confess that my knowledge about web development is quite limited. Therefore, please bear in mind that my question requires a simple answer. Recently, I stumbled upon a fascinating C++ library for creating a web se ...

Quick Serve - Open to the World

Utilize Ubuntu I currently have an Express app set up with a simple Hello world message. My goal is to make this app accessible to the public by setting up a static IP address, similar to what's demonstrated in this video. Below is my code for the express ...

Setting up a Next.js app on IIS as a secondary sub application

I am looking to set up my Next.js application as a sub-application under an existing IIS website. Although I have successfully hosted the Next.js app as a standalone website, I need assistance in configuring it as a sub-app. The reason for this setup is th ...

What is preventing the _SERVER["HTTPS"] value from being set to 1?

After installing an SSL certificate on my website, I noticed that when I visit , the PHP Variables section does not show _SERVER["HTTPS"]. This seems to be causing issues with a Drupal site where some URLs are shown as https://... while others appear as ht ...

Need help transferring information from your Go Web-Server to your Vue.js frontend? Having trouble with a http-post error of 404

I am currently exploring the process of transferring data between a lightweight Golang web server and a Vue.js frontend. This is the content of the server-gorillamux.go file: ... // Your original code here And this is the content of the /src/components/ ...

Leveraging AJAX for fetching files on the identical server

Just starting out with HTML and AJAX programming, so let's give it a shot: I've developed a website that populates a table with content from an external txt file (content.txt). The text file is hosted on a Windows 2003 webserver in the C:Inetpubwwwroot ...

Is there a Python framework that specializes in serving images?

My iOS app project requires a backend server capable of efficiently handling image files and dynamic operations like interacting with a data store such as Redis. Python is my preferred language for the backend development. After exploring various Python w ...

Leverage your current ExpressJS application to function as a Firebase application

I currently have an app running on Heroku. This web application is quite simple, without any background jobs or a database. It consists of three endpoints - one to serve HTML content, another for handling POST requests to the backend, and a third endpoint ...

Improper headings can prevent Chrome from continuously playing HTML5 audio

Recently, I encountered a peculiar and unlikely issue. I created a custom python server using SimpleHTTPServer, where I had to set my own headers. This server was used to serve .wav files, but I faced an unusual problem. While the files would play in an ...

Is it possible to configure Nginx mime types within a Docker container?

My docker-compose.yml file looks like this: version: "1.0" services: web: container_name: webserver image: nginx volumes: - ./nginx.conf:/etc/nginx/nginx.conf:ro - ./frontend:/frontend ports: - "8001:80&qu ...

Exploring the Distinctions: Comparing Socket and Web Server with

This code snippet demonstrates a socket-based example, sourced from the Node.js website. const socketServer = net.createServer((socket) => { socket.end('goodbye '); }).on('error', (err) => { // Error handling goes here throw err; }); // Obta ...

The nodejs server failed to respond to my request, displaying "undefined" instead

I have encountered some challenges while hosting my website on Firebase and Heroku Here are the issues I am facing: Initially, I am encountering CORS errors when trying to post data from a Firebase hosted URL to a server hosted on Heroku Even after re ...

Is it possible to set up a URL as a substitute for another URL?

Looking to have cdn.ex.com/avatars/:UserID redirect to my cloud public file URI: https://cloudapi.com/account.cloud.com/files/uploads/avatars/(userid)/avatar.png (actual URL provided) No code currently, but planning on implementing the following: app.get(' ...

What could be the reason for my Express server returning a 404 error for all files other than index.html?

Currently, I am delving into Node.js with Express in order to set up a small server for educational purposes. Strangely, every request made to files linked within my index.html file, such as the .css, .js, and image files, results in a response code 404. ...

Setting up environment variables for php-cgi

Currently, I am in the process of building a small web server using C++. My main focus right now is on adding support for POST requests specifically for PHP pages. I have encountered some challenges when it comes to passing the POST request body to the PH ...

Apache causes HTML download tag to malfunction

I have an HTML file that includes the following code: <a href="/Library/WebServer/Documents/file.zip" download="file.zip"> Download here </a> When I test this HTML page on Chrome, it successfully allows me to download the file. However, when ...

A guide to setting up a Python CGI web server on a Windows operating system

I am looking to set up a basic Python server on a Windows system to test CGI scripts that will ultimately run on a Unix environment. However, when I access the site, it displays a blank page with no source code visible. I am struggling to identify the issu ...

Using PhpStorm to update a URL after modifying the DocumentRoot

Currently, I am working on a Laravel 8 project with my DocumentRoot set to the public folder. When I enter http://localhost/ in my browser, it displays the contents of the public folder due to my webserver setup. In PhpStorm, I added this folder as a Res ...

PHP web service issue

Hey there, I'm facing an issue with my webservice that requires a database handler class when receiving a request. It all works perfectly fine when tested locally, but as soon as I hosted the service on a server, these two lines seem to be causing tro ...

I noticed that my node.js application is intermittently throwing an Unhandled 'error' event when processing write requests, shortly after I configured it to run behind Nginx

Having been successfully running node.js(0.8.20 and 0.9.10) on Windows Server 2012 for weeks without any issues, I recently added Nginx(1.2.6) to the mix. However, after configuring Nginx as follows: #user nobody; worker_processes 1; #error_log logs/e ...

Secretly stashed away on internet browsers but easily found on Windows Explorer

I seem to be facing a problem that is reminiscent of this After cloning a Laravel project from Github and setting it up on my local Wamp server with a designated hostname, I encountered a "500 internal server error" when trying to access the project throu ...

rectifying file extension hyperlinks

While designing a webpage on my MacBook's local server, I unintentionally omitted the ".css" file extension in the href attribute of a link to my locally stored stylesheet. The mistake went unnoticed until I transferred my files to an externally hosted ser ...

retrieve data from the server using the localhost address

Currently, I am hosting both the front-end (React) and back-end (nodejs) on the same Linux server. Within my front-end code, there is a fetch request to the back-end that requires the specific IP address and port to be hardcoded like this: fetch('http://1 ...

WebStorm: Exploring HTTP server choices for both local development and cross-platform compatibility

Recently, I decided to give WebStorm 5.0 a try with AngularJS for testing purposes. However, I encountered an issue - I couldn't figure out how to set up or add a server for my HTTP files. Currently, I am using both a Windows 7 PC and a Mac. I' ...

serving files using express.static

I have set up express.static to serve multiple static files: app.use("/assets", express.static(process.cwd() + "/build/assets")); Most of the time, it works as expected. However, in certain cases (especially when downloading many files at once), some fil ...

Is it possible to have the node server and client operating on separate ports?

Here is the code that runs from a single call in my package.json: const express = require('express'); const app = express(); const port = 3000; //raspberryPI //const dotenv = require('dotenv'); const { ChatClient } = require("dank-twitch-irc"); ...