Apache

Here are some notes on using apache. This talks, a bit about Access Control and redirection. I need to test if any of this content was duplicated elsewhere in the site.

Access Control and Authentication

I have built a LAMP server that would benefit from having some front-page access control and authentication. I have looked up the following links;

  1. http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html, which needs an LDAP server, http://wiki.davelevy.info/openldap/
  2. http://httpd.apache.org/docs/2.2/mod/mod_auth_basic.html
  3. http://httpd.apache.org/docs/2.2/mod/mod_auth_digest.html
  4. http://httpd.apache.org/docs/2.2/mod/mod_authn_file.html
  5. http://httpd.apache.org/docs/2.2/mod/mod_authn_dbm.html

Priority between redirect and proxy directives

In July 2013, I transferred Rogan’s Trial from Snipsnap to WordPress, i.e. here.¬†Snipsnap is served via a Jetty server on port 8668 and the apache demon works as a Proxy. My original wiki source was on the Google front page so I thought I’d 301 it, and redirect to the new site/page.¬† I made a bunch of incomplete notes about how to invoke apache redirection commands for use with a snipsnap server. In March 2015 I transferred these to the page comments. When I exited Snipsnap, I created a global 301 for the site.

Related Posts

  • Apache Flume So I need to check this out. Here are the two links I'd start with. Welcome to Flume […]
  • Disqus This is page contains complex html i.e. javascript, the page must only be edited as […]
  • RCS Revision Control System, one of the grand daddies of them all. I still use it because […]
  • Apache as a Proxy Server for Snipsnap This article describes my efforts to implement the configuration described at […]
  • Why I gave up on Snipsnap It can be summed up as a lack of future, cost to host and missing functionality. The […]

One thought on “Apache

  1. I have configured the redirect rule

    Redirect 301 snipsnap/space/Dave/FRPG+Games/NWN+Walkthroughs/NWN+Rolgan%27s+Trial http://wiki.davelevy.info/nwn-rolgans-trial/

    both before and after the proxy section in the httpd.conf file. It doesn’t seem to take.

    I have also tried to write a page proxy rule, inserted before the global rule. Both a ProxyPass and ProxyPassReverse rule. The Proxy rules did not like the 301 argument.

    How to fix this? Do I need the Rewrite Engine on?

    Redirection from Scratch

    I decided to issue redirections on http://davelevy.dyndns.info/mingle, to point at http://davelevy.info/mingle. I want to issue a 301 warning as well and decided while I was at it to make a 404 page.

    So here’s the .htaccess file

    Redirect 301 /mingle/index.html http://davelevy.info/mingle
    Redirect 301 /mingle/ http://davelevy.info/mingle
    ErrorDocument 404 404.html

    Apache didn’t grok it, and so I copied them into httpd.conf, which is fine since I am only running a single site and I had the .htaccess file located in the apache htroot directory.

    The Apache Manual pages are at the Apache Documentation site.

    I tried the AllowOverride command which needs to be in a Directory section, it seems it might need the AccessFileName command as well,

Leave a Reply

Your email address will not be published. Required fields are marked *