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

Website on Ubuntu 20.04 will not show to public

I'm facing a strange issue, at least to me, that I can't crack. My domain is fully propagated according to whatsmydns.net: whatsmydns.net report Yet dig won't give me an ip: ; <<>> DiG 9.16.1-Ubuntu <<>> defactocannabis.com ;; global options:…
0
votes
0 answers

apache proxy forward to a dynamic url set in the http header

I have an app server, which uses an apache server as a forward proxy to access the Internet. The forward proxy config on the apache server looks like: ProxyRequests On SSLProxyEngine On ProxyPass /…
0
votes
1 answer

I can't edit the url to remove the name of the app

I am deploying an angular 13 application in a tomcat 9 environment. This is the domain I am using: http://streamsspain.com/ And this is the result: http://streamsspain.com/streamsspain_web/ The problem that I find is that I use a proxy from apache2…
0
votes
0 answers

Don't serve HTML elements based on their CSS

Apache webserver. I don't want to customize the content management system (MediaWiki) but I do wish to not serve some of its HTML elements, via the webserver, based on their CSS selector (ID/Class). Pseudocode
0
votes
1 answer

How to convert Nginx config to Apache2 for Modoboa

I am trying to setup Modoboa and can't get the new admin page working because it needs this config which is in Nginx but I am using Apache2 can anyone help me with this…
poqdavid
  • 101
  • 1
0
votes
1 answer

Apache2 server getting so many unusal requests again and again

I am trying to configure the WordPress and NodeJS website together and I am using an apache2 server and ubuntu(20.04) virtual machine. I configured both applications successfully on my machine but after some time, I start getting unusual site down…
0
votes
1 answer

Apache server .htaccess set header for Content-Security-Policy causes 500 error

I am trying to add 2 headers to the .htaccess file but when the site is reloaded it gives a 500 internal server error First header is: Header set Content-Security-Policy: default-src https: According to this website, this should allow any assets to…
noname
  • 15
  • 1
  • 4
0
votes
1 answer

Centos7 Httpd cannot access mounted cifs directory

In a Centos 7 server I have a directory mounted with autofs in /mnt/cifs-shares/cone_files. I can read those files without issues. The directory /mnt/cifs-shares/cone_files is owned by apache:apache and has drwxr-xr-x. permissions. Now, I created a…
leonardorame
  • 327
  • 3
  • 14
0
votes
0 answers

127.0.0.1 always redirecting to HTTPS but localhost don't

I have a Kali Linux machine which I installed an apache2 web server on it. When I try to access the server using HTTP 127.0.0.1 it always redirect me to https://127.0.0.1 (which is not configured) but http://localhost don't - I can access it using…
xgeek652
  • 101
0
votes
1 answer

fail2ban: apache-badbots is not working

I have a working fail2ban configuration which not only blocks IPs but also announces them to the AbuseIPDB. This is working fine for sshd and postfix-sasl, but not for apache-badbots (and resultign from that I would assume apache-overflow isn't…
Elmi
  • 101
0
votes
2 answers

Two webservers on one LAN, running apache2 and nginx respectively, under one WAN IP address - connecting to correct server by (sub)domain name

I have two physical servers running on the same LAN. Both are running webservers; one runs apache2, the other nginx. They each have a different domain name, but the same external WAN IP address. Let's say the network layout looks like this: …
unilock
  • 13
  • 4
0
votes
1 answer

Getting random 404 requests from unknown IPs in Apache + Ubuntu server

This is strange. I just installed a new Ubuntu + Apache in my Digitalocean droplet and installed a Laravel APP there. Now suddenly I see these kind of strange POST, GET and CONNECT requests from unknown IPs. Screenshot:…
0
votes
1 answer

redirect a subdir simplycreate.online/zephyr-guide/ instead of zephyr-guide.simplycreate.online

i setup github pages successfully... on my hoster cpanel i setup subdomain cpanel entry then in github pages settings.... i add Custom domain: zephyr-guide.simplycreate.online however simplycreate.online/zephyr-guide/ is not displaying the github…
Anton A
  • 9
  • 1
  • 6
0
votes
1 answer

Apache2 a2ensite: ERROR: Site /etc/apache2/sites-available/example.com does not exist

console screenshot I realize this has been asked before, but this is not the same error and I am not able use the same solution(s) of moving the file from sites-enabled or renaming the file with a .conf extension. The config file exists in…
rick
  • 3
  • 2
0
votes
0 answers

Apache VirtualHost not loading correct certificate

We are running into issues with this seemingly simple configuration on Apache 2.4. We can't seem to obtain the correct certificate while using the Virtual Host site2.net. We always get site1.net's certificate. Here's our apacectl -S: VirtualHost…
JoeSlav
  • 99
  • 2
  • 12