Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Apache2 - Cache-Control configured twice

I have tested an Apache2 with testssl and was informed that Cache-Control should be configured twice. I was able to confirm the same in another test. It is an Apache2 2.4 On the one hand, the old ...
deleted's user avatar
-1 votes
1 answer
20 views

caught SIGWINCH uploading a big file using apache2 and php

I serve a php page using apache2 that allows uploading files // Check if the file was uploaded if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['file'])) { $file = $_FILES['file']...
banan3'14's user avatar
  • 4,878
0 votes
0 answers
16 views

Configure Apache to serve a path directly, while proxying everything else to /

I want Apache to serve the /filemanager path directly, while proxying everything else to /. I tried to use this configuration, but I'm always redirected to / <Location /filemanager> ...
A Bren's user avatar
  • 21
0 votes
0 answers
20 views

php and http encoding chuncked post request

I'm using vscode in Ubuntu OS 64 to use an esp32 as client from server running in the ubuntu. The esp32 send POST request with encoding chunked and I'm trying to get this data using php. But I don't ...
Gaston Melo's user avatar
0 votes
0 answers
24 views

Redirect port 8080 to a folder with apache

I would like to forward port 8080 to my Test folder. I can also reach this. But the website under port 8080 refers to /css/example.css. If I now call up my website 192.168.200.20/test, the CSS file is ...
NathanHades's user avatar
0 votes
0 answers
11 views

mod rewrite for removing ? from the url

Am using apache2, I require to remove the question mark from my url. For example if my url http://192.168.20.120/docs/pay/?2023/04/text.pdf I need to remove ? and result http://192.168.20.120/docs/pay/...
tjtharappel's user avatar
0 votes
0 answers
38 views

Reverse proxy for a streamlit app with apache2 under a subdirectory

I am running a streamlit app on a dedicated server on the internet. The app runs on port 8501. I have setup a reverse proxy with apache2 to redirect the traffic to port 8501. I also have https and a ...
Olivier K's user avatar
1 vote
0 answers
62 views

shell_exec does not support 24bits nor 8 bits color mode

I'm running a command with shell_exec from ascii-image-converter (https://github.com/TheZoraiz/ascii-image-converter) which return <?php $cmd = "ascii-image-converter $fichier -s ./assets/...
SoCkEt7's user avatar
  • 2,277
0 votes
0 answers
18 views

Bundler::RubyVersionMismatch when using Passsenger with Apache2 for rails application

