Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a folder on my server called john. Inside this folder is an application I am working on.

I have a self signed cert installed.

if I go to it works.

I have an .htaccess that redirects all request that don't begin with either the words john or julian to /john:

RewriteCond %{REQUEST_URI} !^/(john|julian).*
RewriteRule ^(.*)$ john/$1 [L]

Now if I go to a non SSL page like the page is loaded (the URL is not redirected).

However if I go to an ssl page like I get a "404 Not found" error.

Any idea what would cause this?

share|improve this question

I figured out what the problem was. I needed to change AllowOverride from none to All in my /etc/apache2/sites-available/default-ssl file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.