Questions tagged [apache2]

Apache (HTTP Server) /əˈpætʃiː/ is a modular cross-platform web server software with a large variety of features(called modules) including SSL, compression, log, proxy and server-side programming language interfaces like Perl, Python, Tcl, and PHP.

apache2
Filter by
Sorted by
Tagged with
519 votes
32 answers
911k views

Apache2: 'AH01630: client denied by server configuration'

I get this error when trying to access localhost via a browser. AH01630: client denied by server configuration I checked my site folder permissions using: sudo chmod 777 -R * Here is my ...
Hazem Hagrass's user avatar
317 votes
11 answers
368k views

Site does not exist error for a2ensite

I have cmsplus.dev under /etc/apache2/sites-available with the following code, <VirtualHost *:80> ServerAdmin [email protected] ServerName www.cmsplus.dev ServerAlias cmsplus.dev ...
Anshad Vattapoyil's user avatar
197 votes
15 answers
294k views

413 Request Entity Too Large - File Upload Issue

I am trying to upload 30MB file on my server and its not working. When I upload 30MB file, the page loads "Page Not Found" When I upload a 3MB file, I receive "413 Request Entity Too Large" with ...
Raju Vishwas's user avatar
  • 2,151
191 votes
6 answers
424k views

How to reload apache configuration for a site without restarting apache?

I have edited the variable AllowOverride for one of my websites in sites-enabled directory. How do I reload the new configuration without restarting apache? Is it possible?
hpn's user avatar
  • 2,282
181 votes
3 answers
316k views

Only variable references should be returned by reference - Codeigniter

After the server PHP upgrade I am getting the following error with PHP Version 5.6.2 on Apache 2.0 A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by ...
Techie's user avatar
  • 44.9k
176 votes
35 answers
466k views

CodeIgniter removing index.php from url

My current urls look like this [mysite]index.php/[rest of the slug]. I want to strip index.php from these urls. mod_rewrite is enabled on my apache2 server. In config, $config['index_page'] = ''; ...
Nihar Sarangi's user avatar
165 votes
3 answers
147k views

What is the difference between the 'sites-enabled' and 'sites-available' directory? [closed]

What is use of these two directories in Apache 2 and how can we do it?
Amit Mehta's user avatar
  • 1,777
164 votes
9 answers
75k views

Make .git directory web inaccessible

I have a website that I use github (closed source) to track changes and update site. The only problem is, it appears the .git directory is accessible via the web. How can I stop this and still be able ...
Chris Muench's user avatar
  • 17.9k
133 votes
16 answers
474k views

Could not reliably determine the server's fully qualified domain name

I have just installed Apache 2.2.17, and I am using it for the first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably ...
mahesh's user avatar
  • 4,693
120 votes
8 answers
507k views

Configure apache to listen on port other than 80

I use centOS server. I want to configure apache to listen on port 8079. I added LISTEN 8079 directive in httpd.conf. I opened port 8079 in iptables and restarted iptables. I even stopped iptables ...
vivek.m's user avatar
  • 3,281
117 votes
8 answers
148k views

Correct owner/group/permissions for Apache 2 site files/folders under Mac OS X?

It's hard to find Mac-specific answers to this question on the web, so I'm hoping someone out there can put this one to rest for me? My permissions are screwed up on my sites and I'm not sure how to ...
Nelson Ford's user avatar
  • 3,780
107 votes
6 answers
158k views

How can I view the complete httpd configuration?

I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs)...
Gnafu's user avatar
  • 1,650
106 votes
14 answers
164k views

Apache won't follow symlinks (403 Forbidden)

I'm having some trouble setting up Apache on Ubuntu. I've been following this guide. # /usr/sbin/apache2 -v Server version: Apache/2.2.17 (Ubuntu) Server built: Feb 22 2011 18:33:02 My public ...
Tim's user avatar
  • 6,159
98 votes
7 answers
143k views

How can I implement rate limiting with Apache? (requests per second)

What techniques and/or modules are available to implement robust rate limiting (requests|bytes/ip/unit time) in apache?
bd808's user avatar
  • 1,793
96 votes
6 answers
412k views

How to convert .pem into .key?

I already have purchased SSL certificate and i have received certificate and a .pem file as a private key? from the supplier; now i need to convert this .pem key into .key for bitnami Redmine Apache ...
user1644587's user avatar
84 votes
7 answers
87k views

Need to allow encoded slashes on Apache

I'm currently trying to place a URL within a URL. For example: http://example.com/url/http%3A%2F%2Fwww.url2.com I'm aware that I have to encode the URL, which I have done, but now I am getting a 404 ...
tommizzle's user avatar
  • 1,009
77 votes
6 answers
109k views

Is it possible to put binary image data into html markup and then get the image displayed as usual in any browser?

