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

How to determine CSP for Wordpress

I'm trying to implement Content-Security-Policy headers for Wordpress but am having trouble identifying all the URL's it needs access to. Specifically, I have tried adding the header: Header always set Content-Security-Policy "default-src 'self'…
srkiNZ84
  • 571
  • 1
  • 6
  • 10
2
votes
2 answers

.htaccess is stopping a site from works while WP sites does work, why?

I have three sites running in a shared hosting (Bluehost) with a dedicated IP address. The description is as follow: example.com => this is the main site and domain, is a WP example.net => this is an add-on domain (don't know if you're familiar…
ReynierPM
  • 710
  • 5
  • 14
  • 30
2
votes
1 answer

Apache access.log flood with GET ...HTTP/1.1" requests

I have a server with Ubuntu 14.04, laravel 5.2 framework. On the last 24 hours somebody continously send flood requests from different ip adresses as shown below (log/apache2/access.log): 198.46.157.112 - - [18/Oct/2016:17:44:04 +0100] "GET…
2
votes
0 answers

How to fix Apache2 w/ suPHP to scan the correct .ini directory?

Apache2 was reading the correct area for php.ini in /etc/php5/apache2 until suPHP was added to the system. Configuring suPHP_ConfigPath in /etc/apache2/mods-available/suphp.conf gets the correct php.ini loaded, but does not correct the directories…
Michael
  • 151
  • 6
2
votes
3 answers

Nginx as webserver for 1 website and apache for another. Is it possible?

On a VPS with centos panel I've Apache as webserver and Nginx as reverse proxy. I've heard that the second is faster than Apache to handle PHP requests and I'd like to configure it as WebServer for 1 website, but I still need Apache for another…
Revious
  • 187
  • 1
  • 12
2
votes
0 answers

apache2 misconfiguration, appends infinite /index.html/ to url

I use the bash under Windows 10 with apache2 and php7 installed. I set up a vhost for http://localhost mapped to a symbolic file which is linked to a physical windows directory. When I open the url, it infinitely appends /index.html/ to the url,…
radonthetyrant
  • 183
  • 1
  • 6
2
votes
3 answers

Slow Apache2 restart with SSL

We run apache2 server with multiple sites (each has own domain or subdomain) using SSL (also multiple certificates on same IP but mostly an asterisk certificate for subdomains). Now we are having a problem that when there are more than 20-30…
RandomWhiteTrash
  • 269
  • 1
  • 3
  • 17
2
votes
0 answers

Apache userdir over Kerberized NFSv4 mount : Forbidden access

I have set up a practical room dedicated to web development learning. Users accounts are managed by a Samba 4 AD and users files are stored in a central NFS server with exports securised by Kerberos. All work fine : Users can be authenticated by…
2
votes
1 answer

Apache log : 'myipha.php not found or unable to stat' and others

I recently get in my apache error.log a long set of : [Thu Jun 30 13:03:22.005214 2016] [:error] [pid 15759] [client xx.xx.xxx.xxx:xxxxx] script '/var/www/html/myiphb.php' not found or unable to stat [Thu Jun 30 13:03:27.164111 2016] [:error] [pid…
Sharcoux
  • 179
  • 2
  • 10
2
votes
1 answer

Lets encrypt SSL certificate in Docker container via nginx-proxy

currently I am using nginx-proxy to route my subdomains to different docker containers. Now, I would like to add a SSL certifcate to my Owncloud container but I am failing to set it up correctly. What I have done: Getting a certificate via…
caiuspb
  • 159
  • 1
  • 6
2
votes
1 answer

Apache 2 Fast CGI php issue

I'm trying to set php5.6.23 as fast CGI on my server for using php7 as main version but in one of my domain, I get this error : The requested URL / was not found on this server. here is my vhost conf : ScriptAlias / /usr/lib/cgi-bin DocumentRoot…
Jeremy Talus
  • 63
  • 1
  • 8
2
votes
1 answer

sudo yum install apache2 on amazon linux fails

I've tried running the command:sudo yum install apache2 and got the following error: Loaded plugins: priorities, update-motd, upgrade-helper amzn-main/latest | 2.1 kB 00:00 amzn-updates/latest | 2.3 kB …
Kukula Mula
  • 163
  • 1
  • 2
  • 3
2
votes
2 answers

DNS: make www.example.com point to www/site/

I have a vps where a website is hosted on var/www/site rather than the usual var/www. I want a domain to point to var/www/site rather than var/www. Not sure what to put in the zones file. any hints?
dukevin
  • 1,630
  • 3
  • 18
  • 25
2
votes
1 answer

How should I modify file permissions to accomodate Wordpress

I have been successfully using the method described here: Maintained by a Single User and it has been working well for me. This is my script for all my websites: sudo chown -R WebAdmin /var/www/example.com/ sudo chgrp -R www-data…
Chiwda
  • 125
  • 5
2
votes
0 answers

Apache2 cannot get authentication to work

Running: Apache 2.4.41 on Ubuntu 20.04 I am trying to force authentication on /var/www/html but I think I have tried every combination of options possible but every single time it lets people in with following message in access.log AH01625:…