Questions tagged [apache]
The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.
1,200 questions
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
1
answer
48
views
Apache sent "200" responses to POST requests on a page that shouldn't be able to handle them. Have I been hacked?
I'm hosting a NextJS website with Apache as the web server. And I was looking into ways to make it more secure today. I went looking through Apache's logs and mixed in with the many failed attempts by ...
0
votes
1
answer
55
views
How to solve the too many redirect in 301 redirect?
Wondering if anyone can help me with 'too many redirect' issue in my 301 redirect.
This is what I did to redirect all variations to https://www.example.com
But http://example.com is redirected twice ...
2
votes
2
answers
64
views
domain root plus Wordpress subdirectory htaccess rules
On our domain, Wordpress resides in the subdirectory "news". The WP-Print plugin is active. My wish is simple: block requests for /news/[permalink]/print//[junk]. Notice the double slash ...
1
vote
1
answer
64
views
Why isn't this Apache configuration working on HTTPS?
I have the following Apache configuration set up for my Wordpress installation and it does not serve the website over HTTPS at all, I only get the ERR_SSL_PROTOCOL_ERROR error.
I did some research and ...
2
votes
3
answers
141
views
Redirect when image is loaded
somebody is loading an image from my website on their website using the URL from my server. I would like to get back the user and redirect to my website.
In other words :
the bad guy has a webpage ...
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
2
answers
49
views
apache redirect url
I want to redirect the URL
https://olddoamin.com:9000 to https://newdomain.com
I have the following in my httpd.conf
<VirtualHost *:9000>
ServerName olddomain.com
# Simple redirect to ...
1
vote
2
answers
79
views
How do I host two domains on this nginx/apache2 webserver?
I'm trying to add a domain/website to my web server. I currently have some content being served by apache on port 8080, but requests to the server are sent through the nginx reverse proxy so I can ...
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
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
56
views
Set rel="canonical" for query strings and redirects?
I have a fedora40 system with apache-2.4.62 and GSC is reporting many of our URLs that are images, redirects or contain query strings are "duplicate without user-selected canonical."
I've ...
1
vote
0
answers
49
views
How to Set a RewriteRule Based on RewriteMap Lookup in Apache?
I’m trying to create a rewrite rule in Apache to match URLs not matching a specific value retrieved from a RewriteMap.
I have a RewriteMap defined as follows:
RewriteMap product_map txt:/path/to/...
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
146
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 ...