Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

shockme (2685)

  reversethis-{gro.dnuowtixe} {ta} {kcohs}
AOL IM: stephenhargrove (Add Buddy, Send Message)

If you really must have more information about me, see my home node [] at PerlMonks [] or my journal [] at

Journal of shockme (2685)

Thursday November 13, 2003
10:18 PM

Apache, The Wall, and My Head

[ #15760 ]
It's driving me insane ... INSANE I TELL YOU ...

Notice: works. does not work.

The 403 Forbidden error is reflected in the logs as attempt to invoke directory as script: /correct/path/to/script/dir

DirectoryIndex is specified correctly: DirectoryIndex index.php index.html index.htm index.shtml index.cgi

The handler is there: AddHandler cgi-script .pl

I have a ScriptAlias of: ScriptAlias /music/ /correct/path/to/script/dir/ AllowOverride None Options ExecCGI Order allow,deny Allow from all

(Note: the funky spacing the Directory tags is intentional - for some reason my PRE tags didn't prevent them from getting eaten. The spacing is correct in httpd.conf.)

No joy. Sore head.

Posted from, comment here.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • That is the question.

    If I understand correctly...

    You have a script alias of /music/

    That means the URL must be /music/

    If your script alias is /music

    Then the URL can be /music

    (I'm not totally positive... but, I think you have to list both to cover both cases)
    • You're spot on with this - The problem does reside with the directory alias. The better definition of the directory alias would be:
      ScriptAlias /music /correct/path/to/dir

      Note the lack of trailing slashes in both the alias definition and the directory path - This will provide the correct functionality irrelevant of whether the web URL is invoked with the full path to or merely to the parent directory.

    • Sorry, I got mixed up there a bit.

      Here is what my manual says about DirectoryIndex:


      The DirectoryIndex directive sets the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the a directory name.
  • I'm having the same problem on Windows 2000 with Apache 2. I suspect it's my recent install of ActiveState 5.8 that altered the Windows Registry so ScriptInterpreterSource Directive is no longer working -- but I would very much appreciate any clues!
    • I don't have a clue about Windows. Sorry.

      If things get any worse, I'll have to ask you to stop helping me.

      • How did you fix it on your OS? It might be the windows registry thing is a false trail.
        • Heh. Good point. I had a duplicate virtual host entry in my httpd.conf (i.e., one for the "world" interface and a second for the intranet interface). I put a firewall in, thus making the "world" interface section inapplicable. However, the changes I was making were to the "world" section of httpd.conf and not the intranet section (which, because of the firewall, was the only section Apache was now using). Once I removed the "world" section from httpd.conf, everything started working.

          If things get any worse, I'll have to ask you to stop helping me.