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

awstats "Permission Denied", but file and directories all have permission

I'm getting this notification from awstats: Error while processing /etc/awstats/awstats.conf Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.4 (build 20150714) From data in log file…
onigame
  • 131
  • 1
  • 3
2
votes
1 answer

apache2 httpd is not running

I'm running my web(+db) server on Ubuntu 15.10. It worked just fine, and suddenly I can't access my site and ping to port 80 neither 443 worked. The command service apache2 status says that ● apache2.service - LSB: Apache2 web server Loaded: loaded…
Hyungjoon Jeon
  • 23
  • 1
  • 1
  • 4
2
votes
1 answer

Apache: show error message in browser for 500 Internal Server Error

When Apache shows 500 Internal Server Error page, there is no information about the error itself. It can be error in .htaccess or something different, but you'll never know until you look into error.log. Is it possible to display error message…
cronfy
  • 691
  • 1
  • 6
  • 14
2
votes
0 answers

Rewrite rule loses query parameters

I have a webserver running apache2 with php7. In my apache config, there is a redirect rule like the following: RewriteCond %{HTTP_HOST} !^www.* RewriteRule .* %{HTTP:X-Forwarded-Proto}://www.%{HTTP_HOST}%{REQUEST_URI} [QSA,R=301,L] This should…
2
votes
0 answers

Tomcat8 unable to upgrade TLS version

I have a Tomcat8 instance running behind an Apache server which takes care of SSL offloading. The Java webapp deployed on Tomcat needs to connect to an external service which only supports TLSv1.2. I added -Dhttps.protocols=TLSv1.2 to setenv.sh of…
flipcoin
  • 21
  • 2
2
votes
2 answers

SSL/TLS Client Authentication: How to see Acceptable client certificate CA names?

I have an HTTPS Service which uses SSL/TLS client authentication and requires a certificate to be presented. How can I get a list of Acceptable client certificate CA names using openssl s_client without presenting a client certificate? If I try…
Alastair McCormack
  • 2,184
  • 1
  • 15
  • 22
2
votes
0 answers

mod_security gives "Multipart parser detected a possible unmatched boundary" for Wordpress

I have mod_security (apache2) installed on my server hosting Wordpress websites. When I attempt to install a plugin by uploading a .zip file from the disk it fails with 403 Forbidden and "Multipart parser detected a possible unmatched boundary" in…
mikryz
  • 311
  • 1
  • 3
  • 9
2
votes
1 answer

Use of '\' Before DOT in Domain Names in .htaccess Code

Many websites provide the .htaccess code to block spambots, spam referral, etc. Some websites use '\' before the '.' in domain names. For example: RewriteCond %{HTTP_REFERER} spamdomain\.com [NC,OR] SetEnvIfNoCase Referer spamdomain\.com…
user433041
2
votes
1 answer

Using mod_rewrite to remove PATH_INFO from URL

UPDATE: Mostly solved. Now it only doesn't work if in the situation where you are trying to access http://www.example.com/any-real-file-without-an-extension/anything-afterwards-that-doesnt-end-in-a-slash. I guess the server thinks that…
Ben Yep
  • 23
  • 5
2
votes
0 answers

Apache proxy - split SSL_CLIENT_S_DN_CN value and set header

I have configured on Apache proxy mutual SSL with SSLVerifyClient require SSLVerifyDepth 3 The configuration and communication is working like expected. Now I would like to send from Apache proxy to backend information from Common Name field in…
user1563721
  • 121
  • 1
2
votes
0 answers

Apache deny access all files in a directory while allowing access to sub directories

I may have asked this in the wrong site -- so I am trying my question here. Like to deny access to all files within a directory; while allowing access to files within the sub directories. I thought I had this licked until I notice a denied access…
2
votes
1 answer

Connection refused HTTP (port 80)

So I'm very much a novice when it comes to Apache and Ubuntu, but I know the basics (file moving, copying, editing, etc). I was trying to remedy a problem with PHP's permissions, so I set /tmp/ and /var/tmp/ permissions to 777 using chmod. Then, I…
shrey150
  • 23
  • 6
2
votes
2 answers

centos7 apache cannot write to a file it owns

I have installed httpd and php on a fresh centos7 and put some files into /var/www/html including an install script I wrote. This script needs to write to a config file in the /var/www/html directory. I created an empty config file and chowned it to…
jpro
  • 133
  • 1
  • 4
2
votes
1 answer

Bypass Location with Alias in Apache2

I'd like to know how to use Apache as a reverse proxy for a specific path and as local server for its sub-paths. For a specific location, I am using Apache as a reverse proxy (https://my.server.com/my-tools): Order…
Adriano P
  • 243
  • 3
  • 8
2
votes
1 answer

Redirect HTTPS to HTTP on Apache

I have a main domain and a couple of secondary domains hosted by a commercial web hosting service using Apache servers. Each domain has its own .htaccess file. I have only one SSL certificate, which is all I need, for the main domain. However, if I…