Questions tagged [apache2]
Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.
apache2
7,983
questions
0
votes
0
answers
7
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 ...
0
votes
0
answers
28
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 ...
0
votes
0
answers
6
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 ...
0
votes
1
answer
38
views
Problem of memory leak with PHP and queryFontMetrics from Imagick
I've been using Imagick etqueryFontMetrics 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, ...
0
votes
0
answers
12
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 ...
1
vote
1
answer
27
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&...
0
votes
0
answers
15
views
Created a website in Ubuntu24.04 need to link my Suqarespace Domain [closed]
I bought a squarespace domain a while back and now ive been building up my website through Ubuntu 24.04, I now want to connect the squarespace domain to my server, I cant seem to make it work. Apache2 ...
0
votes
1
answer
63
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/...
0
votes
0
answers
27
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 ...
0
votes
1
answer
35
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, ...
0
votes
0
answers
8
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/...
0
votes
0
answers
15
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....
0
votes
1
answer
28
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 ...
0
votes
1
answer
82
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 ...
0
votes
1
answer
33
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 ...