It's an important security issue and I'm sure this should be possible. A simple example: You run a community portal. Users are registered and upload their pictures. Your application gives security ...
Joern Akkermann's user avatar
76 votes
5 answers
120k views

Is there a practical HTTP Header length limit?

I have a web application that adds contextual information to XmlHttpRequest objects using the setRequestHeader API. I am using a custom header name (e.g. X-Foo) and a JSON structured value. It isn't ...
Kevin Hakanson's user avatar
75 votes
3 answers
281k views

How to enable loglevel debug on Apache2 server [closed]

My error.log contains: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' ...
Tiger's user avatar
  • 753
72 votes
5 answers
107k views

Apache 2.4 configuration for ssl not working

Apache Server 2.4 with mod_jk 1.3.7 not working for ssl (https) Error 1: The Apache service named reported the following error: SSLSessionCache: 'shmcb' session cache not ...
Meuk Light's user avatar
71 votes
20 answers
408k views

Windows could not start the Apache2 on Local Computer - problem

During the installation of Apache2 I got the following message into cmd window: Installing the Apache2.2 service The Apache2.2 service is successfully installed. Testing httpd.conf.... ...
vaske's user avatar
  • 9,412
70 votes
7 answers
113k views

Best way to rotate Apache log files [closed]

I've got an Apache server that has one access log file that is topping 600MB. This makes it really hard to search the file or parse it. What software or modules for Apache are available that will ...
Scott Gottreu's user avatar
68 votes
4 answers
28k views

Authorization header missing in django rest_framework, is apache to blame?

I've managed to extend TokenAuthentication and I have a working model when using the request session to store my tokens, however when I attempt to pass Authorization as a header parameter as described ...
steve-gregory's user avatar
66 votes
16 answers
185k views

How to determine if OpenSSL and mod_ssl are installed on Apache2

Does anyone know the command to determine if OpenSSL and mod_ssl are installed on Apache2?
Fiona's user avatar
  • 1,599
66 votes
6 answers
18k views

Vagrant/VirtualBox/Apache2 Strange Cache Behaviour

I'm using Vagrant to run an Ubuntu powered VirtualBox with Apache2. The webserver, among others, serves static files from my /vagrant directory. This works well most of the time. But when I change ...
Philipp Spiess's user avatar
63 votes
2 answers
55k views

multiple django sites with apache & mod_wsgi

I want to host several sites with under the same server which uses Debian 5, say I have site1, site2 and site3, and assume my ip is 155.55.55.1: site1: 155.55.55.1:80 , script at /opt/django/site1/ ...
Hellnar's user avatar
  • 63.5k
62 votes
3 answers
90k views

Setup mod_proxy on apache http server

I wanted to reverse proxy a web service from my tomcat server using apache web server. I have modified the httpd.conf LoadModule proxy_module modules/mod_proxy.so <Directory /> ...
user1386101's user avatar
  • 1,944
62 votes
3 answers
78k views

What is the difference between apache2 reload, restart, graceful?

I am using apache2 for a project and I am wondering what is exactly the difference between these commands: service apache2 restart service apache2 reload service apache2 graceful
VDarricau's user avatar
  • 2,919
60 votes
13 answers
113k views

PHP errors NOT being displayed in the browser [Ubuntu 10.10]

I'm new to PHP and the whole LAMP stack but I've managed to get it up and running on my Ubuntu 10.10 system. Everything seems to be working with the exception of error reposting in the browser which I ...
raven-king's user avatar
  • 1,550
60 votes
6 answers
89k views

How can I prevent tons of apache processes spawning when I start apache and proceeding to kill my machine?

I have a highly trafficked application on one debian machine and apache has started acting strange. Every time I start apache, tons of apache processes are spawned, the app doesn't load at all, and ...
Adam Gries's user avatar
  • 1,791
59 votes
6 answers
39k views

Creating a symbolic link in Sites directory

I have a file in my ~/Sites directory that works fine when I browse to it through coderama.local/~coderama/index2.php Now I want to get tricky and move my index2.php file to somewhere else on my ...
Coderama's user avatar
  • 11.2k
57 votes
6 answers
76k views

.htaccess / .htpasswd bypass if at a certain IP address

Is it possible to have an .htaccess/.htpasswd access control setup for a given directory, but if they are from a specific IP address, bypass the login/password authentication? I know you can do ...
Keefer's user avatar
  • 2,279
57 votes
4 answers
166k views

Apache: Restrict access to specific source IP inside virtual host

I have several named virtual hosts on the same apache server, for one of the virtual host I need to ensure only a specific set of IP addresses are allowed to access. Please suggest the best way to ...
frameworksnow's user avatar
55 votes
6 answers
120k views

What is in Apache 2 a "caught SIGWINCH" error?

My server (ubuntu 8.04) LAMP running drupal 6, when there is high traffic, it stops serving pages. A restart of apache2 will not work, so I have to restart the service. I found this message in the ...
54 votes
3 answers
138k views

