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

Getting a timeout error on a newly created Apache2 web server

I created a new Debian 12 web server through Vultr. I have uploaded my simple little website up to the /var/www/html directory and when I try to navigate to the ip address, I get a The connection has timed out error. I'm fairly new to setting up a…
Rex_C
  • 101
  • 2
0
votes
1 answer

Can I stop Apache2 server with Caddy in docker container

I'm running a container with Caddy. My website is properly working. I can access it. The problem is that whenever I visit any page on my website - I can see apache2 that takes a lot of CPU (in top). Can I safely stop & delete apache service since…
Marek
  • 101
  • 2
0
votes
0 answers

Show content of loaded sites-available in apache2 under ubuntu 18

I accidentally deleted a .conf in /etc/apache2/sites-available. Is there a way to retrieve the content of it? When I type a2query -s, I see that the deleted .conf is still loaded, since I did not restart apache2 yet. I want to see the content of it.
Selphiron
  • 101
0
votes
0 answers

Apache with vhosts: Newly created site opens other site

I have a server with three vhosts, the default (domain.com), site1.com and site2.com. The server is running Ubuntu 22.04 LTS with Apache2. Until yesterday, this server only served the default domain, a simple hand-crafted site, and site1.com, which…
Emily
  • 1
0
votes
0 answers

Apache URL rewrite to hide port numbers of web servers

I have an Ubuntu server running Gitea and Jenkins on ports 3000 and 4000 respectively. I want to be able to access them through a user friendly url like http://myhost/gitea and http://myhost/jenkins. I tried using URL rewrite with the following…
0
votes
0 answers

DNS/Domain not working

I have domain, pointed to my VPS. I made VH in apache to serve simple index.htm file to check if everything works fine. Unfortunatelly something is wrong because page is not found(http://zoofi.me). Here's my DNS configuration: I added VH via some…
michal
  • 101
  • 1
0
votes
0 answers

Web server returning high number of 502 and 504s

We have a web application (LAMP stack) with traefik as a reverse proxy that is suddenly giving HTTP 502 and 504 errors on >50% of requests, both for static files and php scripts. In the traefik dashboard I can see a count of these errors, but the…
bkane521
  • 101
  • 2
0
votes
1 answer

Remote MySQL server returning: MySQL server has gone away / Error while sending QUERY packet

I have 2 servers (both running Ubuntu 12.04) APP server running apache2, PHP7.2 and a CakePHP 2.0 APP DATABASE server running mysql 5.7 When I'am trying to insert into the database a big blob (starting > 40MB) the mysql server returns the…
updevs
  • 1
  • 1
0
votes
1 answer

Redirect Error website on VPS Ubuntu "www version" redirecting to "apache default page"

Hi I am a web designer and have recently starting maintaining a VPS server I am using a Lamp VPS server running ubuntu 18 with multiple PHP websites have edited virtual host and htaccess multiple times. Problem : 1.in all websites: all "www version…
SACHIN HD
  • 3
  • 3
0
votes
2 answers

telnet to port 80 (nginx), with forward to apache2 at port 8080, fails with 'connection closed by foreign host' and no explanations seemingly anywhere

i'm running an Kubuntu 22.04 server, and want to shuttle LAN-only traffic from port 80, served as far as i can tell by nginx, to port 8080 served by apache2 (for PHP purposes). but i'm getting this "connection closed by foreign host" (presumably…
0
votes
0 answers

Replaced certificate and now Apache server will not start up

So we are running an apache server on CentOS7 and the certificate for one of our sites expired. We replaced the certificate with the new one we received from DigiCert and went to restart the apache server. However every time we try we get this…
John
  • 1
0
votes
0 answers

How to setup https website when I have own CA

I have very interesting question for me... I'm runnig webserver on linux machine (debian 10) with apache. In the same domain I have Windows Server on which are my DNS server and Certificate authority. Can I setup secured https website on the linux…
0
votes
0 answers

How can I add the (virtual) ServerName value as customer Header in Apache2?

I would like to get the ServerName on the HTTP response of Apache in a custom header. Something like this: Header Set X-VirtualServerName "%{SERVERNAME}" Please consider this string can be different from the "host" declared in the request by the…
Tobia
  • 1,272
  • 9
  • 41
  • 81
0
votes
1 answer

RApache get Query String from executing URL - howto?

I would like to get the query string from the executing URL into my R. I've installed and configured R Apache. Everything works to this extend. My R code so far is: query_string <- Sys.getenv("QUERY_STRING") cat("Content-Type:…
0
votes
1 answer

R Apache Error: package 'rJava' could not be loaded

I sucessfully installed RApache on my Debian 11 server. The following R script runs flawlessly when being executed via URL/Apache: y = rnorm(100) print(y) Sadly, another script with rJava/RJDBC embedded causes an internal server…