651 questions
176
votes
35
answers
476k
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'] = '';
...
545
votes
32
answers
1.0m
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 ...
79
votes
6
answers
120k
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 ...
104
votes
7
answers
158k
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?
78
votes
5
answers
129k
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 ...
124
votes
8
answers
558k
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 ...
63
votes
2
answers
56k
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/
...
11
votes
5
answers
24k
views
Apache2 ProxyPass for Rails App Gitlab
I am attempting to setup a proxy with Apache2 so that incoming requests to http://myipaddress.com go to http://localhost:3000/ where I have Gitlab ( a rails app ) running. The following is what I have ...
118
votes
8
answers
149k
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 ...
68
votes
4
answers
29k
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 ...
63
votes
6
answers
19k
views
Vagrant/VirtualBox/Apache2 Strange Cache Behaviour [closed]
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 ...
181
votes
3
answers
320k
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 ...
255
votes
16
answers
464k
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 nginx/...
85
votes
7
answers
94k
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 ...
23
votes
5
answers
60k
views
.htaccess for cakephp
I'm trying to get a CakePHP application to work. For this, I've set up a brand new Debian installation, updated the configuration and put everything in /var/www, which has the following content:
app
...