htaccess <Directory> deny from all

I've been cleaning up my project lately. I have a main .htaccess in the root directory and 6 others. 5 of them ran Options -Indexes which i didn't see anypoint of allowing any Directory viewing so ...
Keverw's user avatar
  • 3,786
52 votes
2 answers
183k views

Decrypt password created with htpasswd

I created a protection for my web pages with apache2 in ubuntu. Now I am creating an application in c++ and I want it uses the same file that Apache2 uses for authentification, but my problem is that ...
Mils's user avatar
  • 1,499
52 votes
8 answers
34k views

Angular Service Worker SwUpdate.available not triggered

I'm having a hard time integrating angulars service worker into my application. I followed the guide and it works so far. I can create a shortcut on my homescreen and launch into my app. The problem ...
user avatar
52 votes
10 answers
40k views

OpenSSL not working on Windows, errors 0x02001003 0x2006D080 0x0E064002

Problem: OpenSSL is not working in my Windows environment. OpenSSL repeatedly reports errors 0x02001003, 0x2006D080 and 0x0E064002. Environment: Windows NT x 6.1 build 7601 (Windows 7 Business ...
Brock Hensley's user avatar
51 votes
6 answers
282k views

ini_set("memory_limit") in PHP 5.3.3 is not working at all

I had this working before : echo ini_get("memory_limit")."\n"; ini_set("memory_limit","256M"); echo ini_get("memory_limit")."\n"; That would input this : 32M 256M on a php script executed by ...
Ant's user avatar
  • 1,842
50 votes
5 answers
65k views

Apache and logrotate configuration

Last week I found a problem on my server, because the disk usage was 100%, and I found out apache had created a huge error.log file of 60GB. I changed then the LogLevel to emerg, but after one week, ...
sissy's user avatar
  • 2,968
50 votes
2 answers
110k views

How to run multiple sites on one apache instance

Spent hours going in circles following every guide I can find on the net. I want to have two sites running on a single apache instance, something like this - 192.168.2.8/site1 and 192.168.2.8/site2 ...
Exbi's user avatar
  • 960
49 votes
7 answers
112k views

Apache2 virtualhost 403 forbidden?

I'm running ubuntu 13.04 64bit on my desktop, I installed Apache2, MySQL and PHP etc. I wanted to have my web root in /home/afflicto/public_html instead of /var/www. So I went along with this guide: ...
Petter Thowsen's user avatar
48 votes
5 answers
63k views

How to find what MPM model Apache is using in Linux (worker, prefork or event)

Where I can get information about what kind of MPM Apache is using in my Linux system?
zim32's user avatar
  • 2,611
48 votes
8 answers
37k views

Mercurial push, abort: authorization failed

I'm having problems with pushing to mercurial repository: $ hg push pushing to https://user:***@hg.domain.com/X_repo searching for changes abort: authorization failed The same URL (with the same ...
Piotr Byzia's user avatar
  • 3,383
47 votes
2 answers
35k views

Which one to use : Expire Header, Last Modified Header or ETags

I am running PHP on Apache, and am confused about how to implement server-side caching, in order to make the site load faster. What is the difference between the Expires, Last-Modified and ETag ...
Avinash's user avatar
  • 6,104
46 votes
3 answers
76k views

How to install & configure mod_wsgi for py3

I installed & configured mod_wsgi for python2.7 but now I would also like to have mod_wsgi for py3 I'm in ubuntu 12.04 My apache conf file looks like this for py2.7 : <Directory /var/www/...
Lazik's user avatar
  • 2,510
46 votes
3 answers
40k views

Why has the apache2 www dir been moved to /var/www/html?

I just upgraded my server and saw that the default.conf file in sites-available was now pointing to /var/www/html instead of /var/www. What was the reason for this change?
f.ardelian's user avatar
  • 6,846
46 votes
2 answers
22k views

SSL on Apache2 with WSGI [closed]

I am trying to set up SSL on a Django site I maintain and having a bit of trouble setting up my VirtualHost with SSL. I followed the instructions here but every time I try to restart apache, it tells ...
Shane Reustle's user avatar
46 votes
1 answer
30k views

How can I make a virtual host accept multiple domains? [closed]

I have two different domains I want to use for this website, how can I configure the virtual host to make this work? Is it possible to assign it more than one server name?
agente_secreto's user avatar
45 votes
2 answers
73k views

"OR" Flag in .htaccess mod_rewrite

Just found this .htaccess rewrite code RewriteEngine on RewriteCond %{HTTP_HOST} ^my.domain.com$ [NC,OR] RewriteCond %{REQUEST_URI} !public/ RewriteRule (.*) /public/$1 [L] And I was wondering what ...
gabriel-kaam's user avatar
  • 1,240

1
2 3 4 5
160