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

What's the difference between REQUEST_FILENAME and REQUEST_URI in apache configuration?

I don't see any posts discuss the differences between REQUEST_URI and REQUEST_FILENAME, while I see many posts use them interchangeably. I turned on the mod_rewrite log (LogLevel alert rewrite:trace8), replaced REQUEST_FILENAME with…
Rick
  • 309
  • 2
  • 4
  • 15
2
votes
1 answer

Ubuntu: Apache2 not loading PHP-FPM php.ini

I need some help on Apache2 not loading the php-fpm php.ini. I have installed php-fpm successfully, created the pool and other configurations but Apache2 doesn't change the Server API from Apache 2.0 Handler to FPM/FastCGI fastcgi.conf in…
camilox
  • 23
  • 4
2
votes
0 answers

Apache PHP REST API handle/block web attack attempts

We're currently running a PHP API (all URL's get rewritten to index.php for route-handeling) on an Apache Debian server. Edit: (I think I might have landed on the wrong StackExchange for this question, so my apologies for that, came here from…
Bert Maurau
  • 121
  • 2
2
votes
0 answers

Downloading EXE From Web Throws 403 Forbidden nginx

I have a file uploaded to our website under a /Downloads folder, which I created. The download link, similar to: A Sample Download Link had no issues downloading up until a few weeks ago. I am not sure what changed. I now receive(d) 403 Forbidden…
Sarah Weinberger
  • 421
  • 2
  • 11
  • 23
2
votes
1 answer

Apache incorrectly resolves requests with paths starting with /index.php/

In reviewing access logs I've noticed the below automated vulnerability scan for which Apache is returning a 200 status: POST /index.php/api/Uploadify/preview HTTP/1.1 There's isn't a rewrite rule in place for this VHost and the file/URL doesn't…
scottlimmer
  • 123
  • 3
2
votes
0 answers

apache2.service: Failed with result 'exit-code'

I was trying to configure hosting 2 websites on my EC2 instance using VirtualHosts (Apache2). After setting the two VirtualHosts, I'm unable to restart the apache2 service. When I try to do that, I get this error: Job for apache2.service failed…
Aman Dwivedi
  • 21
  • 1
  • 2
2
votes
2 answers

False alarm on zabbix trigger in web scenario

I have a website whose running on Apache Server. I want recieve a notification every time when a web site falling down.I created a trigger: {Zabbix server:web.test.fail[http:example.com].sum(#6)}>0 But website running not well and i receive a error…
2
votes
1 answer

How to disable port 80 and enable port 443 for https in apache2 on Debian?

I installed apache2 on my Debian server, and I want to completely disable HTTP over port 80 and only have https over port 443. This is my current ports.conf file ports.conf This is my 000-default.conf file 000-default.conf and this is my…
Ryan
  • 23
  • 1
  • 1
  • 5
1
vote
2 answers

Apache2 fails to find a newly created page

I've just installed an apache server on Ubuntu, everything went well and I can access the starting page. However, I want to create another page which is located in /var/www/test. I want to be able to access it via address…
dywan666
  • 160
  • 8
1
vote
1 answer

Apache2 error "ModSecurity: Found another rule with the same id" Ubuntu18.04

downloaded v3.2.0 https://coreruleset.org/installation/ following instructions located in file INSTALL But apache cannot start and returns this error - AH00526: Syntax error on line 800 of /etc/apache2/crs/crs-setup.conf: яну 19 01:36:09…
1
vote
2 answers

Does HAProxy support multiple subdomains within one server?

I currently have a structure with an Apache 2 server with multiple subdomains. As the example below: ServerName www.example.com ServerAlias example.com DocumentRoot /var/www/main ServerName…
Tom
  • 289
  • 3
  • 13
1
vote
2 answers

Can I limit data transfer within timeframe per IP address?

I'm hosting some relatively large files on my website, and it struck me that it would be trivial for someone to create a script that keeps downloading them over and over again, chewing through my data transfer and costing me money. Your typical home…
1
vote
1 answer

Squid as Reserve Proxy for HTTPS

On a Debian Machine Squid and Apache is running. HTTPs is enabled with Certbot (Lets Encrypt). I have several Domains (Vhosts) and I am using one IP-Address for all Domains. Apache is listening on Port 81 (HTTP) and 444 (HTTPS) My squid.conf looks…
Gill-Bates
  • 585
  • 2
  • 8
  • 23
1
vote
1 answer

Recommended htaccess breaks all static content

I am struggling to get my website's CSS, IMG and JS resources to show. My website has this structure: root classes templates public images scripts styles index.php Procfile apache.conf Now, I know this problem is…
Jimmy
  • 269
  • 4
  • 7
  • 23
1
vote
1 answer

Which user should be the owner of the web root in SLES 12?

I'm setting up a SLES 12 system for running web applications on it. There is already a /srv/www folder and it's owned by root. So I'm going to reassign it to another user. Is there a good practice / standard in Suse Linux Enterprise Server, what…
automatix
  • 702
  • 3
  • 7
  • 20