1
vote
0answers
66 views

403 error from 403 ErrorDocument

I've the following configuration script in my Apache 2.4.7 installation: <Directory "/www"> Options Indexes FollowSymLinks AllowOverride All <RequireAll> Require all ...
2
votes
1answer
323 views

.htaccess not working on Cent Os 6.4

I have installed Cent Os 6.4 -Final Version and set the environment for PHP web development. My application uses the .htaccess for url rewrite & denying direct access of files. my configuration ...
1
vote
2answers
332 views

Amazon EC2 .htaccess and 500 Error

I have an Amazon EC2 (amzn-ami-pv-2013.09.0.x86_64-ebs (ami-149f7863)) on which I installed Apache, PHP and MySQL. All works fine until I try to activate .htaccess. I change AllOverride All in ...
1
vote
2answers
713 views

Request exceeded the limit of 10 internal redirects

so here is the error [Mon Sep 30 00:09:53 2013] [error] [client 66.249.66.205] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' ...
-1
votes
1answer
41 views

Apache Hotlink Prevention not Working

I have been trying to prevent hotlinking of images on a domain of mine without any success. I have added the following to /etc/apache2/httpd.conf RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ ...
3
votes
2answers
2k views

Why is allow not allowed here in apache2

I've the following in my httpd.conf file: <Directory "/www"> Options Indexes FollowSymLinks AllowOverride AuthConfig FileInfo Options=Indexes,Limit Order allow,deny Allow from ...
1
vote
1answer
293 views

How multiple <Directory> sections work in Apache configuration (httpd.conf)?

For example, if my '/etc/apache2/httpd.conf' looks like this: <Directory /> AllowOverride None </Directory> <Directory /home> AllowOverride FileInfo </Directory> ...
0
votes
1answer
67 views

What is wrong with my httpd.conf file?

I am using Apache 2.2.22 on Ubuntu 12.04 with PHP 5.3.10. The real domain name has been obfuscated to example.com for this question. I am attempting to set AllowOverride to None. I currently have an ...
1
vote
2answers
711 views

Apache httpd: How can I Deny from all, Allow from specifc IP addresses

Can someone take a look at the syntax of the code below and let me know if it is correct -- my intention is to exclude the htaccess for the IP ranges specified in the 'Allow' part and rest of all ...
0
votes
1answer
46 views

URL Rewrite http to https with www

I have a domain with several apps. All apps should be reached like this. https://www.website.com/app1/ https://www.website.com/app2/ https://www.website.com/app3/ The problem I'm having is with my ...
0
votes
1answer
48 views

Getting gzip compression to work on my server (modules?)

I have copied the htaccess file from HTML5 Boilerplate into my httpd.conf file and restarted Apache, but for some reason, gzip compression is still not working: I have tested to see if the modules ...
1
vote
2answers
121 views

Apache deny/allow in vhost config and in .htaccess, which takes priority

If I specify a Deny from xx.xx.xx.xx Directive in a <Directory /var/www/html/test-directory/></Directory> block in an Apache vhost configuration. Then specify a different Deny from ...
3
votes
1answer
117 views

Apache2 Basic Auth: user@ip, user2@ip2 - Is this possible?

I am looking at running an external service for clients to use here in my office while clients are working remotely at their office. Assumptions: Both my office IP and clients office IP are static. ...
2
votes
1answer
681 views

Apache deflate ignores javascript

I have set up deflate in my htaccess. Everything works fine, except for some reason javascript files are being ignored. I tried every possible combination of AddOutputFilterByType DEFLATE with ...
0
votes
1answer
1k views

Accessing directories outside of DocumentRoot

I've recently deployed a web application to my Linux Redhat server using Capistrano which creates the following directory structure in the site's document root: /var/www/html/example.com/releases/* ...
2
votes
1answer
2k views

Why is the RewriteBase not working?

Here is what I am trying to do: domain is thinkingmonkey.me domain has 127.0.0.1 as IP addr mod_alias is installed. I have a conf file called directories.conf. In which I have all the ...
0
votes
2answers
81 views

mod_rewrite `Redirect` how?

I have 2 urls say thinkingmonkey.me and thinkingmonkey.com both have ip-address 127.0.0.1 (A.K.A localhost). I want to redirect any requests to thinkingmonkey.com to thinkingmonkey.me. ...
0
votes
1answer
896 views

How to limit bandwidth in CentOS using htaccess and not httpd.conf?

I'm trying to limit bandwidth in centOS. I have tried using bw_module, cband_module and bandwidth_module, but all of those required to use the httpd.conf and must restart httpd! I have to do this ...
0
votes
2answers
260 views

httpd.conf changes to allow www.mysite.com and www.mysite.com/mantis and phpmyadmin?

I've got a php application which I use to place in: ~/public_html/beta/ And mantis and phpmyadmin in: ~/public_html/mantis/ ~/public_html/phpmyadmin/ The application used to be accessed as: ...
7
votes
3answers
5k views

Limit upload file size and redirect user to error page if limit exceeds

Is it possible to redirect user to file file too big page when POST request size exceeds specified limit? I am aware about max-request-size option, but it gives just static page that cannot be ...
2
votes
3answers
539 views

htaccess vrs httpd.conf?

Is it still true that you shouldn't use htaccess files if you can use httpd.conf? The Apache site says "In general, you should never use .htaccess files unless you don't have access to the main ...
1
vote
1answer
305 views

Apache prefork.c and other settings

Intel C2D E7400 2048 MB DDR2 RAM 250 GB 7.200 RPM Debian 5 - 32bit This is my dedicated server. I'm using it to host a vBulletin forum. What would be the best prefork.c, worker.c and mpm_winnt.c ? ...
1
vote
2answers
5k views

apache multiviews, how to disable it

I have a OS X Snow Leropard Server running and I want to disable multivewis from Apache. I could add Options -MultiViews to each .htacces file I have, but I guess there must be a global option. ...
0
votes
1answer
254 views

How can I convert httpd.conf markup to .htaccess rules?

I'm installing doxWiki, and the webserver installation instructions assume root access to httpd.conf -- my provider, 1and1, only allows access to .htaccess Below is the doxWiki httpd.conf sample ...
1
vote
0answers
35 views

Odd Behaviour with wildcard sub domain

I am trying to get wild card sub domains working on my project here and it does seem to be working but i have come across some very odd behaviour here, every time i try to visit any subdomain instead ...
0
votes
2answers
2k views

.htaccess file not being read on localhost

My live site reads the .htaccess fine. I got 404.php and mod_rewrite working fine there, but on my localhost... nothing. PHPmyAdmin 3.1.5 PHP 5.2.9-2 Apache 2.2 My .htaccess is this: ...
0
votes
3answers
705 views

rewriterules +httpd.conf +.htaccess problem (urgent-site down)

I'm migrating one of my websites from dreamhost shared to dreamhost ps. the files copied OK and DNS resolved to the new server. However trying to get a pagw brings error 403 access forbidden. If I ...
2
votes
2answers
538 views

How to write these .htaccess rules in httpd.conf

I have two htaccess rules that I would like to move to httpd.conf because I hear that's better for performance. I tried just copy-pasting them into httpd.conf but it doesn't use the same syntax I ...