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
0
votes
2 answers

How to show an internal static page to IP addresses list?

I have a ubuntu 22.04 server, a list of ip addresses of users on my local network and I want to redirect http/https traffic from this list to a local informative html page. Similar to how a hotspot would. I have tried with apache2, squid, wpad (252…
acgbox
  • 376
  • 1
  • 5
  • 21
0
votes
0 answers

Redirects Stopped Working Properly

My .htaccess file look like this: Options +FollowSymlinks RewriteEngine On RewriteBase / RewriteRule /oldpage newdomain.com/newpage [R=301,L] RewriteRule /oldpage2 newdomain.com/newpage2 [R=301,L] RewriteRule /oldpage3 newdomain.com/newpage3…
0
votes
0 answers

Best way to isolate websites on Apache server

I have read about multiple approaches on isolating websites on Apache server such that if one website is compromised, wont affect the rest nor the server itself. But I was confused and not sure which approach is the best in terms of security and…
Majx
  • 1
0
votes
1 answer

Apache include value of %{TIME_YEAR} variable in an HTTP response header

I'm trying to do something like the following: Header always set Attention "you are using still using IPV4 in %{TIME_YEAR}, please blahblah etc" (please withhold commentary regarding the viability of communicating…
Displayname71
  • 109
  • 1
  • 7
0
votes
0 answers

How to use environment variable in apache config condition?

In my apache config file I'm trying to set a virtual host on port 443 IF my environment variable is not dev I have a docker container running via docker-compose which specifies the environment variables. To check the env variables are properly set,…
David
  • 11
  • 2
0
votes
1 answer

Exclude specific URL from HTTP to HTTPS redirect in apache2 virtual host

I'm looking for an easy configuration to exclude a specific URL(pattern) from my apache2 HTTP to HTTPS redirect and failed so far. Background is an API with typical authorization mechanics which should never be sent via normal HTTP, so I do not want…
0
votes
0 answers

How do you set up multiple virtualhosts on apache2 using only the server ip and server alias?

I'm trying to set up apache with multiple virtual hosts "filebrowser.com" and "videos.com" however, I'm only able to access filebrowser.com and not videos.com. I also have to enter the static IP of my server "172.16.0.6" in order to access the site.…
0
votes
1 answer

git-http-backend on apache2 can pull but not push: remote: fatal: not a git repository: '.'

(I had to replace 'http' with 'hxxp' everywhere because otherwise I couldn't post it because apparently this looks like spam) I have set up git on my server (Debian, arm). I use the git-http-backend with apache2 so that the repositories can be…
0
votes
0 answers

(Solved) Apache 2.4 multiple subdomain with fallback folder

I want to have a default folder when the folder does not exist in the VirtualDocumentRoot, I have this code: ServerAlias *.development UseCanonicalName Off VirtualDocumentRoot…
0
votes
1 answer

Openstack Glance Configutarion on HTTPS RESTAPI + Nginx Reverse Proxy

I am trying to install openstack Using ssl certs i am able to run keystone (on port 5000) but when i try to connect to glance api (port 9292) it fails it is only accessible with http not https i feel like keystone works because it has seperate…
0
votes
1 answer

Fix virtualmin domains to use individual php ini files

My server is setup to use virtualmin for managing configurations. In trying to resolve a php issue when a wordpress plugin installation, I inadvertently broke the settings on my domains so they no longer use the individual php ini files in their…
Mark
  • 331
  • 2
  • 4
0
votes
1 answer

Host multiple websites on AWS Auto-Scaling Group with EFS

I hope this is a simple question. Currently I have an Apache2 webserver on Ubuntu with multiple websites. The basic structure of the Apache is /etc /apache2 /sites-available --> the .conf files for the websites /sites-enabled --> the…
igalsc
  • 11
  • 4
0
votes
0 answers

Basic Authentication in .htaccess with RequireAll in httpd.conf

Running Apache 2.4.53 - I have a setup where in httpd.conf I have: Require all granted Require not env something Require not ip 1.2.3.4 The above is supposed to run cross VH. Then,…
JoeSlav
  • 99
  • 2
  • 12
0
votes
0 answers

Ubuntu apache2 access

I installed Canonical-Ubuntu-22.04-aarch64 on oracle Cloud and installed apache2 on it but i cant access it on the public ip and i wonder if anyone can help me out here. In the Default Security List for vcn i opened port 80 but the server returns…
0
votes
0 answers

Fail2Ban filter for Apache GSSAPI module

Does someone know if there is a Fail2Ban filter for Apache GSSAPI Module Authentication (mod_auth_gssapi)? The Fail2Ban "apache-auth.conf" filter seems not working for this kind of authentication. Thanks in advance
Fabio S
  • 101
  • 2