Skip to main content

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
1 answer
23 views

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally

Today I installed Apache2 on my Linux Mint 21.3 and was greeted with the following message when running sudo apachectl configtest, i.e. configuration test: AH00558: apache2: Could not reliably ...
Vlastimil Burián's user avatar
1 vote
0 answers
21 views

Two VirtualHosts after Certbot which created second one, can I concatenate them somehow?

I am on Ubuntu22.04-based OS. I struggle with many issues, and this is the first to be addressed concerns Apache version : # pwd /etc/apache2/sites-enabled # ll total 0 lrwxrwxrwx 1 root root 38 2024-...
Vlastimil Burián's user avatar
0 votes
0 answers
50 views

What's the correct way to forward a HTTPS connection?

I am pretty new to Apache2 and DNS so I'm hoping to find help here. I have a Domain i purchased and want to achieve the following: example.com leads to my homepage (that works), discord.example.com ...
HardwareNoob's user avatar
0 votes
2 answers
42 views

Which one? <VirtualHost> in etc/httpd/conf/vhost/host.conf or etc/httpd/conf.d/ssl.conf

CentOS7 Apache 2.4.6 regarding /etc/httpd/conf/vhosts/host.conf & /etc/httpd/conf.d/ssl.conf I have both these files and both define VirtualHost This seems like a recipe for disaster? Should ...
ScottD's user avatar
  • 51
0 votes
1 answer
111 views

Reasons cookie with samesite=none is not sent?

I have a fairly high traffic service that relies on a samesite=none cookie. I have seen that this cookie is not sent for about 1% of users in a cross domain context. This is the exact case my site ...
angryangryhippo's user avatar
2 votes
2 answers
379 views

How to have 2 servers, different paths with same domain?

Looking for some advice on the following: I'm wanting to have two servers with same domain. Not looking to have subdomains. Domain: https://example.com Server A: https://example.com/games/abcs13343/...
YaBCK's user avatar
  • 123
2 votes
1 answer
62 views

Are keeping longterm redirects necessary, to maintain SEO Trust?

Problem background: I work in a project where the client has a blog and different guides built during the last 9 years. So there are thousands of articles. There are a lot of backlinks in online news ...
SWiggels's user avatar
  • 121
1 vote
0 answers
52 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
23 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
52 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
77 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
389 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
9 votes
2 answers
8k 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
  • 91
8 votes
1 answer
4k 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
1 vote
1 answer
371 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
2 votes
1 answer
676 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
622 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
878 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 ...
mister mcdoogle's user avatar
4 votes
1 answer
252 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
32 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
838 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
300 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
15 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
62 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
36 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
145 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
53 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
45 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
92 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
80 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
3k 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
112 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
826 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
561 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
764 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
761 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
286 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
236 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
10 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
155 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
253 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
63 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
1k 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
446 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
153 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
66 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
304 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

1
2 3 4 5
9