Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Added link
Source Link
Andrew M.
  • 11.4k
  • 3
  • 37
  • 30

One idea would be to remove the dollar sign. The AddHandler option takes the extension, not a regular expression or glob. So the correct line would be: in your original

# With or without the leading dot, mod_mime doesn't care AddHandler fcgid-script .php 

Basically, the wayAs to why its configured nowflagging html files as executable, ts looking forI have no idea--there could be a file that endsflag somewhere setting it, perhaps in the literal extensiona default configuration. However, as a workaround, you can .php$REMOVE the handler for . Hope this helps!html files by using the following, so that they will be treated as normal text/html files.

(source)

RemoveHandler .html 

One idea would be to remove the dollar sign. The AddHandler option takes the extension, not a regular expression or glob. So the correct line would be:

# With or without the leading dot, mod_mime doesn't care AddHandler fcgid-script .php 

Basically, the way its configured now, ts looking for a file that ends in the literal extension, .php$. Hope this helps!

(source)

One idea would be to remove the dollar sign. The AddHandler option takes the extension, not a regular expression or glob. So the correct line would be in your original

# With or without the leading dot, mod_mime doesn't care AddHandler fcgid-script .php 

As to why its flagging html files as executable, I have no idea--there could be a flag somewhere setting it, perhaps in a default configuration. However, as a workaround, you can REMOVE the handler for .html files by using the following, so that they will be treated as normal text/html files.

RemoveHandler .html 
Source Link
Andrew M.
  • 11.4k
  • 3
  • 37
  • 30

One idea would be to remove the dollar sign. The AddHandler option takes the extension, not a regular expression or glob. So the correct line would be:

# With or without the leading dot, mod_mime doesn't care AddHandler fcgid-script .php 

Basically, the way its configured now, ts looking for a file that ends in the literal extension, .php$. Hope this helps!

(source)