Questions tagged [apache2]

The Apache HTTPd Server. When asking questions about virtualhosts, please include the output of the following command: "apache2ctl -S" (or "httpd -S" depending on your OS)

The Apache HTTP Server is a popular Open Source Web server. This tag should be used for general questions about Apache HTTPd.

Although there is large degree of commonality between the different versions in the 2.x branches, please consider using the Apache-2.2 or Apache-2.4 tags instead for more specific Apache HTTP Server related questions.

Documentation for all major versions is both comprehensive and has a high degree of accuracy.


1741 questions
2
votes
2 answers

Apache server – trying to use Location directive in .htaccess

I need to remove all caching when a specific path (/foo/bar/) is called on my website. My managed hosting support tells me that I should do this in .htaccess and I have tried to use the Location directive, like so: Header…
TBJ
  • 171
  • 1
  • 8
2
votes
2 answers

Force a HTML form to submit over IPv4

I have a web page that has a simple HTML form in it, like so:
When the Server this is hosted on is reachable both over…
Florian Bach
  • 164
  • 5
2
votes
1 answer

apache2 Path rewrite to Get Parameter - Make Slashes work

The following is my current .htaccess file. If I open https://example.com/test and it doesn't end with one of the endings specified in line 2, it will open https://example.com/index.php?url=test RewriteEngine on RewriteCond %{REQUEST_FILENAME}…
OfficialCRUGG
  • 55
  • 1
  • 4
2
votes
1 answer

Enabled brotli mod in apache but still wordpress not using brotli

I have installed brotli on my apache server. The problem is Wordpress is not using brotli compression. It uses gzip only. I have turned off zlib.output_compression, disabled cdn and WP-Rocket but still its using gzip and not brotli. I have even…
Rahul Biswas
  • 139
  • 1
  • 1
  • 14
2
votes
1 answer

Varnish cache enabled but still getting age: 0 in header

I have installed varnish on my server alongside apache. Its an SSL site. So I use apache for SSL termination with varnish. The problem is when I use the curl -I command, the headers show that age is always more than 0. Same case when I test my site…
Rahul Biswas
  • 139
  • 1
  • 1
  • 14
2
votes
1 answer

How can I redirect back from https to http URLs after I removed a SSL certificate of lets encrypt in apache2 & nginx

I configured a certificate of let's encrypt using certbot-auto and the https worked but when I was trying to remove the certificate of my domain using certbot-auto delete... my wordpress and phpmyadmin site stopped being recognized, it keeps…
2
votes
0 answers

503 Service Unavailable error after PHP 7.3 was installed and PHP 7.0 removed

I have a forum that was originally running on Ubuntu 16.04.x LTS with PHP 7.0 and apache2. Recently I installed PHP 7.3 and updated the apache configuration. The system is also upgraded to Ubuntu 18.04.x LTS. Here is the output of ls…
L13hyr
  • 21
  • 1
  • 2
2
votes
2 answers

How to choose which IP apache2 uses globally

I have a server with 3 IPs and what to choose which IP apache2 uses, so it completely doesn't use the other 2 IPs anymore and Port 80 on those IPs is free for other applications. I searched, but I didn't get any result that answers my question...
OfficialCRUGG
  • 55
  • 1
  • 4
2
votes
1 answer

Apache: Use RewriteRule as proxy of sort

I'm trying to host my front-end on some shared hosting solution, but face some issues with that. Note: This is not supposed to be the definitive hosting solution, but I'd be able to manually test things more accuratetly that way. My front-end needs…
Askirkela
  • 131
  • 5
2
votes
1 answer

If you are running php-from does tuning the apache mpm still do anything?

So I switched to php 5.6 with fpm. I see there are now only 4 apache processes but about 400 php-fpm56 processes. I've been tuning the php-fpm process (to little effect) by playing with the pm.xxxxx variables. But I'm curious, should I still try…
Mark
  • 211
  • 3
  • 7
2
votes
1 answer

Convert nginx rules to .htacees

I am trying to convert my nginx blocks to apache(.htaccess) file but not able to achive it. Can you please help me with this location = /index.php { if ($arg_a = get) { return 301 /$arg_a/$arg_b; } } location = /home.php { return 301…
Kalpit
  • 121
  • 4
2
votes
2 answers

EC2 / LAMP with a temporary File System

Ok - this is a weird one. I've now got my domain pointing to a new EC2 instance running our website, but initially I thought I had some issues with file permissions, has now turned to be where the web service is holding a completely separate file…
Jester
  • 121
  • 1
2
votes
1 answer

Loading website on port 1433 without using ":1433"

Boss wants me to set up a website so that by typing "https://www.example.com" (no :1433) in the address bar of a web browser, the request will go through port 1433 on a Watchguard Firebox to an apache web server with domain-ssl.conf…
NeghVar
  • 21
  • 1
2
votes
1 answer

Apache redirect http to https except specific source

I want to be able to redirect all traffic from http to https on our apache config, except for if the incoming request is from a specific source (in this case, it's originating from the same IP as the server). Context: we have a Zend server running…
2
votes
2 answers

Do not log successful apache requests

I want to get rid of superfluous logging in Apache. I've find tutorial how to use setenvif module for that purpose, setting variable dontlog. The only problem is, I don't see on the criteria list what is the most interesting for me, the http…