Skip to main content
July 8, 2009
Answered

plz help.....404 file not found

  • July 8, 2009
  • 2 replies
  • 1248 views

I have two files one .sql and one .doc at a server location. when I try to access the files through the browser url using mapped drive address, the .doc file opens but the .sql file shows HTTP 404 file not found error.

Could someone please give me any reason for this?..

    This topic has been closed for replies.
    Correct answer PRABEESH_IN

    This is related with IIS as IIS dont understad the file type, you have to add .sql file mime type in iis configuration (httpheaders tab) to resolve this. You can find the mime type for this. Please try "application/x-sql".

    2 replies

    PRABEESH_INCorrect answer
    Participating Frequently
    July 8, 2009

    This is related with IIS as IIS dont understad the file type, you have to add .sql file mime type in iis configuration (httpheaders tab) to resolve this. You can find the mime type for this. Please try "application/x-sql".

    July 8, 2009

    Thanks for the info..

    Is there any way we can configure the mime type in cold fusion application server?

    Inspiring
    July 8, 2009

    Are you trying to configure your server so that ColdFusion will handle files with a .sql extension?  It is possible that your web server (IIS or Apache) is not configured to serve pages with a .sql extension.  I'm not sure what you're trying to accomplish.  Can you give us more information about your server configuration (OS, CF version, web server) and goals?

    In regards to changing MIME types this is usually handled by the web server (IIS or Apache).  However you can change the MIME type on ColdFusion pages (*.cfm) by using the CFCONTENT tag and the type attribute.

    CFCONTENT
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_11.html#2850760

    Participating Frequently
    July 8, 2009

    Hi

    Could you please paste the url here, for which you are getting 404 file not found error