Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Monday, June 11, 2012

Disable PHP in directory (including all sub-directories) with .htaccess


I'm making a website which allows people to upload files, html pages, etc... Now I'm having a problem. I have a directory structure like this:

Check AllowOverride value using PHP?


Is there anyway to use PHP to check the value of AllowOverride too see if .htaccess will have any effect?

trouble with utf-8 chars & apache2 rewrite rules


I see the post http://stackoverflow.com/questions/2565864/validating-utf-8-in-htaccess-rewrite-rule and I think that is great, but a more fundamental problem I am having first:

Apache vs. IIS PHP performance comparison


Does anyone know of any links to realistic performance comparisons of IIS vs. Apache for PHP hosting?

What is correct HTTP status code when redirecting to a login page?


When a user is not logged in and tries to access an page that requires login, what is the correct HTTP status code for a redirect to the login page?

Best practices for configuring Apache / Tomcat


We are currently using Apache 2.2.3 and Tomcat 5 (Embedded in JBoss 4.2.2) using mod_proxy_jk as the connector.

Secure static media access in a Django site


I'm building a site where registered users can upload files. Those files are then served via Apache. Only users who are logged in should be able to access those files.

Sunday, June 10, 2012

Zend and .htaccess


My default 'zend' app has this default structure




/zend + webroot
/application
/config
/library
/public
.htaccess
index.php

Google SPDY - Has anyone used it on Apache?


Just wondering if anyone has had any experience with Google SPDY on Apache? http://code.google.com/p/mod-spdy/

Difference Between SSLCACertificateFile and SSLCertificateChainFile


I provide SSL pages on my web server, and I have a question. What is the difference between SSLCACertificateFile and SSLCertificateChainFile?

Friday, June 8, 2012

mod_rewrite/GoDaddy problem


Ok, so I really don't know much about mod_rewrite and I'm looking over the apache docs and still not figuring this out.

Security: Block bad spiders and bots from access to website using htaccess and HTTP_USER_AGENT


When building an htaccess rule to block common spiders and bots, what HTTP_USER_AGENT headers should be filtered?

What would cause PHP variables to be rewritten by the server?


I was given a VM at my company to install web software on. But I came across a rather bizarre issue where PHP variables would be overwritten (rewritten) by the server if they matched a specific pattern. What could rewrite PHP variables like this?

Difference Between SSLCACertificateFile and SSLCertificateChainFile


I provide SSL pages on my web server, and I have a question. What is the difference between SSLCACertificateFile and SSLCertificateChainFile?

Apache Mod-Rewrite Primers?


I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start?

How do you redirect HTTPS to HTTP?


How do you redirect HTTPS to HTTP?. That is, the opposite of what (seemingly) everyone teaches.

Apache and IIS side by side (both listening to port 80) on windows2003


What are some good ways to do this? Is it even possible to do cleanly?

Tuesday, June 5, 2012

Quick mod_rewrite help on GoDaddy


This htaccess works fine locally, but on GoDaddy the URL isn't caught by the rewrite engine.

Caching Images, JS and CSS in Apache using deflate


I am currently caching my CSS, JS and images using deflate in my Apache configuration.

PHP - curl_exec hangs


I am having a strange problem with the below php function. Unfortunately this is one of those special "Production only" case.