Skip to main content
Known Participant
October 3, 2014
Question

Newly installed coldfusion 11 configured with apache cannot read css/js/jpg files

  • October 3, 2014
  • 1 reply
  • 1202 views

I am sure I am missing something really easy, but I cannot get my css stylesheet to work on my fresh installation. 

  • coldfusion 11 with apache 2.2
  • my cfm files can be parsed in subfolders, but a css file (or anything else other than cfm files) in the same folder doesn't seem to be working as hoped
  • if I type in something like "localhost/appName/css/main.css" I get a 404 File Not Found error

Does this error indicate an apache or coldfusion problem?

Thanks in advance for any help, Wayne

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    October 3, 2014

    Hi Wayne,

    Could you please confirm if the webroot you are referring to is the ColdFusion webroot, or Apache webroot.

    CSS files in the ColdFusion webroot may not be served when explicitly requested through the Apache port, since Apache would not even forward the request to ColdFusion.

    Of course, when a CFM page is requested, stylesheet's referenced within CFM pages must get loaded!

    - Immanuel

    Known Participant
    October 6, 2014

    Dear Immanuel

    The webroot is the ColdFusion webroot, not Apache.

    I am guessing then that I have to edit httpd.conf to get my cfm files to work as I hope?

      Wayne

    Priyank Shrivastava.
    Community Manager
    Community Manager
    October 6, 2014

    Wayne,

    You have to change the webroot directoty from httpd.conf file and that will take care of the issue, if your files(cfm/jpg/css) are in ColdFusion webroot folder then make the change and restart Apache.

    Thanks,

    Priyank

    Thanks,Priyank Shrivastava