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

how to undo 'Alias' in Virtualhost

I wanted www.domain1.tld/domain2 to point to /www/directory2 So I added an 'Alias line' to my Virtualhost config apache2/sites-available/domain1.conf like this: ServerName www.domain1.tld DocumentRoot /www/directory1 …
thanks_in_advance
  • 173
  • 1
  • 2
  • 8
0
votes
0 answers

Apache maximum memory size per child

Running apache 2.0 on ubuntu 14.04 (MPM prefork), I'm seeing multiple child workers with variable "RES" megabyte values (as expected). While I have plenty of RAM to handle all of these processes (i.e. optimization at this point to limit the number…
dter
  • 101
  • 1
0
votes
1 answer

Why `apache2 -k graceful` gives this error?

I know the thread Apache2 config variable is not defined but here the problem is most probably about ownership/permissions of the newly created user, see the bottom of the thread for the hypothesis of the problem. I run in Raspbian Jessie sudo…
0
votes
0 answers

Subdomain is not catched by domain virtual host

Using apache2 on Ubuntu server 22.04. 0-default.conf //ServerName and ServerAlias undefined 0-default-ssl.conf //ServerName and ServerAlias undefined …
yaugenka
  • 115
  • 5
0
votes
1 answer

apache2 mod_rewrite rule error (although i think i did everything correctly, and have exhausted google's searchresults)

this rewrite rule is not hitting it's mark :( RewriteCond %{REQUEST_METHOD} ^(GET)$ RewriteRule ^/wiki-search/(.+)$ NicerAppWebOS/index.php?app-wikipedia.org-search=$1 [L,END,PT,DPI] apache log (with rewrite:trace6 set in apache…
0
votes
1 answer

Apache 320 redirect loop with correct htaccess and virtualhost conf

I am web designer and I manage a VPS Server. Server is LAMP Ubuntu 18 apache2 PHP 7.4 root index.html This page isn’t working test.com redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS Have checked the .htaccess and…
SACHIN HD
  • 3
  • 3
0
votes
2 answers

Apache Httpd: Logging Access for Non-privileged Users

I’m wondering if it is common for Apache HTTPD admins to allow read access or read access to copies of /var/log/httpd/${vhost}_error_log? I administer an Apache web server for a University CS department. At times we get tickets in frustration that…
0
votes
1 answer

How enable modsecurity only one site? in edit .htaccess?

nano /etc/apache2/mods-enabled/security2.conf SecDataDir /var/cache/modsecurity IncludeOptional /etc/modsecurity/*.conf IncludeOptional /usr/share/modsecurity-crs/*.load i try in…
dr.ipkins
  • 1
  • 1
0
votes
0 answers

Website not loading. No access logs created

I have a server running apache2 on Ubuntu 20.04 and Virtualmin software. For one of these domains, the site just stops loading and timeout occurs in the browser. When this happens there are no access logs created so I think the request never even…
Whip
  • 250
  • 1
  • 2
  • 10
0
votes
2 answers

Why is my browser displaying the Content-Type line?

Following what's described here --- https://httpd.apache.org/docs/2.4/howto/cgi.html --- I've created a tiny Perl document: #!/usr/bin/perl print "Content-Type: text/html; charset=utf-8\n\n"; print "Hello, World."; and called it first.pl. I've also…
John
  • 103
  • 2
0
votes
1 answer

Cannot Start Apache2 - httpd bound to port 80

I have a fresh install of Ubuntu Server 22.04, on which I installed apache2 via apt-get install After the installation I got the following error whenever I tried to start Apache2: (98)Address already in use: AH00072: make_sock: could not bind to…
0
votes
1 answer

Issue with Web Server running PHP thru Reverse Proxy

I'm using an NGINX reverse proxy, with wild card certs installed on the reverse proxy. Routing the NGINX reverse proxy traffic to standard web servers that are running Apache2 and NGINX Web services is working great. However, routing to a server…
0
votes
1 answer

How to permanentely change Apache Timeout by using include files?

If I edit Timeout in /etc/apache2/conf/httpd.conf then it works for awhile but eventually gets overwritten. Now, I know it says to use the include files like pre_main_global.conf. So, do I just put Timeout 1000 in pre_main_global.conf and rebuild…
Ryan
  • 153
  • 5
0
votes
0 answers

Multiple site on apache 2

i have a apache 2 installed on my ubuntu 22.04 server, the server the server was working with multiple sites configured with http://ip_address/site_name and every site was in /var/www/html/site_name . After an bad installion of another site i lost…
0
votes
0 answers

SVN only fails to commit new files that have been svn:copied with RA layer request failed error, changes and additions work fine

Whenever I try to commit a new file that has been created using svn:copy I get the following error: RA layer request failed Commit failed (details follow): Unexpected HTTP status 502 'Bad Gateway' on '/!svn/rvr/521/Project/trunk/image.png' In the…