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

What .htaccess RewriteRule do I need to redirect correctly when no page is specified in the URL?

In my directory http://tanguay.info/webtech I have the following .htaccess file: RewriteEngine On RewriteRule ^$ http://127.0.0.1:49900/home [P,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$…
Edward Tanguay
  • 1,209
  • 4
  • 22
  • 31
2
votes
1 answer

AWS file system ID for disk on 'trial' server

I created a free trial AWS server a year ago, but am only getting around to using it and going through some of the tutorials. I'm trying to set up an initial httpd web server for practice and their instructions have at one step: Mount your Amazon…
Mitch
  • 123
  • 3
2
votes
0 answers

Disable logging of requests from certain IPs apache2

I wan't to stop logging accesses from two of my local IPs, this is what I added to apache2.conf: ... SetEnvIf Remote_Addr "192.168.0.1" dontlog SetEnvIf Remote_Addr "192.168.0.192" dontlog CustomLog…
2
votes
1 answer

Let's Encrypt wildcard certificates and Apache 2 not working

I am trying to set up a wildcard certificate using Let's Encrypt on an Ubuntu 18.04 server running apache2, for domain abc.def.com (not the real domain name) and all subdomains (*.abc.def.com) I have succeeded in generating the certificate manually…
Ryan Griggs
  • 963
  • 2
  • 14
  • 29
2
votes
1 answer

Webserver error 503 Troubleshooting

I have a nice VPS with 4 cores, 180ssd, 8gb of ram. My website is a custom website, that autogenerates from a database, and on the first run it is cached in memory using redis. The issue that I am having is that sometimes, specially after I flush…
2
votes
2 answers

Apache and MySQL processes running at 100% CPU

I have a production server that's usually very stable, and has been for a very long time. Last night, it suddenly started showing very high loads (150+). Deactivating Apache will decrease the load immediately. Here's the output of top, shortly…
fred2
  • 97
  • 9
2
votes
1 answer

What is PHP7 error "not found or unable to stat"?

I am receiving the following error log on my apache2 server: [Mon Dec 24 09:38:48.580631 2018] [php7:error] [pid 19547] [client 5.188.210.12:11267] script '/var/www/echo.php' not found or unable to stat, referer: https://www.google.com/ [Mon Dec 24…
dmuensterer
  • 143
  • 1
  • 6
2
votes
0 answers

apache2 - ERR_SSL_PROTOCOL_ERROR

I tried to install letsencrypt on my apache2 server (running on Ubuntu 16.04). It seems to work fine but for some reason i got the following error on my website: ERR_SSL_PROTOCOL_ERROR i cant figure out what's wrong and i hope you'll be able to help…
Zer0NimO
  • 21
  • 1
  • 2
2
votes
0 answers

Safari fails to load some resources over http/2 with Apache

I am experiencing an issue in Safari only where sites loaded over http/2 on our Apache 2.4 servers will intermittently (every 3-5 requests) fail to load certain resources. The pages always seem to load, but the JS, CSS, and images seem to fail. I…
Josh
  • 143
  • 2
  • 11
2
votes
1 answer

Convert apache config to nginx equivalent for logs

I have this custom log in apache SetEnvIFNoCase User-agent "ELB-HealthChecker/2.0" skiplog LogFormat "%t \"%r\" %>s %O | client:%a | Local:%A | Host:%v | %H | %m | %P(pid) | TimeTaken:%T | %q |DataReceived:%I-Sent:%O-Total:%S | %l | %u |…
Master
  • 105
  • 1
  • 5
2
votes
3 answers

What's a good way to hide "wordpress" from a WordPress URL?

I have an Apache2 web site with several different resources all installed directly under the DocumentRoot: http://example.com/mycodeigniterapp http://example.com/wordpress http://example.com/phpmyadmin etc. etc. GOAL: I'd like for users to go to…
paulsm4
  • 280
  • 1
  • 12
2
votes
1 answer

Connection reset by peer while using apache as reverse proxy

I've installed Transmission daemon on machine #0(Ubuntu 16.04.5, native), and Apache2(Apache/2.4.18) on machine #1(Ubuntu 16.04.5, on XCP-NG 75). Apache is now reverse-proxying transmission for adopting TLS to transmission rpc. Wherever I connect…
Sam
  • 45
  • 1
  • 1
  • 4
2
votes
1 answer

Certbot connection refused whilst /.well-known/acme-challenge is accessible

I'm having issues to renew my certificate for my Nextcloud instance with letsencrypt on my ubuntu 16.04 server. Here is my renewal conf: # renew_before_expiry = 30 days version = 0.22.2 archive_dir = /etc/letsencrypt/archive/cloud.example.com cert…
wouter205
  • 123
  • 1
  • 4
2
votes
1 answer

Apache Redirect based on directory match & Add another letter to the destination URL

So here’s what I’m trying to accomplish. I have this link, I want to 301 redirect: Origin…
Ja Hi
  • 23
  • 2
2
votes
2 answers

How can I get Apache to log all requests from the same visit with the same ID?

Why? I am currently purchasing traffic from Adwords to my e-commerce site. On Adwords, I can see how many visits I've purchased and I am trying to verify the number of visits to my site by analyzing Apache's access_log. Note that I do have Mixpanel…
Tinker
  • 171
  • 1
  • 1
  • 5