Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Location
    FL, USA
    Posts
    153
    Thanks
    13
    Thanked 0 Times in 0 Posts

    displaying a .cfg file on the browser...

    I have a configuration file sitting on the server with extension .cfg which is nothing but a text file, that I would like to display on the client browser the problem is that when a client browse to that file and click on it, it gets "file not found" error". This is hosted in a Windows 2003 Server, how could make this happen?
    thanks
    ____________________
    www.pctechtips.org

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It won't. Do you also get a 403 (forbidden) error? Do you have a link to the file we can try? You could add a mimetype to treat the cfg file as a text file. To add a mimetype you can follow the directions here: http://technet.microsoft.com/en-us/l.../bb742440.aspx

    plain/text is probably what you want for the cfg file.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •