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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

Apache Server Side Includes Won't Expand Variables in Regular Expressions

I am trying to use an SSI variable in an SSI regular expression like the 3rd line ( I will paste the full test code further down) <!--#set var="referrer" value="https://edcint.co.nz/...
user3421823's user avatar
1 vote
0 answers
19 views

Apache Server Side Includes Won't Parse CGI Output [closed]

I am trying to parse the output of a CGI script for SSI code. The simple CGI code is as follows and simply prints one line of SSI code #!/usr/bin/perlml -w use strict; use CGI qw( :standard ); my $q=...
user3421823's user avatar
1 vote
1 answer
31 views

Apache2 Only Showing Default Page/Unlimited Redirects

I am using a reverse proxy to show my bitwarden site. Here is the .conf in my sites enabled: <VirtualHost *:80> ServerName bitwarden.example.com Redirect "/" "...
Jason Chan's user avatar
2 votes
1 answer
53 views

Why is there an /index folder that doesn't actually exist, and how to get rid of it

I feel embarrassed asking this question because I've been doing this so long, but I guess you're never too old to learn. Environment is Rocky Linux 8.8, Virtualmin Pro 7.7, Apache 2.4.37, PHP 8.1 (FPM)...
GeekOnTheHill's user avatar
1 vote
0 answers
168 views

Why is the Chrome-Lighthouse user agent hitting my server every day?

Every day, I find lines like this one in my access.log file: 74.125.210.42 - - [08/Mar/2023:08:11:13 +0100] "GET /fr/ HTTP/2.0" 200 24160 "-" "Mozilla/5.0 (Macintosh; Intel ...
zindigi hachim no ippo's user avatar
7 votes
2 answers
5k views

AH10411: Rewritten query string contains control characters or spaces

How to reproduce the error: -- A space in my URL will trigger the error. Observation of the error: -- It seems to happen suddenly since around 3/10. ---- I did not upgrade my Apache version, but it ...
Chi's user avatar
  • 71
8 votes
1 answer
2k views

RewriteRule started returning 403 Forbidden error

I have a website that uses a set of quite simple RewriteRules of the format: RewriteRule ^p/(.*)$ /product.php?$1 [L] All was working well and still is working perfectly fine on localhost. For some ...
Jimbo Vader's user avatar
0 votes
0 answers
13 views

Reduce traffic to authentication backend servers

I have been given the job of hosting a site. This site contains only static content, ie. HTML that has been generated by a container pipeline and is updated by the same pipeline. I was told they ...
Mogget's user avatar
  • 123
1 vote
1 answer
257 views

WordPress nginx proxy manager + apache: redirect loop

I've moved (manually, db backup + folder transfer) 4 wordpress websites from one host to another, maintaining the same configuration (nginx proxy manager in docker on 80/443 plus apache on 444/https). ...
Nik Rubblers's user avatar
0 votes
0 answers
10 views

How to enable SSL on Bitnami MEAN stack

I am completely new to "webmaster"y and I need to enable SSL on my site. I currently serve my site using pm2, 0.0.0.0:80 and this works for http only. I just run sudo pm2 start server.py and ...
jaslibra's user avatar
  • 101
2 votes
1 answer
446 views

Problem with Apache rewrite with wildcard domains

I have a PHP app on Apache2 that is supposed to treat subdomains on the code level. My goal is to redirect any wildcard subdomain to the main domain's index.php. I do not use .htaccess. I searched ...
igalsc's user avatar
  • 21
2 votes
1 answer
264 views

Apache proxy, ws vs. wss and https

O-tree is a web-based software that uses websockets. I have it working on http://server.example:81 and I want it to be in https://server.example. It almost works with <Location /> ...
Jori Mäntysalo's user avatar
1 vote
1 answer
519 views

AH00128: File does not exist - index.html no loading

I want /var/www/thepowerhousemethod.org/public_html/index.html to load. Currently another page is loading instead. /var/www/thepowerhousemethod.org/public_html/index.html is displaying in green font ...
powerhousemethod's user avatar
4 votes
1 answer
221 views

Handling # uri fragments as regular requests

So I have a one-page website with multiple sections and IDs. Right now, in the nav, I have it going to #about to jump them down to a section with ID=about But I want the user to be able to go to ...
Josh Holly's user avatar
1 vote
0 answers
29 views

Using Wildcard Cerificates in Ubuntu server fails to start apache2

I am using Ubuntu 22.04.1 with apache 2.4, and I was given a wildcard certificate *.domain.net from our IT Head, from a trusted CA and is supposed to be valid. However, a bunch of online forums to ...
popat-topa-green's user avatar
1 vote
1 answer
400 views

Apache2 Reverse Proxy only showing default page

I'm completely new to Apache. I have a Django backend that serves as an API and a SvelteKit frontend. Django runs on 0.0.0.0:8000 and SvelteKit on 0.0.0.0:3000. I'm trying to setup Apache so it uses ...
kekspekmek's user avatar
0 votes
1 answer
171 views

Rewrite Ampache music server URL/DocumentRoot with .htaccess

I have ampache music server installed under example.com/ampache/public. What should I write in example.com/.htaccess file to change the appearance of example.com/ampache/public into example.com/...
immeckro's user avatar
0 votes
0 answers
14 views

How to convert an old mod-python page to something more current? And to what -- WSGI?

A long time ago -- it seems like a lifetime ago -- I wrote a page using Apache, mod-python and python 2. It's still there (http://hex.kosmanor.com/hex-bin/board). But after a long hiatus, I have ...
4dummies's user avatar
  • 101
1 vote
0 answers
19 views

Configuring Sendmail on Ubuntu Server + WordPress [duplicate]

I am setting up multiple WordPress websites(each configured on it's own virtual host) setup on an Ubuntu 22.04.1 LTS server with Apache2. I was trying to use a form app and found that the emails on ...
Gianf DS's user avatar
1 vote
0 answers
49 views

Apache server on Ubuntu not working from remote location [closed]

I have a problem with Apache server on Ubuntu being blocked on port 80 when I try to access it from outside of my local network. On network server, I'm running Django application with mod_wsgi. Things ...
MihaMarkovi's user avatar
1 vote
1 answer
33 views

Shared Files Between WebServers

I am running 4-5 webservers for a website right now when updates come to the website I login to the FTP manager for each server an update manually which really gets tiresome if there is a bunch of ...
Jigsaw's user avatar
  • 31
4 votes
1 answer
82 views

Deny non-local Apache requests that match a specific URL pattern

I need to configure my Apache (2.4) in a way, that It prevents answering requests that don't come from the same IP as the server match a specific pattern in the URL In pseudocode it must look ...
Lokomotywa's user avatar
2 votes
0 answers
52 views

Block all IP addresses

I am setting up a company intranet (extranet) and need to block all traffic requesting to the portal besides anyone connected to our VPN. What I've tried I've tried adding this to /etc/apache2/httpd....
Jigsaw's user avatar
  • 31
1 vote
0 answers
41 views

Apache reverse proxy to NodeJS app on LAN

I have a LAN network with a server and client at addresses MYSERVER.IP and MYCLIENT.IP. The server has a nodeJS app running on port 3000. Navigating in the browser from the client machine to MYSERVER....
Shawn's user avatar
  • 11
1 vote
1 answer
56 views

Does a vhost specific .conf settings over-ride the ssl.conf settings?

In my mods-available/ssl.conf ( It is also symlinked in mods-enabled ) I have these lines: SSLCipherSuite HIGH:!aNULL SSLProtocol all -SSLv3 For my vhost I have: <VirtualHost *:443> ...
Dave's user avatar
  • 35
1 vote
0 answers
59 views

When setting up Apache2 on ubuntu 20.04 for HTTPS do I need to use the <IfModule>?

I am setting up HTTPS on a new Apache2 install. I plan to use the free certs from CloudFlare and install their Origin Cert and Private Key. Would really appreciate your input. I have just run a2enmod ...
Dave's user avatar
  • 35
1 vote
1 answer
2k views

Apache2 set up on Ubuntu 20.04 problem: refused to connect

I think I have set it up properly but I am just getting a "refused to connect." message To start with it is just simple http. My domain is good-health.ml So I set up this in /etc/apache2/...
Dave's user avatar
  • 35
2 votes
1 answer
70 views

How to use Apache server with statically linked binaries

I have a github repository that has C++ source code which after running cmake and make commands builds statically linked binaries. These binaries are used with a webpage called index.html created in ...
Parimal Mehta's user avatar
2 votes
1 answer
579 views

custom 404 page not work Apache/2.4.51 if missing is in a virtual subdirectory (Debian)

this is my first question here, I hope to find a solution. I have a problem with page 404 when the missing page is in a sub "virtual" directory, is used to pass a value to php, in ...
A. Neodizzi's user avatar
1 vote
1 answer
315 views

Graceful restart of Apache may fail with avahi_entry_group_add_service_strlst saying "Not supported"

It has now happened tice that my Apache 2.4.41 (on Ubuntu 20.04) automatically performs a graceful restart around midnight, but the previously running website doesn't "come back". The ...
Hagen von Eitzen's user avatar
14 votes
3 answers
3k views

HTTP Status Code: Response with 101 or 301?

We can force SSL in apache servers with following config: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Here, we tell the apache server ...
Ar Rakin's user avatar
  • 243
1 vote
1 answer
448 views

HTTP to HTTPS Apache redirect doesn't work when used with other redirects

I have been asked to help with an OpenCart 1.5.6.1 installation on shared hosting with some redirection requirements. Some of the redirects were already present and I'm not sure if they are required ...
authentictech's user avatar
3 votes
1 answer
571 views

ServerAlias directive not working on Apache 2.4.49

I have an instance of WordPress set up at https://wordpressinstance.example. I have an instance of MediaWiki set up at https://mediawiki.wordpressinstance.example. The MediaWiki instance is ...
JohnRDOrazio's user avatar
2 votes
1 answer
188 views

Subdomain folder content returns 404, but root level works

I am setting up a subdomain - subdomain.example.com for my existing example.com to serve application with distinct origin Using DNS manager of my registrar, DNS Manager: type CNAME, name: subdomain, ...
Yasser's user avatar
  • 23
4 votes
0 answers
218 views

When Bing requests a sitemap or a robots.txt, why do I see Apache reject the 1st request with a 403, followed immediately by a 2nd successful request?

This is a small issue that has been ongoing for quite some time. When I check my Apache server log for 403's, all entries are related to Bing, and all from when it requests a robots.txt, sitemap.txt, ...
Displayname71's user avatar
0 votes
0 answers
9 views

Webserver/Minecraft server on same IP address [duplicate]

Here's what's going on. I have a 2019 windows server, and on it Im running a webserver (apache2), and multiple Minecraft servers. I have a domain with multiple subdomains for each Minecraft server ...
Motarded603's user avatar
0 votes
0 answers
131 views

Adsense not showing

This is kind of a strange glitch, but still..? I can’t figure it out. When I go to a question on my database almost every time, the ads don’t show, but when I change the url by adding page.php?...
daniel eymer's user avatar
2 votes
1 answer
181 views

Why does subdomain.localhost work on Ubuntu but not on Debian? (without hosts entry)

I have set up LAMP stacks on both Ubuntu 20.04 and Debian 10 running Apache 2.4. The VirtualHost Files are identical as follows : <VirtualHost localhost:80> ServerAdmin webmaster@localhost ...
McRaef's user avatar
  • 23
5 votes
1 answer
1k views

Cookies for www and non-www different

I just discovered that cookies for www and non-www are different. I now understand that the browser treats example.com and www.example.com as two different domains. In detail, how can I assure that ...
Alan's user avatar
  • 151
1 vote
0 answers
52 views

httpd.conf is cached and no editing is succesful [closed]

I am going to use the WSL system on Windows10 to create a website. The distro is Ubuntu. I put httpd.conf in /etc/apache2/conf-available where there are these two lines (line 40): Define SRVROOT "...
P5music's user avatar
  • 111
2 votes
1 answer
876 views

How can I rewrite all Files to the Index Folder and also Remove the Extensions

I've been looking for a solution for a few hours now, and I'm struggling to understand why the Regex doesn't act like Regex... If you just try to match a letter, it doesn't match a letter, and I can't ...
Mister SirCode's user avatar
2 votes
1 answer
357 views

Apache doesn't redirect subfolders

I'm having trouble configuring my Apache server through the .htaccess file. I want to redirect all request from my domain (example.com, www.example.com, example.com/folder1/folder2) to my new domain (...
Jose A. Matarán's user avatar
0 votes
1 answer
113 views

Expose service via DynDNS, docker container, and a different port than 80

I am toying around with my Raspberry Pi. Today I set up a container running Etherpad Lite and I would like to make it accessible through the internet. Accessing it via local/internal IP address on its ...
anjuta's user avatar
  • 103
1 vote
0 answers
45 views

Invalid command 'SSLEngine', with "--enable-ssl" configured Apache

I built an Apache 2.2.32 server on Ubuntu from sources, and if I test my phpinfo() I see: './configure' '--prefix=/usr/local/php_7.2.25' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysqli=/usr/...
Hookstark's user avatar
  • 423
1 vote
1 answer
271 views

Url changing with htaccess

I have a web presentation with some typical url adresses. Now I need to add a rewriterule for a different languages, examples: domain/club -> do not change domain/club/path -> do not change ...
Jimmy Found's user avatar
4 votes
1 answer
92 views

htaccess force https not working if there is not an URI

I've never worked with Apache, so I'm a completely newbie. I have a multihosting account on a provider website, where 3 domain are used. I want to force https connection on a domain, let's say example....
arna1998's user avatar
2 votes
0 answers
702 views

Running PHP echo $_SERVER ['DOCUMENT_ROOT']; Shows Apache Default Path

Trying to get set up and running on a new hosting company after the old one announced they are discontinuing their service at the end of the year, I am having difficulty getting the sites to run. I ...
DonP's user avatar
  • 153
2 votes
1 answer
2k views

Why does RewriteRule for "^//(.*)" (begins with double slash) not redirect to a single slash?

Have this rewrite rule in vHost context. But it does not rewrite requests that begin with //.* (double slash). Just serves them up from /.* (single slash) instead of responding with a redirect to /.* ...
NOYB's user avatar
  • 143
1 vote
1 answer
92 views

WordPress redirecting to itself

I have the following error in my apache2 error log (Ubuntu 18.04, local LAMP dev environment, PHP7.3), that I believe is causing a The page isn’t redirecting properly error: Apache Error Log [Thu Aug ...
yupthatguy's user avatar
1 vote
0 answers
102 views

Apache2 virtual host website redirecting users to router configuration page [closed]

I am running apache2 on Linux Mint Debian Edition 4.0. I am an apache newbie. I have setup a virtual host to point to my url. I am using dynu.com for virtual DNS redirection using the ddclient ...
user3670606's user avatar

1
2 3 4 5
9