Here is the error: Your Ruby version is 3.0.2, but your Gemfile specified 2.7.7 (Bundler::RubyVersionMismatch) /usr/lib/ruby/3.0.0/bundler/definition.rb:469:in `validate_ruby!' /usr/lib/ruby/3.0.0/...
Vishal SebastiAn Sharma's user avatar
0 votes
0 answers
35 views

Cgi script doesnt write in log file with Apache

I'm trying to execute a CGI script using Apache2 on my server (running Debian). The script is supposed to perform some operations and log its progress to /tmp/cgi_errors.log. When I access the script ...
Totopoildo's user avatar
0 votes
1 answer
64 views

Node.js API Requests Missing /api Prefix When Using Apache2 Proxy on VPS (Works Locally)

Question: I have a MERN stack project with a backend API running on a VPS server. My setup works perfectly on my local machine, but when I deploy it to the VPS, the API requests are missing the /api ...
Muhammad Zeeshan's user avatar
0 votes
0 answers
21 views

URL Format with Params

This is more a theoretical question. Think of an Apache2 Web server where the structure is as following: public_html - api/ -- users/ --- index.php - index.php In my root index.php, I want to get the ...
Fabo0814's user avatar
0 votes
0 answers
20 views

issues updating an apache2 module to work on Arm64 on macos

I've been asked to recompile a working module to work on an arm64 based macos, ie a new M3 processor. It was originally written in C++ and only used a makefile to compile the source code. I never ...
Phil. P.'s user avatar
-1 votes
2 answers
105 views

google_ads_iframe link in the head section of some of my site web page

Why is this: <link href="data:text/css,%3Ais(%5Bid*%3D'google_ads_iframe'%5D%2C%5Bid*%3D'taboola-'%5D%2C.taboolaHeight%2C.taboola-placeholder%2C%23credential_picker_container%2C%23credentials-...
John's user avatar
  • 1
0 votes
1 answer
23 views

Dockerized drupal renders fine locally but not when proxy-passed in Apache

I successfully dockerized an existing drupal 7 website with the following: # Dockerfile FROM drupal:7.101-php8.2-apache COPY webroot /var/www/html WORKDIR /var/www/html EXPOSE 8006 # docker-compose....
Andrej Prsa's user avatar
0 votes
2 answers
93 views

2 wp sites on 1 server - always one is fast & one is slow?

I have a very odd problem: 2 seperate wordpress sites running on 1 apache server and always one site runs slow and the other fast. The peculiar thing is that the last site to receive wordpress ...
stephenla's user avatar
0 votes
1 answer
22 views

Configure an Apache2 webserver to get a 504 code

I am trying to configure my apache2 webserver in a way, that I will get a 504 http code. I've configured my apache2 webserver as follows: <VirtualHost *:80> # Configure the proxy ...
cd4user's user avatar
  • 93
0 votes
0 answers
68 views

how to install phpbolt in a debian12 / apache2 / php-fpm environment

I have a debian12 server with apache2 and php-fpm for PHP versions 8.0, 8.1, 8.2 and 8.3. In which configuration files do I have to extend the “extension” so that these are loaded when the page is ...
Klaus's user avatar
  • 1
0 votes
0 answers
77 views

Gunicorn local port 8000 with Apache reverse proxy port 443

I am trying to deploy my django project on a linux ubuntu virtual machine (from linode) using an Apache2 server. I was following the tutorial by CoreySchafer on youtube, but my out put wasn't the same ...
Soham's user avatar
  • 1
0 votes
1 answer
92 views

Apache will not enable SSLStrictSNIVHostCheck

I have two very similar Debian servers VMs, one with Debian 10 and one with Debian 12 (the problem one), with the default Apache installed from the official repo (current). I need SNI checks enabled ...
Darkblue's user avatar
0 votes
1 answer
29 views

Apache2 Redirect www to https ... this is killing me trying to figure this out

Server Ubuntu 22.04 apache2 -v 2.4.52 Website alias for this question: example.com I have configured and enabled my virtual host sites-enabled example.conf file as shown below. Default is disabled. ...
brett's user avatar
  • 195
0 votes
0 answers
21 views

Wt on Apache2 with mod_fcgid configuration throwing error

Throwing error when browsing hello.wt Ubuntu distribution: Distributor ID: Neon Description: KDE neon 6.0 Release: 22.04 Codename: jammy Apache2 version Server version: Apache/2.4.52 (...
Thomas's user avatar
  • 9
0 votes
1 answer
53 views

Server Error (500) and strange symbols inside a form

I set up a Raspberry Pi with Ubuntu server as OS. I followed this guide: Guide from digitalocean It all seemed to work good until I opened a page with a form that looks some kind of strange (unwanted ...
Blackbriar's user avatar
0 votes
0 answers
12 views

storing data in a server and linking the website to it

I have a digital ocean droplet and have an SSH client to it, I have installed apache2 into it, as I didn't have much idea related to servers. I need to store the data realtime in that cloud server and ...
Sandipan Paul's user avatar
0 votes
0 answers
35 views

Apache2 processes HTTPS on 80 not 443

Thats my site config for apache <VirtualHost *:80> Redirect permanent / https://example.net </VirtualHost> <VirtualHost *:443> #DocumentRoot /srv/www/wordpress <...
maelstrøm's user avatar
0 votes
1 answer
22 views

certbot on ubuntu 22.04 server running on AWS

I am setting up nextcloud to run on ubuntu server 22.04 on AWS EC2. My domain is hosted on BlueHost infinitycliff.com I have an A record pointing to the AWS public ip that has been set more than 48 ...
Infinity Cliff's user avatar
0 votes
0 answers
36 views

Apache2 reverse proxy 503 error for Flask Application on Ubuntu 22.04

I am trying to deploy a Flask application on port 80 using Ubuntu22.04, Apache2 and Gunicorn. I am using unix .sock file created by gunicorn. I have subsequently followed an online tutorial but with ...
SiDoesCoding's user avatar
0 votes
0 answers
52 views

apache2 webdav ran through docker is empty; even though I can see the files mounted in the docker container

I'm trying to get a webdav server running through docker compose (portainer). Below is the yaml I'm using version: '3' services: webdav: image: bytemark/webdav restart: always ports: ...
Andy's user avatar
  • 5
0 votes
1 answer
92 views

Apache Reverse Proxy Mattermost (websocket)

I’m experiencing an issue with the proxy configuration for Mattermost. My env.: Server A - Web server, proxy, and internet gateway (running Apache2) Server B - Mattermost server (IP: 192.168.100.15) ...
Karol's user avatar
  • 1
-1 votes
1 answer
35 views

Docker compose multiple Etherpad with apache frontal

I have a problem with a service built with a docker compose, I don't understand what's wrong. I have a Debian server on which I want to host 3 instances of Etherpad, each with its own configuration. ...
Aurélien Grimpard's user avatar
0 votes
0 answers
26 views

Apache2 WebServer Configuration : No 'Access-Control-Allow-Origin' header is present on the requested resource

I managed to deploy a map server: I want to set the Access-Control-Allow-Origin settings in a way that it allows only specific IP Addresses to visualize the map <VirtualHost *:80> ServerName ...
Raphael10's user avatar
  • 3,074
0 votes
0 answers
37 views

Apache config return IPV6 instead of IPV4

htaccess file looks like this because I only want to give access to authorized ip ranges: #ErrorDocument 403 "Sorry ! You are not authorized to access this page" <IfModule mod_rewrite.c&...
ss10's user avatar
  • 101
0 votes
0 answers
34 views

Error_log AH01071: Got error 'Primary script unknown' How to show fileName

After migrating to php-fpm when I try to access to an unexisting file I get AH01071: Got error 'Primary script unknown' in Apache2 error log. How can I get the filename with a full path in the error ...
ComAssistant's user avatar
0 votes
0 answers
49 views

Apache2 - protect only directory but not subdirectory

I'm trying to host a webserver with Apache2 on Debian 12. I want to limit access to webserver/dir1 with a password promt. This already works. My issue is, that webserver/dir1/subdir1 has to be ...
T0xxic's user avatar
  • 19
0 votes
0 answers
10 views

Apache2 use same DocumentRoot (Codebase) apart from different config.php file per VirtualHost

I have two Virtual Host on different ports. At the moment they have two separate DocumentRoot. BUT the DocumentRoot is actually the same (CodeBase) only the config.php file in it defines to which ...
andyk's user avatar
  • 3
1 vote
1 answer
98 views

Problem of memory leak with PHP and queryFontMetrics from Imagick

I've been using Imagick for years for my projects. And for the past few days, I've been having memory problems. My PHP code using queryFontMetrics, and at the end of the execution, it does not free ...
Wylls's user avatar
  • 121
0 votes
0 answers
18 views

Reverse Proxy with forward-target

I have configured a reverse proxy in Apache2. It gets requests by HTTPS - unwraps the HTTPS and then forwards to local HTTP-processes for /web and /rest. <VirtualHost *:4443> ProxyPass /web ...
chris01's user avatar
  • 12.2k
1 vote
1 answer
38 views

Upload file to server. Ubuntu, Apache2, PHP

This code should upload files, but it doesn't. <form name="submit" action="#" method="post" enctype="multipart/form-data"> <input type="file&...
Mary N's user avatar
  • 97
0 votes
1 answer
992 views

How to enable PHP on OS X Sonoma?

I have a new Mac Studio running OS X 14.5 Sonoma. I am trying to configure my Apache2 server to run PHP. Following suggestions found in various web pages I've done the following... I've modified /etc/...
Limey's user avatar
  • 12.3k
0 votes
0 answers
34 views

PostgreSQL authentication fails on Ubuntu server until postgresql service is restarted

I am running a Flask app with SQLAlchemy, on Ubuntu server with PostgreSQL and Apache2. SQLAlchemy gave an authentication failed for postgres error. After stopping Apache2, restarting Postgres and ...
Yusif's user avatar
  • 511
0 votes
1 answer
44 views

Is there a way to hide a part of a URL from the address bar while keeping it in $_GET?

I have a website, say, https://example.com, that runs on LAMP stack (Apache2 rewrite_mod activated) and that I would like to make multilingual. I don’t want my URLs to contain the language/locale, ...
Ivan Vetoshkin's user avatar
0 votes
0 answers
19 views

Apache SNI with redirection?

Lets say I have an Apache2 HTTPd with multiple virtual TLS-hosts for SNI. <VirtualHost *:443> ServerName www.mysite1.com DocumentRoot /var/www/site1 SSLEngine on SSLCertificateFile /path/...
chris01's user avatar
  • 12.2k
0 votes
0 answers
18 views

Can apache2 proxy provide secure commnication with a server app that has no support for SSL?

I have a hosted VPS with apache2 and SSL certificate and key (free, certbot). In DNS I created two subdomains: www.myserver.org and rstudio.myserver.org. Browser connection with https://www.myserver....
Joachim Van Meirvenne's user avatar
0 votes
1 answer
40 views

Can I download a static asset with a given url in PHP

I'm debugging a 3rd party open source application, and there is a method that compress pdf files in a zip file and then stores it in the static folder. Then an email is sent with an url that is made ...
yieniggu's user avatar
  • 404
0 votes
1 answer
100 views

ErrorDocument 403 request handling

Hello I've created an error.html file in /var/www/error_page/ to display this page in the case of a 403 error. and my /var/www/html/wordpress/.htaccess file looks like this order allow,deny allow ...
ss10's user avatar
  • 101
0 votes
1 answer
113 views

How to use self signed client certificates in ddev

I created a CA solely for issuing self signed certificates that http clients should use to communicate with several rest endpoints of our application developed in a ddev environment using apache. I ...
sclausen's user avatar
  • 1,719
0 votes
1 answer
38 views

Problem with apache passthrough (trying to "redirect" without redirecting)

I'm using an Apache server. I want to show the content of site.com/site/{URI} when site.com/{URI} is accessed, but I don't want any redirects. also I don't have access to config files, only to ....
Mayedl10's user avatar
0 votes
0 answers
35 views

Serving both php file and proxy pass to another app for iframe purposes

So, this has been plaguing me for a couple of weeks, and I am quite new at Nginx. So basically, I have an app made by using code igniter 3, served in /var/www/my-apps. My application has an OpenSearch ...
KXN's user avatar
  • 1
0 votes
0 answers
82 views

proxy:error [pid 8118] (32)Broken pipe: [client *.*.*.230:50314] AH01084: pass request body failed to [::1]:5100 (localhost) - Nodejs API

I have created an API in nodejs (nestjs framework). Now client API call reaches load balancer then LB distributes the traffic to 2 machines on which nodejs API runs but request first comes to apache ...
Sujit Verma's user avatar
0 votes
0 answers
83 views

Apache2: Syntax error when enable virtualhost for reverse proxy

Trying to configure Apache2 as Reverse Proxy: At etc/apache2/sites-available I have the x.conf with this detail: <VirtualHost *:80> ServerName x.com ServerAlias x.com ...
eperezs's user avatar
  • 11

1
2 3 4 5
160