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.
459 questions
0
votes
0
answers
10
views
Apache2: I can server cgi files or .HTML but not both
I am struggling with Apache2 configuration to serve CGI (.py) and .HTML files on the same website.
if I run 'a2enmod cgi' my .py files can be served but my HTML Files can't be served.
if I run '...
1
vote
0
answers
14
views
Apache Reverse Proxy with local BIND9 zone CNAME override
I have cPanel & WHM v130.0.14 STANDARD running in an EC2 instance. Trying to setup a reverse proxy with Apache2 by setting a CNAME some.example.com (not the real one) to forward the request to api....
0
votes
0
answers
15
views
Usage of SSL directives in Apache backend-only https reverse-proxy?
I've recently migrated an existing Apache2 webserver config from a "traditional" Debian-based linux machine to an AWS EKS environment using the hub.docker Httpd Docker official image instead....
1
vote
1
answer
62
views
where is cPanel's SERVER_ADMIN (env var?) coming from in cp_errordocument.shtml?
One of my sites has a URL that is currently giving a 500 error, and I happened to notice that it says to contact the server administrator at a wacky email address. I am using WHM and cPanel to run ...
0
votes
0
answers
22
views
How can I set the document root of a subdomain to a root directory WHM?
I'm trying to install openProject on my vps from bluehost. I have a root access to whm and created a cpanel account within WHM.
When installing openProject I can't change the install directory (or at ...
0
votes
0
answers
42
views
mod_rewrite rules to strip body content when using HTTP HEAD request
I experimented with some sites including my own using CURL.
When you request a website with a HEAD request, its supposed to return only the HTTP headers, whereas a GET request, it also returns the ...
0
votes
0
answers
34
views
Sessions of apache webserver expiring - forcing logout of users (non php)
I have got some webservers running behind a proxy-server. These webservers are running an application, but it seems users are getting a 'session expired' error. This error forces a logout and users ...
0
votes
1
answer
41
views
How come my backend control panel (cPanel) icon appears on password auto-fill selector......?
I've just upgraded my FF browser to v133, and encountered a strange fenomenon that I believe has something to do with my server configuration:
I have no idea if it is somehow related with a similar ...
0
votes
2
answers
48
views
using environment variable from 2 sources in .htaccess causes HTTP 500 error
I came across a strange problem today when updating .htaccess to update my site.
Like most sites, when a user requests a resource, it's fed through a script for processing. In my case, I have ...
0
votes
1
answer
39
views
Apache: prime SSL cache or rotatelog?
I found myself in a situation again.
And we know google is in love with pages that load fast.
Since I run a server with apache and Cpanel, I configured it to rotate apache logs every 24 hours (thats ...
0
votes
1
answer
149
views
lowering maximum connections allowed per ip without making google unhappy
I run my website on an apache server and I noticed something interesting and I have discovered it through testing with apache bench.
The page I'm testing is the IP address my server runs on and that ...
0
votes
1
answer
431
views
Enforcing HTTP/1.1 and up on apache
Seeing that most people use HTTP/2.0 or HTTP/3, I thought of making changes to apache so it refuses connections to those using HTTP/1.0 or lower.
Before suggesting mod_rewrite, I want to apply ...
1
vote
0
answers
60
views
Apache mod_substitute & mod_proxy_html not doing anything, using mod_proxy in Plesk
I have this code (which works) in Plesk in Customers > Some Customer Name > new-domain.com > Hosting & DNS > Apache & nginx Settings > Additional Apache directives (for both ...
1
vote
2
answers
87
views
SEO efficient 301 redirects (non-https to https, non-www to www) in 1 hop
Performing an audit of my site revealed multiple 301 redirects to achieve a HTTPS, www. variant, with a trailing slash of all directories.
Ideally I'd like to make only one 301 redirect from any url ...
1
vote
1
answer
42
views
disabling request for (valid resource)/.htaccess in apache 2.4
Ok, lets say I have a normal text file on my server in the document root.
Suppose the folder on the system assigned to document root is /doc.
The filename will be a.txt (stored as /doc/a.txt)
The ...